From 44834a3adc8753b41eb58b01c088eeeb9f9ef716 Mon Sep 17 00:00:00 2001 From: Wonki Kim Date: Wed, 9 Jan 2019 09:05:01 +0000 Subject: [PATCH] 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 Change-Id: Ie9130c66361dacd09f40e63f81a354c0574b649a Signed-off-by: Wonki Kim --- src/examples/ecore/meson.build | 14 ++++++++++++-- src/generic/evas/gst/meson.build | 5 ++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/examples/ecore/meson.build b/src/examples/ecore/meson.build index 7233a83..c0b4295 100644 --- a/src/examples/ecore/meson.build +++ b/src/examples/ecore/meson.build @@ -7,7 +7,6 @@ examples = [ 'ecore_file_download_example', 'ecore_idler_example', 'ecore_job_example', - 'ecore_pipe_gstreamer_example', 'ecore_pipe_simple_example', 'ecore_poller_example', 'ecore_thread_example', @@ -22,9 +21,20 @@ examples += ['ecore_fd_handler_gnutls_example'] endif foreach example : examples - executable(example, example + '.c', dependencies: [eina, ecore, gstreamer, ecore_file, gnutls]) + executable(example, example + '.c', dependencies: [eina, ecore, ecore_file, gnutls]) endforeach +if get_option('gstreamer') == true + examples = [ + 'ecore_pipe_gstreamer_example', + ] + + foreach example : examples + executable(example, example + '.c', dependencies: [eina, ecore, gstreamer, ecore_file]) + endforeach +endif + + examples = [ # 'ecore_audio_custom', # 'ecore_audio_playback', diff --git a/src/generic/evas/gst/meson.build b/src/generic/evas/gst/meson.build index 9689aee..aa10f7e 100644 --- a/src/generic/evas/gst/meson.build +++ b/src/generic/evas/gst/meson.build @@ -10,5 +10,8 @@ generic_src = files([ 'main.c' ]) -generic_deps = [dependency('gstreamer-1.0')] +generic_deps = [] +if get_option('gstreamer') == true + generic_deps += dependency('gstreamer-1.0') +endif generic_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 -- 2.7.4