mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-03-24 10:10:50 +01:00
Meson: Do not check for d2d1.h, dwrite.h, wincodec.h
If the import libraries are found, we can assume that headers are present as well. All three headers were introduced many years ago in the Windows SDK and mingw-w64 headers.
This commit is contained in:
parent
306396ff53
commit
bd930bc98d
1 changed files with 1 additions and 4 deletions
|
|
@ -518,13 +518,10 @@ if host_machine.system() == 'windows'
|
|||
cpp_compiler = meson.get_compiler('cpp')
|
||||
d2d_dep = cpp_compiler.find_library('d2d1', required: get_option('dwrite'))
|
||||
dwrite_dep = cpp_compiler.find_library('dwrite', required: get_option('dwrite'))
|
||||
d2d_header = cpp_compiler.has_header('d2d1.h')
|
||||
d2d_3_header = cpp_compiler.has_header('d2d1_3.h')
|
||||
dwrite_header = cpp_compiler.has_header('dwrite.h')
|
||||
wincodec_dep = cpp_compiler.find_library('windowscodecs', required: get_option('dwrite'))
|
||||
wincodec_header = cpp_compiler.has_header('wincodec.h')
|
||||
|
||||
if d2d_dep.found() and dwrite_dep.found() and d2d_header and dwrite_header and wincodec_dep.found() and wincodec_header
|
||||
if d2d_dep.found() and dwrite_dep.found()
|
||||
feature_conf.set('CAIRO_HAS_DWRITE_FONT', 1)
|
||||
built_features += [{
|
||||
'name': 'cairo-dwrite-font',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue