[meson] Abort if GDI/Uniscribe headers couldn't be found
This commit is contained in:
parent
253a8f7a51
commit
0a02f1e760
|
@ -227,8 +227,12 @@ endif
|
||||||
gdi_uniscribe_deps = []
|
gdi_uniscribe_deps = []
|
||||||
# GDI (Uniscribe) (Windows)
|
# GDI (Uniscribe) (Windows)
|
||||||
if host_machine.system() == 'windows' and not get_option('gdi').disabled()
|
if host_machine.system() == 'windows' and not get_option('gdi').disabled()
|
||||||
gdi_deps_found = cpp.has_header('usp10.h') and cpp.has_header('windows.h')
|
if (get_option('directwrite').enabled() and
|
||||||
|
not (cpp.has_header('usp10.h') and cpp.has_header('windows.h')))
|
||||||
|
error('GDI/Uniscribe was enabled explicitly, but required headers are missing.')
|
||||||
|
endif
|
||||||
|
|
||||||
|
gdi_deps_found = true
|
||||||
foreach usplib : ['usp10', 'gdi32', 'rpcrt4']
|
foreach usplib : ['usp10', 'gdi32', 'rpcrt4']
|
||||||
dep = cpp.find_library(usplib, required: get_option('gdi'))
|
dep = cpp.find_library(usplib, required: get_option('gdi'))
|
||||||
gdi_deps_found = gdi_deps_found and dep.found()
|
gdi_deps_found = gdi_deps_found and dep.found()
|
||||||
|
|
Loading…
Reference in New Issue