Add an example server plugin
[profile/ivi/rygel.git] / examples / Makefile.am
1 # Avoid using the example plugins dirs at all
2 # if they are not enabled, to avoid
3 # installing them.
4 if BUILD_EXAMPLE_PLUGINS
5 EXAMPLE_PLUGINS = server-plugins
6 endif
7
8 SUBDIRS = $(EXAMPLE_PLUGINS)
9
10
11 include ../common.am
12
13 AM_CFLAGS += \
14         -I$(top_builddir)/src/librygel-server \
15         -I$(top_srcdir)/src/librygel-server \
16         -I$(top_builddir)/src/rygel \
17         -I$(top_srcdir)/src/rygel
18
19 noinst_PROGRAMS = standalone-server
20 standalone_server_SOURCES = standalone-server.c
21 standalone_server_LDADD = \
22         $(top_builddir)/src/librygel-server/librygel-server-2.0.la \
23         $(LIBGIO_LIBS) \
24         $(RYGEL_COMMON_LIBS)
25
26 if HAVE_GSTREAMER
27 AM_CFLAGS += \
28         -I$(top_builddir)/src/librygel-renderer-gst \
29         -I$(top_srcdir)/src/librygel-renderer-gst \
30         -I$(top_builddir)/src/librygel-renderer \
31         -I$(top_srcdir)/src/librygel-renderer \
32         $(LIBGSTREAMER_CFLAGS)
33
34 noinst_PROGRAMS += standalone-renderer
35 standalone_renderer_SOURCES = standalone-renderer.c
36 standalone_renderer_LDADD = \
37         $(top_builddir)/src/librygel-renderer/librygel-renderer-2.0.la \
38         $(top_builddir)/src/librygel-renderer-gst/librygel-renderer-gst-2.0.la \
39         $(LIBGSTREAMER_LIBS) \
40         $(RYGEL_COMMON_LIBS)
41 endif
42
43 EXTRA_DIST = service/wrap-dbus \
44 service/sysv/rygel \
45 service/README.Ubuntu \
46 service/upstart/rygel.conf \
47 service/systemd/rygel.service