sysconfigdir = $(shareddir)
desktopdir = $(shareddir)
plugindir = $(abs_top_builddir)/src/plugins
+enginedir = $(abs_top_builddir)/src/media-engines
icondir = $(shareddir)/icons/32x32
-smallicondir = $(shareddir)/icons/48x48
-bigicondir = $(shareddir)/icons/120x120
+presetdir = $(shareddir)/presets
+
+install: all-am
+ @echo "You called configure with --enable-uninstalled. Cannot install"
+
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
+plugindir = @RYGEL_PLUGIN_DIR@
+enginedir = @RYGEL_MEDIA_ENGINE_DIR@
icondir = $(datadir)/icons/hicolor/32x32/apps
+presetdir = $(shareddir)/presets
endif
-rygeldir = $(top_srcdir)/src/rygel
+smallicondir = $(shareddir)/icons/48x48
+bigicondir = $(shareddir)/icons/120x120
+
+librygelcoredir = $(top_srcdir)/src/librygel-core
+librygelserverdir = $(top_srcdir)/src/librygel-server
+librygelrendererdir = $(top_srcdir)/src/librygel-renderer
MAINTAINERCLEANFILES = Makefile.in
-AM_CFLAGS = \
- $(LIBGUPNP_CFLAGS) \
- $(LIBGUPNP_AV_CFLAGS) \
- $(LIBGSTREAMER_CFLAGS) \
- $(GSTREAMER_BASE_CFLAGS) \
- $(GEE_CFLAGS) \
- $(UUID_CFLAGS) \
- -I$(rygeldir) \
- -DDATA_DIR='"$(shareddir)"' -DSYS_CONFIG_DIR='"$(sysconfigdir)"'\
- -DPLUGIN_DIR='"$(plugindir)"' -DDESKTOP_DIR='"$(desktopdir)"'\
+RYGEL_COMMON_DEFINES_CFLAGS = \
+ -DDATA_DIR='"$(shareddir)"' \
-include config.h
-RYGEL_COMMON_LDADD = \
- $(LIBGUPNP_LIBS) \
- $(LIBGUPNP_AV_LIBS) \
- $(LIBGSTREAMER_LIBS) \
- $(GSTREAMER_BASE_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_LIBRYGEL_CORE_VALAFLAGS = \
+ --vapidir=$(librygelcoredir) \
+ --pkg rygel-core-2.2 \
+ --pkg uuid
+
+RYGEL_COMMON_LIBRYGEL_CORE_CFLAGS = \
+ $(RYGEL_COMMON_DEFINES_CFLAGS) \
+ -I$(top_builddir)/src/librygel-core \
+ -I$(top_srcdir)/src/librygel-core
+
+RYGEL_COMMON_LIBRYGEL_CORE_LIBS = \
+ $(top_builddir)/src/librygel-core/librygel-core-2.2.la
+
+
+RYGEL_COMMON_LIBRYGEL_RENDERER_VALAFLAGS = \
+ --vapidir=$(top_srcdir)/src/librygel-renderer \
+ --pkg rygel-renderer-2.2 \
+ $(RYGEL_COMMON_LIBRYGEL_CORE_VALAFLAGS)
+
+RYGEL_COMMON_LIBRYGEL_RENDERER_CFLAGS = \
+ $(RYGEL_COMMON_LIBRYGEL_CORE_CFLAGS) \
+ -I$(top_builddir)/src/librygel-renderer \
+ -I$(top_srcdir)/src/librygel-renderer
+
+RYGEL_COMMON_LIBRYGEL_RENDERER_LIBS = \
+ $(RYGEL_COMMON_LIBRYGEL_CORE_LIBS) \
+ $(top_builddir)/src/librygel-renderer/librygel-renderer-2.2.la
+
+
+RYGEL_COMMON_LIBRYGEL_RENDERER_GST_VALAFLAGS = \
+ --vapidir=$(top_srcdir)/src/librygel-renderer-gst \
+ --pkg rygel-renderer-gst-2.2 \
+ $(RYGEL_COMMON_LIBRYGEL_RENDERER_VALAFLAGS)
+
+RYGEL_COMMON_LIBRYGEL_RENDERER_GST_CFLAGS = \
+ $(RYGEL_COMMON_LIBRYGEL_RENDERER_CFLAGS) \
+ -I$(top_builddir)/src/librygel-renderer-gst \
+ -I$(top_srcdir)/src/librygel-renderer-gst
+
+RYGEL_COMMON_LIBRYGEL_RENDERER_GST_LIBS = \
+ $(RYGEL_COMMON_LIBRYGEL_RENDERER_LIBS) \
+ $(top_builddir)/src/librygel-renderer-gst/librygel-renderer-gst-2.2.la
+
+
+RYGEL_COMMON_LIBRYGEL_SERVER_VALAFLAGS = \
+ --vapidir=$(top_builddir)/src/librygel-server \
+ --pkg rygel-server-2.2 \
+ $(RYGEL_COMMON_LIBRYGEL_CORE_VALAFLAGS)
+
+RYGEL_COMMON_LIBRYGEL_SERVER_CFLAGS = \
+ $(RYGEL_COMMON_LIBRYGEL_CORE_CFLAGS) \
+ -I$(top_builddir)/src/librygel-server \
+ -I$(top_srcdir)/src/librygel-server
+
+RYGEL_COMMON_LIBRYGEL_SERVER_LIBS = \
+ $(RYGEL_COMMON_LIBRYGEL_CORE_LIBS) \
+ $(top_builddir)/src/librygel-server/librygel-server-2.2.la
+
+RYGEL_COMMON_BUILD_CONFIG_VALAFLAGS = \
+ --vapidir=$(librygelcoredir) \
+ --pkg rygel-build-config
+# Note: This must always be the last one in *_VALAFLAGS,
+# because the -g needs to be at the end of VALAFLAGS to not break make dist.
RYGEL_COMMON_VALAFLAGS = \
- --pkg rygel-build-config --pkg gupnp-1.0 \
- --vapidir=$(rygeldir) \
- --pkg gupnp-av-1.0 --pkg gee-1.0 -g
+ $(RYGEL_COMMON_BUILD_CONFIG_VALAFLAGS) \
+ $(RYGEL_COMMON_VALAFLAGS_PKG) \
+ $(COVERAGE_VALAFLAGS) \
+ $(RYGEL_DEBUG_VALAFLAGS)
-RYGEL_PLUGIN_LINKER_FLAGS = -shared -fPIC -module -avoid-version
vala-clean:
rm -f `find . -name "*.stamp"`