[clutter-gst/clutter-gst-3.0] build: Clean up the build system
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst/clutter-gst-3.0] build: Clean up the build system
- Date: Sun, 19 Jun 2016 11:38:51 +0000 (UTC)
commit e1cbe21e51f85ce17dbb535b446b639b24d8266f
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sun Jun 19 12:31:23 2016 +0100
build: Clean up the build system
Drop $(srcdir) and $(builddir) from the file lists, and add the
$(srcdir) prefix only where needed. This is similar to what was done in
the clutter-gst-2.0 branch.
build/autotools/Makefile.am.enums | 9 ++--
clutter-gst/Makefile.am | 90 ++++++++++++++++++------------------
2 files changed, 50 insertions(+), 49 deletions(-)
---
diff --git a/build/autotools/Makefile.am.enums b/build/autotools/Makefile.am.enums
index ec1a6c1..304ca85 100644
--- a/build/autotools/Makefile.am.enums
+++ b/build/autotools/Makefile.am.enums
@@ -26,16 +26,17 @@ $(if $(glib_enum_headers),,$(error Need to define glib_enum_headers))
enum_tmpl_h=$(addprefix $(srcdir)/, $(glib_enum_h:.h=.h.in))
enum_tmpl_c=$(addprefix $(srcdir)/, $(glib_enum_c:.c=.c.in))
+enum_headers=$(addprefix $(srcdir)/, $(glib_enum_headers))
CLEANFILES += stamp-enum-types
DISTCLEANFILES += $(glib_enum_h) $(glib_enum_c)
BUILT_SOURCES += $(glib_enum_h) $(glib_enum_c)
EXTRA_DIST += $(enum_tmpl_h) $(enum_tmpl_c)
-stamp-enum-types: $(glib_enum_headers) $(enum_tmpl_h)
+stamp-enum-types: $(enum_headers) $(enum_tmpl_h)
$(AM_V_GEN)$(GLIB_MKENUMS) \
--template $(enum_tmpl_h) \
- $(glib_enum_headers) | sed -e 's/_TYPE_GST/_TYPE/g' > xgen-eh \
+ $(enum_headers) | sed -e 's/_TYPE_GST/_TYPE/g' > xgen-eh \
&& (cmp -s xgen-eh $(glib_enum_h) || cp -f xgen-eh $(glib_enum_h)) \
&& rm -f xgen-eh \
&& echo timestamp > $(@F)
@@ -43,9 +44,9 @@ stamp-enum-types: $(glib_enum_headers) $(enum_tmpl_h)
$(glib_enum_h): stamp-enum-types
@true
-$(glib_enum_c): $(glib_enum_headers) $(glib_enum_h) $(enum_tmpl_c)
+$(glib_enum_c): $(enum_headers) $(enum_tmpl_h) $(enum_tmpl_c)
$(AM_V_GEN)$(GLIB_MKENUMS) \
--template $(enum_tmpl_c) \
- $(glib_enum_headers) > xgen-ec \
+ $(enum_headers) > xgen-ec \
&& cp -f xgen-ec $(glib_enum_c) \
&& rm -f xgen-ec
diff --git a/clutter-gst/Makefile.am b/clutter-gst/Makefile.am
index ef501c1..001292f 100644
--- a/clutter-gst/Makefile.am
+++ b/clutter-gst/Makefile.am
@@ -20,51 +20,45 @@ glib_marshal_list = clutter-gst-marshal.list
glib_marshal_prefix = _clutter_gst_marshal
include $(top_srcdir)/build/autotools/Makefile.am.marshal
-source_h = \
- $(srcdir)/clutter-gst.h \
- $(srcdir)/clutter-gst-types.h \
- $(srcdir)/clutter-gst-util.h \
- $(builddir)/clutter-gst-version.h \
- $(srcdir)/clutter-gst-camera.h \
- $(srcdir)/clutter-gst-camera-manager.h \
- $(srcdir)/clutter-gst-camera-device.h \
- $(srcdir)/clutter-gst-playback.h \
- $(srcdir)/clutter-gst-player.h \
- $(srcdir)/clutter-gst-aspectratio.h \
- $(srcdir)/clutter-gst-crop.h \
- $(srcdir)/clutter-gst-content.h \
- $(srcdir)/clutter-gst-video-sink.h \
+source_h = \
+ clutter-gst-types.h \
+ clutter-gst-util.h \
+ clutter-gst-camera.h \
+ clutter-gst-camera-manager.h \
+ clutter-gst-camera-device.h \
+ clutter-gst-playback.h \
+ clutter-gst-player.h \
+ clutter-gst-aspectratio.h \
+ clutter-gst-crop.h \
+ clutter-gst-content.h \
+ clutter-gst-video-sink.h \
$(NULL)
-source_priv_h = \
- $(srcdir)/clutter-gst-debug.h \
- $(builddir)/clutter-gst-marshal.h \
- $(srcdir)/clutter-gst-private.h \
+source_priv_h = \
+ clutter-gst-debug.h \
+ clutter-gst-private.h \
$(NULL)
-source_c = \
- $(srcdir)/clutter-gst-debug.c \
- $(srcdir)/clutter-gst-types.c \
- $(builddir)/clutter-gst-marshal.c \
- $(srcdir)/clutter-gst-player.c \
- $(srcdir)/clutter-gst-camera.c \
- $(srcdir)/clutter-gst-camera-manager.c \
- $(srcdir)/clutter-gst-camera-device.c \
- $(srcdir)/clutter-gst-playback.c \
- $(srcdir)/clutter-gst-util.c \
- $(srcdir)/clutter-gst-aspectratio.c \
- $(srcdir)/clutter-gst-crop.c \
- $(srcdir)/clutter-gst-content.c \
- $(srcdir)/clutter-gst-video-sink.c \
- $(glib_enum_c) \
+source_c = \
+ clutter-gst-debug.c \
+ clutter-gst-types.c \
+ clutter-gst-player.c \
+ clutter-gst-camera.c \
+ clutter-gst-camera-manager.c \
+ clutter-gst-camera-device.c \
+ clutter-gst-playback.c \
+ clutter-gst-util.c \
+ clutter-gst-aspectratio.c \
+ clutter-gst-crop.c \
+ clutter-gst-content.c \
+ clutter-gst-video-sink.c \
$(NULL)
libclutter_gst_ CLUTTER_GST_MAJORMINOR@_la_SOURCES = \
- $(MARSHALFILES) \
+ $(BUILT_SOURCES) \
$(source_c) \
$(source_priv_h) \
$(source_h) \
- $(glib_enum_h) \
$(NULL)
AM_CPPFLAGS = \
@@ -73,6 +67,7 @@ AM_CPPFLAGS = \
-DCOGL_ENABLE_EXPERIMENTAL_API \
-DCLUTTER_ENABLE_EXPERIMENTAL_API \
-DG_LOG_DOMAIN=\"Clutter-Gst\" \
+ -DCLUTTER_DISABLE_DEPRECATION_WARNINGS \
-I$(top_srcdir) \
-I$(top_builddir) \
$(NULL)
@@ -98,16 +93,20 @@ libclutter_gst_ CLUTTER_GST_MAJORMINOR@_la_LDFLAGS = \
$(NULL)
cluttergstheadersdir = $(includedir)/clutter-gst- CLUTTER_GST_API_VERSION@/clutter-gst
-cluttergstheaders_HEADERS = $(source_h) $(glib_enum_h)
+cluttergstheaders_HEADERS = \
+ $(source_h) \
+ clutter-gst.h \
+ $(NULL)
+nodist_cluttergstheaders_HEADERS = $(glib_enum_h) clutter-gst-version.h
#
# GStreamer plugin
#
-plugin_source_c = \
- $(srcdir)/clutter-gst-plugin.c \
- $(srcdir)/clutter-gst-auto-video-sink.c \
- $(srcdir)/clutter-gst-auto-video-sink.h \
+plugin_source_c = \
+ clutter-gst-plugin.c \
+ clutter-gst-auto-video-sink.c \
+ clutter-gst-auto-video-sink.h \
$(NULL)
libgstclutter_ CLUTTER_GST_MAJORMINOR@_la_SOURCES = \
@@ -141,7 +140,8 @@ ClutterGst- CLUTTER_GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libclutter-gs
$(INTROSPECTION_SCANNER) -v \
--namespace ClutterGst --nsversion= CLUTTER_GST_API_VERSION@ \
--quiet --warn-all \
- --add-include-path=$(srcdir) --add-include=path=. \
+ --add-include-path=$(top_srcdir)/clutter-gst \
+ --add-include=path=$(top_builddir)/clutter-gst \
--c-include="clutter-gst/clutter-gst.h" \
--include=GObject-2.0 \
--include=Cogl-1.0 \
@@ -176,18 +176,18 @@ ClutterGst- CLUTTER_GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libclutter-gs
$(HW_CFLAGS) \
-DGST_USE_UNSTABLE_API \
--cflags-end \
- $(cluttergstheaders_HEADERS) \
- $(source_c)
+ $(addprefix $(srcdir)/, $(source_h)) \
+ $(addprefix $(srcdir)/, $(source_c))
BUILT_GIRSOURCES += ClutterGst- CLUTTER_GST_API_VERSION@.gir
# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
# install anything - we need to install inside our prefix.
girdir = $(datadir)/gir-1.0
-gir_DATA = $(BUILT_GIRSOURCES)
+nodist_gir_DATA = $(BUILT_GIRSOURCES)
typelibsdir = $(libdir)/girepository-1.0/
-typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
+nodist_typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
%.typelib: %.gir $(INTROSPECTION_COMPILER)
$(QUIET_GEN)$(INTROSPECTION_COMPILER) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]