gstreamer/subprojects/gst-plugins-bad/sys/directshow/meson.build
Loic Le Page e1c0628bb9 Add build files and fix build for gst-plugins-bad dshowsinkwrapper plugin
dshowsinkwrapper plugin is the old dshowvideosink plugin that has been
renamed to be compliant with the actuel plugin name in the source code.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1577>
2022-02-18 14:59:25 +01:00

27 lines
750 B
Meson

if host_system == 'windows'
# Check whether we're building for UWP apps
code = '''
#include <windows.h>
#if !(WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP))
#error "Not building for UWP"
#endif'''
if cc.compiles(code, name : 'building for UWP')
if get_option('directshow').enabled()
error('directshow plugins cannot be built for UWP')
endif
subdir_done()
endif
endif
if cxx.get_id() != 'msvc' or get_option('directshow').disabled()
if get_option('directshow').enabled()
error('directshow plugins can only be built with MSVC')
endif
subdir_done()
endif
subdir('strmbase')
subdir('dshowdecwrapper')
subdir('dshowsrcwrapper')
subdir('dshowsinkwrapper')