mapi: Inline shared-glapi/tests/Makefile.
authorMatt Turner <mattst88@gmail.com>
Fri, 15 Aug 2014 17:08:14 +0000 (10:08 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 19 Aug 2014 01:27:20 +0000 (18:27 -0700)
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
configure.ac
src/mapi/Makefile.am
src/mapi/shared-glapi/tests/Makefile.am [deleted file]

index d8eea57a397aba0a653aafdc42f14cbe4852b264..be6898f7deeb46d5443019582a2b2ba25ea60960 100644 (file)
@@ -2239,7 +2239,6 @@ AC_CONFIG_FILES([Makefile
                src/mapi/es1api/glesv1_cm.pc
                src/mapi/es2api/glesv2.pc
                src/mapi/glapi/gen/Makefile
-               src/mapi/shared-glapi/tests/Makefile
                src/mapi/vgapi/Makefile
                src/mapi/vgapi/vg.pc
                src/mesa/Makefile
index ab60a7358e72fe9f0649d306faf3768bed761eee..80ead821cccfb5a973cbda5cbf556c9a4e302793 100644 (file)
@@ -46,8 +46,6 @@ include glapi/Makefile.sources
 include glapi/gen/glapi_gen.mk
 
 if HAVE_SHARED_GLAPI
-SUBDIRS += shared-glapi/tests
-
 BUILT_SOURCES += shared-glapi/glapi_mapi_tmp.h
 
 lib_LTLIBRARIES += shared-glapi/libglapi.la
@@ -66,6 +64,17 @@ shared_glapi_libglapi_la_LDFLAGS = \
 
 shared-glapi/glapi_mapi_tmp.h : $(GLAPI)/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps)
        $(call glapi_gen_mapi,$<,shared-glapi)
+
+TESTS += shared-glapi-test
+check_PROGRAMS += shared-glapi-test
+
+shared_glapi_test_SOURCES = shared-glapi/tests/check_table.cpp
+shared_glapi_test_CPPFLAGS = \
+       $(AM_CPPFLAGS) \
+       -I$(top_srcdir)/src/gtest/include
+shared_glapi_test_LDADD = \
+       $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
+       $(top_builddir)/src/gtest/libgtest.la
 endif
 
 if HAVE_OPENGL
diff --git a/src/mapi/shared-glapi/tests/Makefile.am b/src/mapi/shared-glapi/tests/Makefile.am
deleted file mode 100644 (file)
index 7e71b4f..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-if HAVE_SHARED_GLAPI
-AM_CFLAGS = $(PTHREAD_CFLAGS)
-AM_CPPFLAGS = \
-       -I$(top_srcdir)/src/gtest/include \
-       -I$(top_srcdir)/src/mapi \
-       -I$(top_builddir)/src/mapi \
-       -I$(top_srcdir)/include
-
-TESTS = shared-glapi-test
-check_PROGRAMS = shared-glapi-test
-
-shared_glapi_test_SOURCES =                    \
-       check_table.cpp
-
-shared_glapi_test_LDADD = \
-       $(top_builddir)/src/mapi/shared-glapi/libglapi.la \
-       $(top_builddir)/src/gtest/libgtest.la \
-       $(PTHREAD_LIBS)
-endif