summaryrefslogtreecommitdiff
path: root/common.am
blob: a3667b88cc2860560a88121d1a8c7c4b101d4cd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
if UNINSTALLED
shareddir = $(abs_top_builddir)/data
sysconfigdir = $(shareddir)
desktopdir = $(shareddir)
plugindir = $(abs_top_builddir)/src/plugins
icondir = $(shareddir)/icons/32x32
presetdir = $(shareddir)/presets
else
shareddir = $(datadir)/rygel
sysconfigdir = $(sysconfdir)
desktopdir = $(datadir)/applications
plugindir = $(libdir)/rygel-1.0
icondir = $(datadir)/icons/hicolor/32x32/apps
presetdir = $(shareddir)/presets
endif

smallicondir = $(shareddir)/icons/48x48
bigicondir = $(shareddir)/icons/120x120

rygeldir = $(top_srcdir)/src/rygel

MAINTAINERCLEANFILES = Makefile.in

AM_CFLAGS = \
	$(LIBGUPNP_CFLAGS) \
	$(LIBGUPNP_AV_CFLAGS) \
	$(LIBGSTREAMER_CFLAGS) \
	$(GSTREAMER_BASE_CFLAGS) \
	$(GEE_CFLAGS) \
	$(UUID_CFLAGS) \
	$(COVERAGE_CFLAGS) \
	-I$(rygeldir) \
	-DDATA_DIR='"$(shareddir)"' -DSYS_CONFIG_DIR='"$(sysconfigdir)"'\
	-DPLUGIN_DIR='"$(plugindir)"' -DDESKTOP_DIR='"$(desktopdir)"'\
	-DPRESET_DIR='"$(presetdir)"'\
	-include config.h

RYGEL_BASE_LIBS = \
	$(LIBGUPNP_LIBS) \
	$(LIBGUPNP_AV_LIBS) \
	$(LIBGSTREAMER_LIBS) \
	$(GSTREAMER_BASE_LIBS) \
	$(GEE_LIBS) \
	$(UUID_LIBS) \
	$(COVERAGE_LIBS)

RYGEL_COMMON_LIBS = \
	$(RYGEL_BASE_LIBS) \
	$(top_builddir)/src/rygel/librygel-core-1.0.la

# Note: the -g needs to be at the end of VALAFLAGS to not break make dist
RYGEL_COMMON_PLUGIN_VALAFLAGS = \
	--pkg rygel-core-1.0 \
	$(RYGEL_COMMON_VALAFLAGS)

RYGEL_COMMON_VALAFLAGS = \
	--pkg rygel-build-config --pkg gupnp-1.0 \
	--vapidir=$(rygeldir) \
	--pkg gupnp-av-1.0 --pkg gee-1.0 \
	$(RYGEL_DEBUG_VALAFLAGS) \
	$(COVERAGE_VALAFLAGS)

RYGEL_PLUGIN_LINKER_FLAGS = -shared -fPIC -module -avoid-version

vala-clean:
	rm -f `find . -name "*.stamp"`