Skip to content
Snippets Groups Projects
Commit 3f4e6a87 authored by Johannes Kauffmann's avatar Johannes Kauffmann Committed by Steve Lhomme
Browse files

meson: sapi: autodetect support on Windows

We cannot assume that the required headers and type are always present
when building for Windows. On mingw-llvm, the headers are present, but
restricted to desktop usage only. Closely mirror configure.ac, which
also performs these checks.

The difference is that we now only perform these checks when building
for Windows: configure.ac performed the checks unconditionally.
parent 17f4c6a3
No related branches found
No related tags found
Loading
Pipeline #304731 passed with stage
in 16 minutes and 24 seconds
......@@ -55,8 +55,16 @@ endif
# Windows SAPI text to speech
if host_system == 'windows'
vlc_modules += {
'name' : 'sapi',
'sources' : files('sapi.cpp')
}
have_sapi = cpp.has_type('ISpObjectToken', prefix: '\n'.join([
'#include <windows.h>',
'#include <sapi.h>',
'#include <sphelper.h>'
]))
if have_sapi
vlc_modules += {
'name' : 'sapi',
'sources' : files('sapi.cpp')
}
endif
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment