mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
[build] Encode the target into the backend library
The libclutter-cogl internal object should be the only dependency for Clutter, since we are already copying it inside clutter/cogl for the introspection scanner. For this reason, the backend-specific, real internal object should be built with the backend encoded into the file name, like libclutter-common. This makes the build output a little bit more clear: instead of having two: LINK libclutter-cogl-common.la ... LINK libclutter-cogl.la LINK libclutter-cogl.la We'll have: LINK libclutter-cogl-common.la ... LINK libclutter-cogl-gl.la LINK libclutter-cogl.la Same applies for the GLES backend.
This commit is contained in:
parent
99b2f14d60
commit
1c8a6bc09b
@ -52,14 +52,14 @@ cogl_headers = \
|
|||||||
# so we create a libclutter-cogl.la that's just identical to the one
|
# so we create a libclutter-cogl.la that's just identical to the one
|
||||||
# in the subdir
|
# in the subdir
|
||||||
noinst_LTLIBRARIES = libclutter-cogl.la
|
noinst_LTLIBRARIES = libclutter-cogl.la
|
||||||
libclutter_cogl_la_LIBADD = $(CLUTTER_COGL)/libclutter-cogl.la
|
libclutter_cogl_la_LIBADD = $(CLUTTER_COGL)/libclutter-cogl-$(CLUTTER_COGL).la
|
||||||
libclutter_cogl_la_SOURCES = $(cogl_headers)
|
libclutter_cogl_la_SOURCES = $(cogl_headers)
|
||||||
|
|
||||||
coglincludedir = $(includedir)/clutter-@CLUTTER_API_VERSION@/cogl
|
coglincludedir = $(includedir)/clutter-@CLUTTER_API_VERSION@/cogl
|
||||||
coglinclude_HEADERS = $(cogl_headers)
|
coglinclude_HEADERS = $(cogl_headers)
|
||||||
|
|
||||||
if HAVE_INTROSPECTION
|
if HAVE_INTROSPECTION
|
||||||
Cogl-@CLUTTER_API_VERSION@.gir: $(INTROSPECTION_SCANNER) $(CLUTTER_COGL)/libclutter-cogl.la
|
Cogl-@CLUTTER_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libclutter-cogl.la
|
||||||
$(QUIET_GEN)$(INTROSPECTION_SCANNER) -v \
|
$(QUIET_GEN)$(INTROSPECTION_SCANNER) -v \
|
||||||
--namespace Cogl --nsversion=@CLUTTER_API_VERSION@ \
|
--namespace Cogl --nsversion=@CLUTTER_API_VERSION@ \
|
||||||
-I$(top_srcdir)/clutter/cogl \
|
-I$(top_srcdir)/clutter/cogl \
|
||||||
|
@ -45,12 +45,12 @@ INCLUDES = \
|
|||||||
-DG_LOG_DOMAIN=\"Cogl-GL\" \
|
-DG_LOG_DOMAIN=\"Cogl-GL\" \
|
||||||
-DCLUTTER_COMPILATION
|
-DCLUTTER_COMPILATION
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libclutter-cogl.la
|
noinst_LTLIBRARIES = libclutter-cogl-gl.la
|
||||||
|
|
||||||
libclutter_cogl_la_CPPFLAGS = $(CLUTTER_CFLAGS) $(COGL_DEBUG_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS)
|
libclutter_cogl_gl_la_CPPFLAGS = $(CLUTTER_CFLAGS) $(COGL_DEBUG_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS)
|
||||||
libclutter_cogl_la_LIBADD = -lm $(CLUTTER_LIBS) $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la
|
libclutter_cogl_gl_la_LIBADD = -lm $(CLUTTER_LIBS) $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la
|
||||||
libclutter_cogl_la_DEPENDENCIES = $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la
|
libclutter_cogl_gl_la_DEPENDENCIES = $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la
|
||||||
libclutter_cogl_la_SOURCES = \
|
libclutter_cogl_gl_la_SOURCES = \
|
||||||
$(top_builddir)/clutter/cogl/cogl.h \
|
$(top_builddir)/clutter/cogl/cogl.h \
|
||||||
$(cogl_headers) \
|
$(cogl_headers) \
|
||||||
$(cogl_priv_headers) \
|
$(cogl_priv_headers) \
|
||||||
|
@ -27,12 +27,12 @@ INCLUDES = \
|
|||||||
-DG_LOG_DOMAIN=\"Cogl-GLES\" \
|
-DG_LOG_DOMAIN=\"Cogl-GLES\" \
|
||||||
-DCLUTTER_COMPILATION
|
-DCLUTTER_COMPILATION
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libclutter-cogl.la
|
noinst_LTLIBRARIES = libclutter-cogl-gles.la
|
||||||
|
|
||||||
libclutter_cogl_la_CPPFLAGS = $(CLUTTER_CFLAGS) $(COGL_DEBUG_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS)
|
libclutter_cogl_gles_la_CPPFLAGS = $(CLUTTER_CFLAGS) $(COGL_DEBUG_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS)
|
||||||
libclutter_cogl_la_LIBADD = -lm $(CLUTTER_LIBS) $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la
|
libclutter_cogl_gles_la_LIBADD = -lm $(CLUTTER_LIBS) $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la
|
||||||
libclutter_cogl_la_DEPENDENCIES = $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la
|
libclutter_cogl_gles_la_DEPENDENCIES = $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la
|
||||||
libclutter_cogl_la_SOURCES = \
|
libclutter_cogl_gles_la_SOURCES = \
|
||||||
$(top_builddir)/clutter/cogl/cogl.h \
|
$(top_builddir)/clutter/cogl/cogl.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-defines-gles.h \
|
$(top_builddir)/clutter/cogl/cogl-defines-gles.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-color.h \
|
$(top_builddir)/clutter/cogl/cogl-color.h \
|
||||||
@ -60,7 +60,7 @@ libclutter_cogl_la_SOURCES = \
|
|||||||
cogl-shader.c
|
cogl-shader.c
|
||||||
|
|
||||||
if USE_GLES2_WRAPPER
|
if USE_GLES2_WRAPPER
|
||||||
libclutter_cogl_la_SOURCES += \
|
libclutter_cogl_gles_la_SOURCES += \
|
||||||
cogl-gles2-wrapper.c \
|
cogl-gles2-wrapper.c \
|
||||||
cogl-fixed-vertex-shader.h \
|
cogl-fixed-vertex-shader.h \
|
||||||
cogl-fixed-vertex-shader.c \
|
cogl-fixed-vertex-shader.c \
|
||||||
|
Loading…
Reference in New Issue
Block a user