gstreamer/sys/directsound/meson.build
Nirbheek Chauhan 8f807477eb meson: Add feature options for all plugins
Checks for GL, Qt5, and C++ are still automagic. FIXMEs have been
added for these so they can be fixed later.

https://bugzilla.gnome.org/show_bug.cgi?id=795107
2018-07-27 18:42:54 +05:30

35 lines
1.2 KiB
Meson

directsoundsink_sources = [
'gstdirectsoundsink.c',
'gstdirectsounddevice.c',
'gstdirectsoundplugin.c',
]
directsoundsink_device_flags = [
'-DGstDirectSoundDeviceProvider=GstDirectSoundSinkDeviceProvider',
'-DGstDirectSoundDeviceProviderClass=GstDirectSoundSinkDeviceProviderClass',
'-DGstDirectSoundDevice=GstDirectSoundSinkDevice',
'-DGstDirectSoundDeviceClass=GstDirectSoundSinkDeviceClass',
]
have_dsound = false
# TODO: https://github.com/mesonbuild/meson/issues/3940
dsound_option = get_option('directsound')
if not dsound_option.disabled()
have_dsound = cc.has_header('dsound.h')
if not have_dsound and dsound_option.enabled()
error('directsound plugin was enabled but dsound.h was not found')
endif
endif
if have_dsound
directsoundsink_dep = [cc.find_library('dsound'), cc.find_library('winmm'), cc.find_library('ole32')]
gstdirectsoundsink = library('gstdirectsound',
directsoundsink_sources,
c_args : gst_plugins_good_args + directsoundsink_device_flags,
include_directories : [configinc],
dependencies : [gstaudio_dep] + directsoundsink_dep,
install : true,
install_dir : plugins_install_dir)
pkgconfig.generate(gstdirectsoundsink, install_dir : plugins_pkgconfig_install_dir)
endif