2016-08-12 15:51:45 +00:00
|
|
|
directsoundsrc_sources = [
|
|
|
|
'gstdirectsoundsrc.c',
|
2018-03-10 13:19:59 +00:00
|
|
|
'gstdirectsounddevice.c',
|
2016-08-12 15:51:45 +00:00
|
|
|
'gstdirectsoundplugin.c',
|
|
|
|
]
|
|
|
|
|
2018-03-10 13:19:59 +00:00
|
|
|
directsoundsrc_device_flags = [
|
|
|
|
'-DGstDirectSoundDeviceProvider=GstDirectSoundSrcDeviceProvider',
|
|
|
|
'-DGstDirectSoundDeviceProviderClass=GstDirectSoundSrcDeviceProviderClass',
|
|
|
|
'-DGstDirectSoundDevice=GstDirectSoundSrcDevice',
|
|
|
|
'-DGstDirectSoundDeviceClass=GstDirectSoundSrcDeviceClass',
|
|
|
|
'-DGST_DIRECTSOUND_SRC_DEVICE_PROVIDER=1'
|
|
|
|
]
|
|
|
|
|
2016-08-12 15:51:45 +00:00
|
|
|
if host_system == 'windows' and cc.has_header('dsound.h')
|
2016-10-21 07:39:32 +00:00
|
|
|
directsoundsrc_dep = [cc.find_library('dsound'), cc.find_library('winmm'), cc.find_library('ole32')]
|
2016-08-12 15:51:45 +00:00
|
|
|
|
|
|
|
gstdirectsoundsrc = library('gstdirectsoundsrc',
|
|
|
|
directsoundsrc_sources,
|
2018-03-10 13:19:59 +00:00
|
|
|
c_args : gst_plugins_bad_args + directsoundsrc_device_flags,
|
2016-08-12 15:51:45 +00:00
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstaudio_dep] + directsoundsrc_dep,
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir)
|
2018-04-24 18:05:30 +00:00
|
|
|
pkgconfig.generate(gstdirectsoundsrc, install_dir : plugins_pkgconfig_install_dir)
|
2016-08-12 15:51:45 +00:00
|
|
|
endif
|