+if HAVE_SHARED_GLAPI
+AM_CFLAGS = $(PTHREAD_CFLAGS)
AM_CPPFLAGS = \
- -I$(top_builddir)/src/gtest/include \
- -I$(top_builddir)/src/mapi \
- -I$(top_builddir)/src/glx \
- -I$(top_builddir)/include \
- $(X11_CFLAGS)
+ -I$(top_srcdir)/src/gtest/include \
+ -I$(top_srcdir)/src \
+ -I$(top_srcdir)/src/mapi \
+ -I$(top_srcdir)/src/mesa \
+ -I$(top_srcdir)/src/glx \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/include/GL/internal \
+ $(DEFINES) \
+ $(LIBDRM_CFLAGS) \
+ $(X11_INCLUDES)
-if HAVE_XCB_GLX_CREATE_CONTEXT
TESTS = glx-test
check_PROGRAMS = glx-test
create_context_unittest.cpp \
enum_sizes.cpp \
fake_glx_screen.cpp \
- indirect_api.cpp
+ fake_glx_screen.h \
+ indirect_api.cpp \
+ mock_xdisplay.h \
+ query_renderer_unittest.cpp
+
+if HAVE_DRI2
+glx_test_SOURCES += \
+ query_renderer_implementation_unittest.cpp
+endif
glx_test_LDADD = \
$(top_builddir)/src/glx/libglx.la \
$(top_builddir)/src/gtest/libgtest.la \
- -lpthread
-
+ $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
+ $(PTHREAD_LIBS)
endif