• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1tool_deps = glib_deps + [pbutils_dep, audio_dep, video_dep, tag_dep, gst_dep, gst_base_dep, gmodule_dep]
2
3extra_args = []
4extra_deps = []
5
6if host_system == 'windows'
7  # Check whether we're building for UWP apps, and if so, will not link winmm
8  # of which APIs are for WIN32 desktop
9  building_for_uwp = false
10  code = '''
11  #include <windows.h>
12  #if !(WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
13  #error "Not building for UWP"
14  #endif'''
15  if cc.compiles(code, name : 'building for UWP')
16    building_for_uwp = true
17  endif
18
19  if not building_for_uwp
20    winmm_lib = cc.find_library('winmm', required: false)
21    if winmm_lib.found() and cc.has_header('mmsystem.h')
22      extra_args += ['-DHAVE_WINMM']
23      extra_deps += [winmm_lib]
24    endif
25  endif
26endif
27
28executable('gst-device-monitor-@0@'.format(api_version),
29  'gst-device-monitor.c',
30  install: true,
31  c_args : gst_plugins_base_args + ['-DG_LOG_DOMAIN="gst-device-monitor-@0@"'.format(api_version)],
32  include_directories: [configinc],
33  dependencies : tool_deps,
34)
35install_man('gst-device-monitor-@0@.1'.format(api_version))
36
37executable('gst-discoverer-@0@'.format(api_version),
38  'gst-discoverer.c',
39  install: true,
40  c_args : gst_plugins_base_args + ['-DG_LOG_DOMAIN="gst-discoverer-@0@"'.format(api_version)],
41  include_directories: [configinc],
42  dependencies : tool_deps,
43)
44install_man('gst-discoverer-@0@.1'.format(api_version))
45
46executable('gst-play-@0@'.format(api_version),
47  'gst-play.c', 'gst-play-kb.c',
48  install: true,
49  c_args : gst_plugins_base_args + ['-DG_LOG_DOMAIN="gst-play-@0@"'.format(api_version)] + extra_args,
50  include_directories: [configinc],
51  dependencies : tool_deps + [libm] + extra_deps,
52)
53install_man('gst-play-@0@.1'.format(api_version))
54