summaryrefslogtreecommitdiff
path: root/common.am
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2011-02-20 15:12:49 +0100
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>2011-02-21 21:32:26 +0200
commit45f8bbe28a6574a0d95549cb2815c8f6fea516c6 (patch)
treef19a0ea7290314c7666b0ceeefbb7e6625b9aab9 /common.am
parent5fc320c5b3b1b43cd419c5056887ce5861d3c745 (diff)
downloadrygel-45f8bbe28a6574a0d95549cb2815c8f6fea516c6.tar.gz
build: Cleanup and simplify Makefile.am
Diffstat (limited to 'common.am')
-rw-r--r--common.am54
1 files changed, 54 insertions, 0 deletions
diff --git a/common.am b/common.am
new file mode 100644
index 00000000..8b5c8553
--- /dev/null
+++ b/common.am
@@ -0,0 +1,54 @@
+if UNINSTALLED
+shareddir = $(abs_top_builddir)/data
+sysconfigdir = $(shareddir)
+desktopdir = $(shareddir)
+plugindir = $(abs_top_builddir)/src/plugins
+icondir = $(shareddir)/icons/32x32
+smallicondir = $(shareddir)/icons/48x48
+bigicondir = $(shareddir)/icons/120x120
+else
+shareddir = $(datadir)/rygel
+sysconfigdir = $(sysconfdir)
+desktopdir = $(datadir)/applications
+plugindir = $(libdir)/rygel-1.0
+smallicondir = $(datadir)/icons/hicolor/48x48/apps
+bigicondir = $(datadir)/icons/hicolor/120x120/apps
+icondir = $(datadir)/icons/hicolor/32x32/apps
+endif
+
+rygeldir = $(top_srcdir)/src/rygel
+
+MAINTAINERCLEANFILES = Makefile.in
+
+AM_CFLAGS = \
+ $(LIBGUPNP_CFLAGS) \
+ $(LIBGUPNP_AV_CFLAGS) \
+ $(LIBGSTREAMER_CFLAGS) \
+ $(GEE_CFLAGS) \
+ $(UUID_CFLAGS) \
+ -I$(rygeldir) \
+ -DDATA_DIR='"$(shareddir)"' -DSYS_CONFIG_DIR='"$(sysconfigdir)"'\
+ -DPLUGIN_DIR='"$(plugindir)"' -DDESKTOP_DIR='"$(desktopdir)"'\
+ -include config.h
+
+RYGEL_COMMON_LDADD = \
+ $(LIBGUPNP_LIBS) \
+ $(LIBGUPNP_AV_LIBS) \
+ $(LIBGSTREAMER_LIBS) \
+ $(GEE_LIBS) \
+ $(UUID_LIBS)
+
+# Note: the -g needs to be at the end of VALAFLAGS to not break make dist
+RYGEL_COMMON_PLUGIN_VALAFLAGS = \
+ --pkg rygel-1.0 \
+ $(RYGEL_COMMON_VALAFLAGS)
+
+RYGEL_COMMON_VALAFLAGS = \
+ --pkg rygel-build-config --pkg gupnp-1.0 \
+ --vapidir=$(rygeldir) \
+ --pkg gupnp-av-1.0 --pkg gee-1.0 -g
+
+RYGEL_PLUGIN_LINKER_FLAGS = -shared -fPIC -module -avoid-version
+
+vala-clean:
+ rm -f `find . -name "*.stamp"`