|
|
|
@ -232,17 +232,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) |
|
|
|
|