summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2019-01-09 09:05:01 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-01-10 10:57:42 +0100
commit2c2f93dc1a8114695d5d72d7ea850995e88f9e56 (patch)
tree95f43e6ad952e19e52f3b38e8e08e2cdd7479cb5
parent98c8ddd2fe7cb10650c24cfd5018be5813d1bceb (diff)
meson: excludes stuffs related with gst if gst is disabled
if a option for gstreamer is disabled, stuffs related with gstreamer should not be compiled. this patch excludes the stuffs. Differential Revision: https://phab.enlightenment.org/D7566
-rw-r--r--src/examples/ecore/meson.build14
-rw-r--r--src/generic/evas/gst/meson.build5
2 files changed, 16 insertions, 3 deletions
diff --git a/src/examples/ecore/meson.build b/src/examples/ecore/meson.build
index 7233a83b82..c0b42959fa 100644
--- a/src/examples/ecore/meson.build
+++ b/src/examples/ecore/meson.build
@@ -7,7 +7,6 @@ examples = [
7 'ecore_file_download_example', 7 'ecore_file_download_example',
8 'ecore_idler_example', 8 'ecore_idler_example',
9 'ecore_job_example', 9 'ecore_job_example',
10 'ecore_pipe_gstreamer_example',
11 'ecore_pipe_simple_example', 10 'ecore_pipe_simple_example',
12 'ecore_poller_example', 11 'ecore_poller_example',
13 'ecore_thread_example', 12 'ecore_thread_example',
@@ -22,9 +21,20 @@ examples += ['ecore_fd_handler_gnutls_example']
22endif 21endif
23 22
24foreach example : examples 23foreach example : examples
25 executable(example, example + '.c', dependencies: [eina, ecore, gstreamer, ecore_file, gnutls]) 24 executable(example, example + '.c', dependencies: [eina, ecore, ecore_file, gnutls])
26endforeach 25endforeach
27 26
27if get_option('gstreamer') == true
28 examples = [
29 'ecore_pipe_gstreamer_example',
30 ]
31
32 foreach example : examples
33 executable(example, example + '.c', dependencies: [eina, ecore, gstreamer, ecore_file])
34 endforeach
35endif
36
37
28examples = [ 38examples = [
29# 'ecore_audio_custom', 39# 'ecore_audio_custom',
30# 'ecore_audio_playback', 40# 'ecore_audio_playback',
diff --git a/src/generic/evas/gst/meson.build b/src/generic/evas/gst/meson.build
index 9689aee80a..aa10f7e513 100644
--- a/src/generic/evas/gst/meson.build
+++ b/src/generic/evas/gst/meson.build
@@ -10,5 +10,8 @@ generic_src = files([
10 'main.c' 10 'main.c'
11]) 11])
12 12
13generic_deps = [dependency('gstreamer-1.0')] 13generic_deps = []
14if get_option('gstreamer') == true
15 generic_deps += dependency('gstreamer-1.0')
16endif
14generic_support = ['264','3g2','3gp','3gp2','3gpp','3gpp2','3p2','asf','avi','bdm','bdmv','clpi','cpi','dv','fla','flv','m1v','m2t','m2v','m4v','mkv','mov','mp2','mp2ts','mp4','mpe','mpeg','mpg','mpl','mpls','mts','mxf','nut','nuv','ogg','ogm','ogv','qt','rm','rmj','rmm','rms','rmx','rmvb','rv','swf','ts','webm','weba','wmv'] \ No newline at end of file 17generic_support = ['264','3g2','3gp','3gp2','3gpp','3gpp2','3p2','asf','avi','bdm','bdmv','clpi','cpi','dv','fla','flv','m1v','m2t','m2v','m4v','mkv','mov','mp2','mp2ts','mp4','mpe','mpeg','mpg','mpl','mpls','mts','mxf','nut','nuv','ogg','ogm','ogv','qt','rm','rmj','rmm','rms','rmx','rmvb','rv','swf','ts','webm','weba','wmv'] \ No newline at end of file