mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
17f92ab400
Drop MSVC specific bits and remove unused dependency Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6404>
43 lines
No EOL
1,014 B
Meson
43 lines
No EOL
1,014 B
Meson
asio_sources = [
|
|
'gstasiodeviceprovider.cpp',
|
|
'gstasioobject.cpp',
|
|
'gstasioringbuffer.cpp',
|
|
'gstasiosink.cpp',
|
|
'gstasiosrc.cpp',
|
|
'gstasioutils.cpp',
|
|
'plugin.c',
|
|
]
|
|
|
|
asio_option = get_option('asio')
|
|
if asio_option.disabled() or host_system != 'windows'
|
|
subdir_done()
|
|
endif
|
|
|
|
winapi_desktop = cxx.compiles('''#include <winapifamily.h>
|
|
#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
|
#error "not win32"
|
|
#endif''',
|
|
name: 'building for Win32')
|
|
|
|
if not winapi_desktop
|
|
if asio_option.enabled()
|
|
error('asio plugin requires WINAPI_PARTITION_DESKTOP')
|
|
else
|
|
subdir_done ()
|
|
endif
|
|
endif
|
|
|
|
avrt_lib = cc.find_library('avrt', required: asio_option)
|
|
if not avrt_lib.found()
|
|
subdir_done ()
|
|
endif
|
|
|
|
gstasio = library('gstasio',
|
|
asio_sources,
|
|
include_directories : [configinc],
|
|
dependencies : [gstaudio_dep, avrt_lib],
|
|
c_args : gst_plugins_bad_args,
|
|
cpp_args : gst_plugins_bad_args,
|
|
install : true,
|
|
install_dir : plugins_install_dir)
|
|
plugins += [gstasio] |