Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mapi/es1api/glesv1_cm.pc
src/mapi/es2api/glesv2.pc
src/mapi/glapi/gen/Makefile
- src/mapi/glapi/tests/Makefile
src/mapi/shared-glapi/tests/Makefile
src/mapi/vgapi/Makefile
src/mapi/vgapi/vg.pc
CLEANFILES = $(BUILT_SOURCES)
lib_LTLIBRARIES =
+check_PROGRAMS =
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA =
endif
if HAVE_OPENGL
-SUBDIRS += glapi/tests
-
noinst_LTLIBRARIES = glapi/libglapi.la
if HAVE_X86_ASM
$(GLAPI_SOURCES) \
$(GLAPI_ASM_SOURCES) \
$(MAPI_UTIL_FILES)
+
+TESTS += glapi-test
+check_PROGRAMS += glapi-test
+
+glapi_test_SOURCES = glapi/tests/check_table.cpp
+glapi_test_CPPFLAGS = \
+ $(AM_CPPFLAGS) \
+ -I$(top_srcdir)/src/gtest/include
+
+glapi_test_LDADD = \
+ $(top_builddir)/src/mapi/glapi/libglapi.la \
+ $(top_builddir)/src/gtest/libgtest.la
endif
endif
+++ /dev/null
-if !HAVE_SHARED_GLAPI
-AM_CFLAGS = $(PTHREAD_CFLAGS)
-AM_CPPFLAGS = \
- $(DEFINES) \
- -I$(top_srcdir)/src/gtest/include \
- -I$(top_builddir)/src/mapi \
- -I$(top_srcdir)/src/mapi \
- -I$(top_srcdir)/include
-
-TESTS = glapi-test
-check_PROGRAMS = glapi-test
-
-glapi_test_SOURCES = \
- check_table.cpp
-
-glapi_test_LDADD = \
- $(top_builddir)/src/mapi/glapi/libglapi.la \
- $(top_builddir)/src/gtest/libgtest.la \
- $(PTHREAD_LIBS)
-endif