Welcome to mirror list, hosted at ThFree Co, Russian Federation.

meson.build « tools - github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e22721d9db9ff14f2e7c919dbadadc756afceb75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
tools = ['gst-inspect', 'gst-stats', 'gst-typefind']

extra_launch_dep = []
extra_launch_arg = []

if gst_parse
  if host_system == 'windows'
    winmm_lib = cc.find_library('winmm', required: false)
    if winmm_lib.found() and cc.has_header('timeapi.h')
      extra_launch_dep += [winmm_lib]
      extra_launch_arg += ['-DHAVE_WINMM']
    endif
  endif

  tools += ['gst-launch']
endif

foreach tool : tools
  exe_name = '@0@-@1@'.format(tool, apiversion)
  src_file = '@0@.c'.format(tool)
  extra_deps = []
  extra_c_args = []

  if tool == 'gst-launch'
    extra_deps += extra_launch_dep
    extra_c_args += extra_launch_arg
  endif

  executable(exe_name,
    src_file,
    install: true,
    include_directories : [configinc],
    dependencies : [glib_dep, gobject_dep, gmodule_dep, mathlib, gst_dep] + extra_deps,
    c_args: gst_c_args + extra_c_args,
  )

  man_page = '@0@-1.0.1'.format(tool)
  install_man(man_page)
endforeach