summaryrefslogtreecommitdiffstats
path: root/src/mapi/Makefile.am
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-08-14 12:30:22 -0700
committerMatt Turner <[email protected]>2014-08-18 18:25:02 -0700
commit18ef5136b6b4534ab8a65e393c9c3e569f2ac08b (patch)
tree8ca6c36b4169ab88c078155f5070bd26921fd95d /src/mapi/Makefile.am
parentc3ce1a942f90843ba637e558e990275bc742571c (diff)
mapi: Inline es1api/Makefile.
Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/mapi/Makefile.am')
-rw-r--r--src/mapi/Makefile.am40
1 files changed, 39 insertions, 1 deletions
diff --git a/src/mapi/Makefile.am b/src/mapi/Makefile.am
index 94657b0c3c7..52628d03af7 100644
--- a/src/mapi/Makefile.am
+++ b/src/mapi/Makefile.am
@@ -20,6 +20,7 @@
# IN THE SOFTWARE.
SUBDIRS = glapi/gen .
+TESTS =
TOP = $(top_srcdir)
@@ -27,6 +28,8 @@ BUILT_SOURCES =
CLEANFILES = $(BUILT_SOURCES)
lib_LTLIBRARIES =
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA =
AM_CFLAGS = $(PTHREAD_CFLAGS)
AM_CPPFLAGS = \
@@ -68,7 +71,42 @@ SUBDIRS += glapi
endif
if HAVE_OPENGL_ES1
-SUBDIRS += es1api
+TESTS += es1api/ABI-check
+
+BUILT_SOURCES += es1api/glapi_mapi_tmp.h
+
+pkgconfig_DATA += es1api/glesv1_cm.pc
+
+GLES_includedir = $(includedir)/GLES
+GLES_include_HEADERS = \
+ $(top_srcdir)/include/GLES/egl.h \
+ $(top_srcdir)/include/GLES/gl.h \
+ $(top_srcdir)/include/GLES/glext.h \
+ $(top_srcdir)/include/GLES/glplatform.h
+
+lib_LTLIBRARIES += es1api/libGLESv1_CM.la
+
+es1api_libGLESv1_CM_la_SOURCES = entry.c es1api/glapi_mapi_tmp.h
+es1api_libGLESv1_CM_la_CFLAGS = \
+ $(AM_CFLAGS) \
+ $(VISIBILITY_CFLAGS)
+es1api_libGLESv1_CM_la_CPPFLAGS = \
+ $(AM_CPPFLAGS) \
+ -DMAPI_MODE_BRIDGE \
+ -DMAPI_ABI_HEADER=\"es1api/glapi_mapi_tmp.h\"
+es1api_libGLESv1_CM_la_LIBADD = $(GLESv1_CM_LIB_DEPS)
+es1api_libGLESv1_CM_la_LDFLAGS = \
+ -no-undefined \
+ -version-number 1:1 \
+ $(GC_SECTIONS) \
+ $(LD_NO_UNDEFINED)
+
+if HAVE_SHARED_GLAPI
+es1api_libGLESv1_CM_la_LIBADD += shared-glapi/libglapi.la
+endif
+
+es1api/glapi_mapi_tmp.h: glapi/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps)
+ $(call glapi_gen_mapi,$<,es1api)
endif
if HAVE_OPENGL_ES2