9e44d15f6f8fdb61cd8f8670e1dad0c98ff663c0
[profile/ivi/rygel.git] / common.am
1 if UNINSTALLED
2 shareddir = $(abs_top_builddir)/data
3 sysconfigdir = $(shareddir)
4 desktopdir = $(shareddir)
5 plugindir = $(abs_top_builddir)/src/plugins
6 enginedir = $(abs_top_builddir)/src/media-engines
7 icondir = $(shareddir)/icons/32x32
8 presetdir = $(shareddir)/presets
9
10 install: all-am
11         @echo "You called configure with --enable-uninstalled. Cannot install"
12
13 else
14 shareddir = $(datadir)/rygel
15 sysconfigdir = $(sysconfdir)
16 desktopdir = $(datadir)/applications
17 plugindir = $(libdir)/rygel-2.0/plugins
18 enginedir = $(libdir)/rygel-2.0/engines
19 icondir = $(datadir)/icons/hicolor/32x32/apps
20 presetdir = $(shareddir)/presets
21 endif
22
23 smallicondir = $(shareddir)/icons/48x48
24 bigicondir = $(shareddir)/icons/120x120
25
26 rygeldir = $(top_srcdir)/src/rygel
27 librygelcoredir = $(top_srcdir)/src/librygel-core
28 librygelserverdir = $(top_srcdir)/src/librygel-server
29 librygelrendererdir = $(top_srcdir)/src/librygel-renderer
30
31 MAINTAINERCLEANFILES = Makefile.in
32
33 AM_CFLAGS = \
34         $(LIBGUPNP_CFLAGS) \
35         $(LIBGUPNP_AV_CFLAGS) \
36         $(GEE_CFLAGS) \
37         $(UUID_CFLAGS) \
38         $(COVERAGE_CFLAGS) \
39         -I$(rygeldir) \
40         -I$(librygelcoredir) \
41         -I$(librygelserverdir) \
42         -I$(librygelrendererdir) \
43         -DDATA_DIR='"$(shareddir)"' -DSYS_CONFIG_DIR='"$(sysconfigdir)"'\
44         -DPLUGIN_DIR='"$(plugindir)"' -DDESKTOP_DIR='"$(desktopdir)"'\
45         -DPRESET_DIR='"$(presetdir)"' -DENGINE_DIR='"$(enginedir)"' \
46         -include config.h
47
48 RYGEL_BASE_LIBS = \
49         $(LIBGUPNP_LIBS) \
50         $(GEE_LIBS) \
51         $(UUID_LIBS) \
52         $(COVERAGE_LIBS)
53
54 RYGEL_COMMON_LIBS = \
55         $(RYGEL_BASE_LIBS) \
56         $(LIBGUPNP_AV_LIBS) \
57         $(top_builddir)/src/librygel-core/librygel-core-2.0.la
58
59 RYGEL_COMMON_SERVER_LIBS = \
60         $(top_builddir)/src/librygel-server/librygel-server-2.0.la \
61         $(RYGEL_COMMON_LIBS)
62
63 RYGEL_COMMON_RENDERER_LIBS = \
64         $(top_builddir)/src/librygel-renderer/librygel-renderer-2.0.la \
65         $(RYGEL_COMMON_LIBS)
66
67 # Note: the -g needs to be at the end of VALAFLAGS to not break make dist
68 RYGEL_COMMON_PLUGIN_VALAFLAGS = \
69         --pkg rygel-core-2.0 \
70         $(RYGEL_COMMON_VALAFLAGS)
71
72 RYGEL_COMMON_SERVER_PLUGIN_VALAFLAGS = \
73         --pkg rygel-server-2.0 \
74         --vapidir=$(top_builddir)/src/librygel-server \
75         $(RYGEL_COMMON_PLUGIN_VALAFLAGS)
76
77 RYGEL_COMMON_RENDERER_PLUGIN_VALAFLAGS = \
78         --pkg rygel-renderer-2.0 \
79         --vapidir=$(top_builddir)/src/librygel-renderer \
80         $(RYGEL_COMMON_PLUGIN_VALAFLAGS)
81
82 RYGEL_COMMON_VALAFLAGS_PKG = --pkg gupnp-1.0 --pkg gupnp-av-1.0 --pkg gee-1.0
83
84 RYGEL_COMMON_VALAFLAGS = \
85         --pkg rygel-build-config \
86         --vapidir=$(rygeldir) \
87         --vapidir=$(librygelcoredir) \
88         $(RYGEL_COMMON_VALAFLAGS_PKG) \
89         $(RYGEL_DEBUG_VALAFLAGS) \
90         $(COVERAGE_VALAFLAGS)
91
92 RYGEL_PLUGIN_LINKER_FLAGS = -shared -fPIC -module -avoid-version
93
94 vala-clean:
95         rm -f `find . -name "*.stamp"`