From e87106d1531267a052cb3decf03d35b6e0572616 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 15 Aug 2014 10:08:14 -0700 Subject: mapi: Inline shared-glapi/tests/Makefile. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Kristian Høgsberg --- src/mapi/Makefile.am | 13 +++++++++++-- src/mapi/shared-glapi/tests/Makefile.am | 19 ------------------- 2 files changed, 11 insertions(+), 21 deletions(-) delete mode 100644 src/mapi/shared-glapi/tests/Makefile.am (limited to 'src') diff --git a/src/mapi/Makefile.am b/src/mapi/Makefile.am index ab60a7358e7..80ead821ccc 100644 --- a/src/mapi/Makefile.am +++ b/src/mapi/Makefile.am @@ -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 index 7e71b4fd1af..00000000000 --- a/src/mapi/shared-glapi/tests/Makefile.am +++ /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 -- cgit v1.2.3