gst-plugins-bad: update translations
[platform/upstream/gstreamer.git] / subprojects / gst-editing-services / tools / meson.build
1 deps = [ges_dep, gstpbutils_dep, gio_dep, gstvideo_dep, gstaudio_dep]
2
3 ges_tool_args = [ges_c_args, '-UG_LOG_DOMAIN']
4 if gstvalidate_dep.found()
5   deps = deps + [gstvalidate_dep]
6   ges_tool_args += ['-DGST_USE_UNSTABLE_API']
7 endif
8
9
10 ges_launch_files = files('ges-validate.c', 'ges-launch.c', 'ges-launcher.c', 'utils.c', 'ges-launcher-kb.c')
11 man_page = files('ges-launch-1.0.1')
12 gst_tools = {'ges-launch':
13   {
14     'files': ges_launch_files,
15     'deps': deps,
16     'extra_c_args': ges_tool_args,
17     'man_page': man_page,
18   }
19 }
20
21 if not get_option('tools').disabled()
22   ges_launch = executable('ges-launch-@0@'.format(apiversion),
23       ges_launch_files,
24       c_args : [ges_tool_args] + ['-DG_LOG_DOMAIN="ges-launch-@0@"'.format(apiversion)],
25       dependencies : deps,
26       install: true
27   )
28
29   install_man(man_page)
30
31   # bash completion
32   bashcomp_option = get_option('bash-completion')
33   bashcomp_dep = dependency('bash-completion', version : '>= 2.0', required : bashcomp_option)
34   bash_completions_dir = ''
35   bash_helpers_dir = ''
36
37   bashcomp_found = false
38   if bashcomp_dep.found()
39     bashcomp_found = true
40     bashcomp_dir_override = bashcomp_dep.version().version_compare('>= 2.10') ? ['datadir', datadir] : ['prefix', prefix]
41     bash_completions_dir = bashcomp_dep.get_variable('completionsdir', pkgconfig_define:  bashcomp_dir_override)
42     if bash_completions_dir == ''
43       msg = 'Found bash-completion but the .pc file did not set \'completionsdir\'.'
44       if bashcomp_option.enabled()
45         error(msg)
46       else
47         message(msg)
48       endif
49       bashcomp_found = false
50     endif
51
52     bash_helpers_dir = bashcomp_dep.get_variable('helpersdir', pkgconfig_define:  bashcomp_dir_override)
53     if bash_helpers_dir == ''
54       msg = 'Found bash-completion, but the .pc file did not set \'helpersdir\'.'
55       if bashcomp_option.enabled()
56         error(msg)
57       else
58         message(msg)
59       endif
60       bashcomp_found = false
61     endif
62
63     if bashcomp_found
64       install_data('../data/completions/ges-launch-1.0', install_dir : bash_completions_dir)
65     endif
66   endif
67 endif