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
22 MAINTAINERCLEANFILES = Makefile.in
23
24 AM_CFLAGS = \
25         $(LIBGUPNP_CFLAGS) \
26         $(LIBGUPNP_AV_CFLAGS) \
27         $(LIBGSTREAMER_CFLAGS) \
28         $(GSTREAMER_BASE_CFLAGS) \
29         $(GEE_CFLAGS) \
30         $(UUID_CFLAGS) \
31         $(COVERAGE_CFLAGS) \
32         -I$(rygeldir) \
33         -DDATA_DIR='"$(shareddir)"' -DSYS_CONFIG_DIR='"$(sysconfigdir)"'\
34         -DPLUGIN_DIR='"$(plugindir)"' -DDESKTOP_DIR='"$(desktopdir)"'\
35         -DPRESET_DIR='"$(presetdir)"'\
36         -include config.h
37
38 RYGEL_COMMON_LIBS = \
39         $(LIBGUPNP_LIBS) \
40         $(LIBGUPNP_AV_LIBS) \
41         $(LIBGSTREAMER_LIBS) \
42         $(GSTREAMER_BASE_LIBS) \
43         $(GEE_LIBS) \
44         $(UUID_LIBS) \
45         $(COVERAGE_LIBS)
46
47 # Note: the -g needs to be at the end of VALAFLAGS to not break make dist
48 RYGEL_COMMON_PLUGIN_VALAFLAGS = \
49         --pkg rygel-1.0 \
50         $(RYGEL_COMMON_VALAFLAGS)
51
52 RYGEL_COMMON_VALAFLAGS = \
53         --pkg rygel-build-config --pkg gupnp-1.0 \
54         --vapidir=$(rygeldir) \
55         --pkg gupnp-av-1.0 --pkg gee-1.0 \
56         $(RYGEL_DEBUG_VALAFLAGS) \
57         $(COVERAGE_VALAFLAGS)
58
59 RYGEL_PLUGIN_LINKER_FLAGS = -shared -fPIC -module -avoid-version
60
61 vala-clean:
62         rm -f `find . -name "*.stamp"`