1 shareddir = $(abs_top_builddir)/data
3 AM_CFLAGS = $(LIBGUPNP_CFLAGS) \
4 $(LIBGUPNP_AV_CFLAGS) \
5 $(LIBGSTREAMER_CFLAGS) \
6 $(GSTREAMER_BASE_CFLAGS) \
12 $(LIBGUPNP_DLNA_CFLAGS) \
13 -I$(top_srcdir) -DDATA_DIR='"$(shareddir)"' \
14 -include config.h -DG_LOG_DOMAIN='"Rygel"' \
17 LDADD = $(LIBGUPNP_LIBS) \
20 $(LIBGSTREAMER_LIBS) \
21 $(GSTREAMER_BASE_LIBS) \
27 $(LIBGUPNP_DLNA_LIBS) \
30 AM_VALAFLAGS = --disable-warnings \
31 --pkg gupnp-1.0 --pkg gupnp-av-1.0 --pkg dbus-glib-1 \
32 --pkg gconf-2.0 --pkg gstreamer-0.10 --pkg gstreamer-base-0.10 \
33 --pkg gio-2.0 --pkg gee-1.0 --pkg gstreamer-pbutils-0.10 \
34 --pkg gupnp-dlna-1.0 --pkg uuid --vapidir=$(top_srcdir)/src/librygel-core -g \
37 check_PROGRAMS = rygel-http-item-uri-test \
38 rygel-http-response-test \
39 rygel-http-byte-seek-test \
40 rygel-http-time-seek-test \
42 rygel-album-art-spec-test \
43 rygel-http-post-test \
44 rygel-searchable-container-test \
45 rygel-item-creator-test \
46 rygel-user-config-test \
48 rygel-media-engine-test
50 TESTS = $(check_PROGRAMS)
52 EXTRA_DIST = $(srcdir)/data/test-data.dat
54 rygel_http_item_uri_test_SOURCES = rygel-http-item-uri-test.vala \
55 rygel-http-item-uri.vala
57 rygel_http_response_test_SOURCES = rygel-http-response-test.vala \
58 rygel-http-response.vala \
59 rygel-state-machine_http-response.vala \
60 rygel-data-source_http-response.vala \
61 rygel-data-sink_http-response.vala
63 rygel_http_byte_seek_test_SOURCES = rygel-http-byte-seek-test.vala \
64 rygel-http-byte-seek.vala \
67 rygel_http_time_seek_test_SOURCES = rygel-http-time-seek-test.vala \
68 rygel-http-time-seek.vala \
69 rygel-http-seek_time-seek.vala
71 rygel_http_get_test_SOURCES = rygel-http-get-test.vala \
73 rygel-http-request_http-get.vala \
74 rygel-http-item-uri_http-get.vala \
75 rygel-state-machine_http-get.vala \
76 rygel-http-time-seek_http-get.vala \
77 rygel-http-byte-seek_http-get.vala \
78 rygel-http-seek_http-get.vala
80 rygel_http_post_test_SOURCES = rygel-http-post-test.vala \
81 rygel-http-post.vala \
82 rygel-http-request_http-post.vala \
83 rygel-http-item-uri_http-post.vala \
84 rygel-state-machine_http-post.vala
86 rygel_album_art_spec_test_SOURCES = rygel-album-art-spec-test.vala \
87 rygel-media-art-store.vala \
88 rygel-thumbnail.vala \
91 rygel_searchable_container_test_SOURCES = \
92 rygel-searchable-container.vala \
93 rygel-searchable-container-test.vala
95 rygel_item_creator_test_SOURCES = rygel-item-creator-test.vala \
96 rygel-item-creator.vala \
97 rygel-data-source.vala \
98 rygel-http-seek_item-creator.vala \
99 rygel-state-machine_item-creator.vala \
100 rygel-relational-expression.vala \
101 rygel-search-expression.vala \
102 rygel-media-engine.vala
104 rygel_user_config_test_SOURCES = rygel-configuration.vala \
105 rygel-user-config.vala \
106 rygel-user-config-test.vala
108 rygel_user_config_test_VALAFLAGS = \
110 --pkg rygel-build-config
112 rygel_user_config_test_CFLAGS = \
114 -DSYS_CONFIG_DIR='"$(sysconfigdir)"'
116 rygel_regression_SOURCES = \
117 rygel-regression.vala
119 rygel_regression_VALAFLAGS = \
121 --pkg rygel-server-2.0 \
122 --pkg rygel-core-2.0 \
123 --vapidir $(top_builddir)/src/librygel-server \
124 --vapidir $(top_builddir)/src/librygel-core
126 rygel_regression_CFLAGS = \
128 -I$(top_builddir)/src/librygel-server \
129 -I$(top_srcdir)/src/librygel-server \
130 -I$(top_builddir)/src/librygel-core \
131 -I$(top_srcdir)/src/librygel-core
133 rygel_regression_LDADD = \
135 $(top_builddir)/src/librygel-server/librygel-server-2.0.la \
136 $(top_builddir)/src/librygel-core/librygel-core-2.0.la
138 rygel_media_engine_test_SOURCES = \
139 rygel-media-engine-test.vala
141 rygel_media_engine_test_VALAFLAGS = \
143 --pkg rygel-server-2.0 \
144 --pkg rygel-core-2.0 \
145 --vapidir $(top_builddir)/src/librygel-server \
146 --vapidir $(top_builddir)/src/librygel-core
148 rygel_media_engine_test_CFLAGS = \
150 -DTEST_DATA_FOLDER='"$(abs_srcdir)/data"' \
151 -DTEST_ENGINE_PATH='"$(abs_top_builddir)/src/media-engines"' \
152 -DBUILT_ENGINES='"@BUILT_ENGINES@"' \
153 -I$(top_builddir)/src/librygel-server \
154 -I$(top_srcdir)/src/librygel-server \
155 -I$(top_builddir)/src/librygel-core \
156 -I$(top_srcdir)/src/librygel-core
158 rygel_media_engine_test_LDADD = \
160 $(top_builddir)/src/librygel-server/librygel-server-2.0.la \
161 $(top_builddir)/src/librygel-core/librygel-core-2.0.la
165 rygel-playbin-renderer-test \
166 rygel-environment-test
168 rygel_playbin_renderer_test_SOURCES = rygel-playbin-renderer-test.vala
170 rygel_playbin_renderer_test_VALAFLAGS = \
172 --pkg rygel-renderer-gst-2.0 \
173 --pkg rygel-renderer-2.0 \
174 --pkg rygel-core-2.0 \
175 --vapidir $(top_builddir)/src/librygel-renderer \
176 --vapidir $(top_builddir)/src/librygel-renderer-gst \
177 --vapidir $(top_builddir)/src/librygel-core
179 rygel_playbin_renderer_test_LDADD = \
180 $(top_builddir)/src/librygel-renderer/librygel-renderer-2.0.la \
181 $(top_builddir)/src/librygel-renderer-gst/librygel-renderer-gst-2.0.la \
182 $(top_builddir)/src/librygel-core/librygel-core-2.0.la \
185 rygel_playbin_renderer_test_CFLAGS = \
187 -I$(top_builddir)/src/librygel-renderer \
188 -I$(top_srcdir)/src/librygel-renderer \
189 -I$(top_builddir)/src/librygel-renderer-gst \
190 -I$(top_srcdir)/src/librygel-renderer-gst \
191 -I$(top_builddir)/src/librygel-core \
192 -I$(top_srcdir)/src/librygel-core
194 rygel_environment_test_SOURCES = rygel-environment-test.vala
195 rygel_environment_test_CFLAGS = $(AM_CFLAGS)
196 rygel_environment_test_LDADD = $(LDADD)
197 rygel_environment_test_VALAFLAGS = $(AM_VALAFLAGS) --pkg gstreamer-0.10
206 $(LCOV) --directory $(srcdir) --capture \
207 --output-file $(top_builddir)/rygel.info
208 $(LCOV) --directory $(srcdir) --output-file $(top_builddir)/rygel.info \
209 --remove $(top_builddir)/rygel.info "*.c" "*.h" "*.vapi"
210 rm -rf $(top_builddir)/coverage
211 $(mkdir_p) $(top_builddir)/coverage
212 $(GENHTML) --title "@PACKAGE_STRING@" \
213 --output-directory $(top_builddir)/coverage \
214 $(top_builddir)/rygel.info