Updated Slovenian translation
[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 presetdir = $(shareddir)/presets
8 else
9 shareddir = $(datadir)/rygel
10 sysconfigdir = $(sysconfdir)
11 desktopdir = $(datadir)/applications
12 plugindir = $(libdir)/rygel-1.0
13 icondir = $(datadir)/icons/hicolor/32x32/apps
14 presetdir = $(shareddir)/presets
15 endif
16
17 smallicondir = $(shareddir)/icons/48x48
18 bigicondir = $(shareddir)/icons/120x120
19
20 rygeldir = $(top_srcdir)/src/rygel
21 librygelcoredir = $(top_srcdir)/src/librygel-core
22
23 MAINTAINERCLEANFILES = Makefile.in
24
25 AM_CFLAGS = \
26         $(LIBGUPNP_CFLAGS) \
27         $(LIBGUPNP_AV_CFLAGS) \
28         $(LIBGSTREAMER_CFLAGS) \
29         $(GSTREAMER_BASE_CFLAGS) \
30         $(GEE_CFLAGS) \
31         $(UUID_CFLAGS) \
32         $(COVERAGE_CFLAGS) \
33         -I$(rygeldir) \
34         -I$(librygelcoredir) \
35         -DDATA_DIR='"$(shareddir)"' -DSYS_CONFIG_DIR='"$(sysconfigdir)"'\
36         -DPLUGIN_DIR='"$(plugindir)"' -DDESKTOP_DIR='"$(desktopdir)"'\
37         -DPRESET_DIR='"$(presetdir)"'\
38         -include config.h
39
40 RYGEL_BASE_LIBS = \
41         $(LIBGUPNP_LIBS) \
42         $(LIBGUPNP_AV_LIBS) \
43         $(LIBGSTREAMER_LIBS) \
44         $(GSTREAMER_BASE_LIBS) \
45         $(GEE_LIBS) \
46         $(UUID_LIBS) \
47         $(COVERAGE_LIBS)
48
49 RYGEL_COMMON_LIBS = \
50         $(RYGEL_BASE_LIBS) \
51         $(top_builddir)/src/librygel-core/librygel-core-1.0.la
52
53 # Note: the -g needs to be at the end of VALAFLAGS to not break make dist
54 RYGEL_COMMON_PLUGIN_VALAFLAGS = \
55         --pkg rygel-core-1.0 \
56         $(RYGEL_COMMON_VALAFLAGS)
57
58 RYGEL_COMMON_VALAFLAGS_PKG = --pkg gupnp-1.0 --pkg gupnp-av-1.0 --pkg gee-1.0
59
60 RYGEL_COMMON_VALAFLAGS = \
61         --pkg rygel-build-config \
62         --vapidir=$(rygeldir) \
63         --vapidir=$(librygelcoredir) \
64         $(RYGEL_COMMON_VALAFLAGS_PKG)
65         $(RYGEL_DEBUG_VALAFLAGS) \
66         $(COVERAGE_VALAFLAGS)
67
68 RYGEL_PLUGIN_LINKER_FLAGS = -shared -fPIC -module -avoid-version
69
70 vala-clean:
71         rm -f `find . -name "*.stamp"`