diff options
author | Eric Anholt <[email protected]> | 2012-03-05 17:01:13 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-04-12 17:18:00 -0700 |
commit | 94726d263ebee6364e9be2f254c3ca7d1f85dde4 (patch) | |
tree | d1f66e287e2475aef8db5a0210cf9bf3d1d9a532 | |
parent | 3d000e7dd14c3185b9e27a6c38a67288b4d10431 (diff) |
glx: Hook up the unit tests again using the internal gtest.
Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r-- | configure.ac | 14 | ||||
-rw-r--r-- | src/glx/.gitignore | 3 | ||||
-rw-r--r-- | src/glx/Makefile.am | 9 | ||||
-rw-r--r-- | tests/glx/Makefile.am | 8 |
4 files changed, 15 insertions, 19 deletions
diff --git a/configure.ac b/configure.ac index 9baccab3624..65d358e0a8d 100644 --- a/configure.ac +++ b/configure.ac @@ -82,18 +82,6 @@ solaris*) ;; esac -AC_PATH_PROG([GTESTCONFIG], [gtest-config]) -if test "x$GTESTCONFIG" != "x"; then - GTEST_CFLAGS=`gtest-config --cppflags --cxxflags` - GTEST_LIBS=`gtest-config --ldflags --libs` - AC_SUBST([GTEST_CFLAGS]) - AC_SUBST([GTEST_LIBS]) - HAVE_GTEST=yes -else - HAVE_GTEST=no -fi -AM_CONDITIONAL(HAVE_GTEST, test x$HAVE_GTEST = xyes) - dnl clang is mostly GCC-compatible, but its version is much lower, dnl so we have to check for it. AC_MSG_CHECKING([if compiling with clang]) @@ -794,7 +782,7 @@ dnl dnl this variable will be prepended to SRC_DIRS and is not exported CORE_DIRS="" -SRC_DIRS="" +SRC_DIRS="gtest" GLU_DIRS="sgi" GALLIUM_DIRS="auxiliary drivers state_trackers" GALLIUM_TARGET_DIRS="" diff --git a/src/glx/.gitignore b/src/glx/.gitignore index f3c7a7c5da6..010d3f20648 100644 --- a/src/glx/.gitignore +++ b/src/glx/.gitignore @@ -1 +1,4 @@ Makefile +Makefile.in +libGL.la +libglx.la diff --git a/src/glx/Makefile.am b/src/glx/Makefile.am index ec62faade99..30fbd63751a 100644 --- a/src/glx/Makefile.am +++ b/src/glx/Makefile.am @@ -55,7 +55,9 @@ lib_LTLIBRARIES = \ $(NORMAL_GL_LIB) \ $(MANGLED_GL_LIB) -GL_FILES = \ +noinst_LTLIBRARIES = libglx.la + +libglx_la_SOURCES = \ clientattrib.c \ clientinfo.c \ compsize.c \ @@ -96,6 +98,7 @@ GL_FILES = \ applegl_glx.c GL_LIBS = \ + libglx.la \ $(SHARED_GLAPI_LIBS) \ $(GLAPI_LIB) \ $(GL_LIB_DEPS) @@ -104,8 +107,8 @@ GL_LDFLAGS = \ -Wl,-Bsymbolic \ -version-number 1:2 -no-undefined -libGL_la_SOURCES = $(GL_FILES) -libMangledGL_la_SOURCES = $(GL_FILES) +libGL_la_SOURCES = +libMangledGL_la_SOURCES = libGL_la_LIBADD = $(GL_LIBS) libMangledGL_la_LIBADD = $(GL_LIBS) libGL_la_LDFLAGS = $(GL_LDFLAGS) diff --git a/tests/glx/Makefile.am b/tests/glx/Makefile.am index cdebf5d0cb1..b5cc0b001ab 100644 --- a/tests/glx/Makefile.am +++ b/tests/glx/Makefile.am @@ -3,7 +3,6 @@ AM_CFLAGS = -I$(top_builddir)/src/glx -I$(top_builddir)/src/mapi \ 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 @@ -13,6 +12,9 @@ glx_unittest_SOURCES = \ create_context_unittest.cpp \ fake_glx_screen.cpp -glx_unittest_LDADD = $(top_builddir)/src/glx/libglx.a $(GTEST_LIBS) -lgtest_main -endif +glx_unittest_LDADD = \ + $(top_builddir)/src/glx/libglx.la \ + $(top_builddir)/src/gtest/libgtest.la \ + -lpthread + endif |