8b5c85533a83b10c0427d8a2ccf97eca1e3e0739
[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 icondir = $(shareddir)/icons/32x32
7 smallicondir = $(shareddir)/icons/48x48
8 bigicondir = $(shareddir)/icons/120x120
9 else
10 shareddir = $(datadir)/rygel
11 sysconfigdir = $(sysconfdir)
12 desktopdir = $(datadir)/applications
13 plugindir = $(libdir)/rygel-1.0
14 smallicondir = $(datadir)/icons/hicolor/48x48/apps
15 bigicondir = $(datadir)/icons/hicolor/120x120/apps
16 icondir = $(datadir)/icons/hicolor/32x32/apps
17 endif
18
19 rygeldir = $(top_srcdir)/src/rygel
20
21 MAINTAINERCLEANFILES = Makefile.in
22
23 AM_CFLAGS = \
24         $(LIBGUPNP_CFLAGS) \
25         $(LIBGUPNP_AV_CFLAGS) \
26         $(LIBGSTREAMER_CFLAGS) \
27         $(GEE_CFLAGS) \
28         $(UUID_CFLAGS) \
29         -I$(rygeldir) \
30         -DDATA_DIR='"$(shareddir)"' -DSYS_CONFIG_DIR='"$(sysconfigdir)"'\
31         -DPLUGIN_DIR='"$(plugindir)"' -DDESKTOP_DIR='"$(desktopdir)"'\
32         -include config.h
33
34 RYGEL_COMMON_LDADD = \
35         $(LIBGUPNP_LIBS) \
36         $(LIBGUPNP_AV_LIBS) \
37         $(LIBGSTREAMER_LIBS) \
38         $(GEE_LIBS) \
39         $(UUID_LIBS)
40
41 # Note: the -g needs to be at the end of VALAFLAGS to not break make dist
42 RYGEL_COMMON_PLUGIN_VALAFLAGS = \
43         --pkg rygel-1.0 \
44         $(RYGEL_COMMON_VALAFLAGS)
45
46 RYGEL_COMMON_VALAFLAGS = \
47         --pkg rygel-build-config --pkg gupnp-1.0 \
48         --vapidir=$(rygeldir) \
49         --pkg gupnp-av-1.0 --pkg gee-1.0 -g
50
51 RYGEL_PLUGIN_LINKER_FLAGS = -shared -fPIC -module -avoid-version
52
53 vala-clean:
54         rm -f `find . -name "*.stamp"`