i965: Link compiler unit tests to libi965_compiler.la
authorKristian Høgsberg Kristensen <krh@bitplanet.net>
Wed, 7 Oct 2015 12:09:48 +0000 (05:09 -0700)
committerKristian Høgsberg Kristensen <krh@bitplanet.net>
Thu, 8 Oct 2015 19:15:03 +0000 (12:15 -0700)
We can now link the unit tests against just libi965_compiler.la. This
lets us drop a lot of DRI driver dependencies, but we still pull in all
of libmesa and more.

This also provides a few standalone users of libi965_compiler.la, which
will help us accidentally using i965_dri.so functions from the compiler.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Signed-off-by: Kristian Høgsberg Kristensen <krh@bitplanet.net>
src/mesa/drivers/dri/i965/Makefile.am

index 82e58a6baa8bd3435945c299b6a4669c41554ebc..2e241511049e02d2fc98efdcb261891434f4afe0 100644 (file)
@@ -48,13 +48,9 @@ libi965_dri_la_LIBADD = libi965_compiler.la $(INTEL_LIBS)
 libi965_compiler_la_SOURCES = $(i965_compiler_FILES)
 
 TEST_LIBS = \
-       libi965_dri.la \
-       ../common/libdricommon.la \
-       ../common/libxmlconfig.la \
-       ../common/libmegadriver_stub.la \
+       libi965_compiler.la \
         ../../../libmesa.la \
-       $(DRI_LIB_DEPS) \
-        $(CLOCK_LIB) \
+       -lpthread -ldl \
        ../common/libdri_test_stubs.la
 
 TESTS = \