1if HAVE_SHARED_GLAPI 2AM_CFLAGS = $(PTHREAD_CFLAGS) 3AM_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 15TESTS = glx-test 16check_PROGRAMS = glx-test 17 18glx_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 28if HAVE_DRI2 29glx_test_SOURCES += \ 30 query_renderer_implementation_unittest.cpp 31endif 32 33glx_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) 38endif 39