1 if HAVE_SHARED_GLAPI 2 AM_CFLAGS = $(PTHREAD_CFLAGS) 3 AM_CPPFLAGS = \ 4 -I$(top_srcdir)/src/gtest/include \ 5 -I$(top_srcdir)/src \ 6 -I$(top_srcdir)/src/mapi \ 7 -I$(top_srcdir)/src/mesa \ 8 -I$(top_srcdir)/src/glx \ 9 -I$(top_srcdir)/include \ 10 -I$(top_srcdir)/include/GL/internal \ 11 $(DEFINES) \ 12 $(LIBDRM_CFLAGS) \ 13 $(X11_INCLUDES) 14 15 TESTS = glx-test 16 check_PROGRAMS = glx-test 17 18 glx_test_SOURCES = \ 19 clientinfo_unittest.cpp \ 20 create_context_unittest.cpp \ 21 enum_sizes.cpp \ 22 fake_glx_screen.cpp \ 23 fake_glx_screen.h \ 24 indirect_api.cpp \ 25 mock_xdisplay.h \ 26 query_renderer_unittest.cpp 27 28 if HAVE_DRI2 29 glx_test_SOURCES += \ 30 query_renderer_implementation_unittest.cpp 31 endif 32 33 glx_test_LDADD = \ 34 $(top_builddir)/src/glx/libglx.la \ 35 $(top_builddir)/src/gtest/libgtest.la \ 36 $(top_builddir)/src/mapi/shared-glapi/libglapi.la \ 37 $(PTHREAD_LIBS) 38 endif 39