Remove direct link to dwrite from meson scripts

This commit is contained in:
Cameron Cawley 2021-09-24 22:05:29 +01:00 committed by Behdad Esfahbod
parent ecbe224743
commit 6ea6c581ed
2 changed files with 1 additions and 7 deletions

View File

@ -245,17 +245,12 @@ if host_machine.system() == 'windows' and not get_option('gdi').disabled()
endif
# DirectWrite (Windows)
directwrite_dep = null_dep
if host_machine.system() == 'windows' and not get_option('directwrite').disabled()
if get_option('directwrite').enabled() and not cpp.has_header('dwrite_1.h')
error('DirectWrite was enabled explicitly, but required header is missing.')
endif
directwrite_dep = cpp.find_library('dwrite', required: get_option('directwrite'))
if directwrite_dep.found()
conf.set('HAVE_DIRECTWRITE', 1)
endif
conf.set('HAVE_DIRECTWRITE', 1)
endif
# CoreText (macOS)

View File

@ -363,7 +363,6 @@ endif
if conf.get('HAVE_DIRECTWRITE', 0) == 1
hb_sources += hb_directwrite_sources
hb_headers += hb_directwrite_headers
harfbuzz_deps += directwrite_dep
# hb-directwrite needs a C++ linker
libharfbuzz_link_language = 'cpp'
endif