summaryrefslogtreecommitdiff
path: root/sys/wasapi/meson.build
blob: c5b47dd03a2b2a9779ce72d82e724b234fa45964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
wasapi_sources = [
  'gstwasapi.c',
  'gstwasapisrc.c',
  'gstwasapisink.c',
  'gstwasapiutil.c',
  'gstwasapidevice.c',
]

if host_system == 'windows' and cc.has_header('audioclient.h')
  wasapi_dep = [cc.find_library('ole32'), cc.find_library('ksuser'),
                cc.find_library('avrt', required : false)]

  gstwasapi = library('gstwasapi',
    wasapi_sources,
    c_args : gst_plugins_bad_args + ['-DCOBJMACROS'],
    include_directories : [configinc],
    dependencies : [gstaudio_dep] + wasapi_dep,
    install : true,
    install_dir : plugins_install_dir)
  pkgconfig.generate(gstwasapi, install_dir : plugins_pkgconfig_install_dir)
endif