mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-15 02:38:27 +00:00
42bdeaf52c
Original repo is here: https://github.com/microsoft/Windows-classic-samples Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1577>
27 lines
751 B
Meson
27 lines
751 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('dshowvideosink')
|