mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 07:50:11 +01:00
Detect whether a new enough version of XCB is installed at configure time. If it is not, don't enable the extension and don't build the unit tests. v2: Move the AM_CONDIATION outside the case-statement so that it is invoked even for non-GLX builds. This prevents build failures with osmesa, for example. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: Robert Hooker <robert.hooker@canonical.com>
18 lines
511 B
Makefile
18 lines
511 B
Makefile
AM_CFLAGS = -I$(top_builddir)/src/glx -I$(top_builddir)/src/mapi \
|
|
$(X11_CFLAGS) $(GTEST_CFLAGS)
|
|
AM_CXXFLAGS = -I$(top_builddir)/src/glx -I$(top_builddir)/src/mapi \
|
|
$(X11_CFLAGS) $(GTEST_CFLAGS)
|
|
|
|
if HAVE_GTEST
|
|
if HAVE_XCB_GLX_CREATE_CONTEXT
|
|
TESTS = glx_unittest
|
|
check_PROGRAMS = glx_unittest
|
|
|
|
glx_unittest_SOURCES = \
|
|
clientinfo_unittest.cpp \
|
|
create_context_unittest.cpp \
|
|
fake_glx_screen.cpp
|
|
|
|
glx_unittest_LDADD = $(top_builddir)/src/glx/libglx.a $(GTEST_LIBS) -lgtest_main
|
|
endif
|
|
endif
|