2018-08-17 13:26:54 +00:00
|
|
|
waveformsink_sources = [
|
|
|
|
'gstwaveformsink.c',
|
|
|
|
'gstwaveformplugin.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
have_waveform = false
|
|
|
|
waveform_option = get_option('waveform')
|
|
|
|
if host_system != 'windows' or waveform_option.disabled()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
# TODO: https://github.com/mesonbuild/meson/issues/3940
|
|
|
|
have_waveform = cc.has_header('mmsystem.h', prefix : '#include <windows.h>')
|
|
|
|
if not have_waveform and waveform_option.enabled()
|
|
|
|
error('waveform plugin was enabled but mmsystem.h was not found')
|
|
|
|
endif
|
|
|
|
|
|
|
|
if have_waveform
|
|
|
|
gstwaveformsink = library('gstwaveform',
|
|
|
|
waveformsink_sources,
|
|
|
|
c_args : gst_plugins_good_args,
|
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstaudio_dep, cc.find_library('winmm')],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir)
|
2019-05-29 09:58:40 +00:00
|
|
|
plugins += [gstwaveformsink]
|
2018-08-17 13:26:54 +00:00
|
|
|
endif
|