[pango/pango2-windows: 16/19] build: Fix HarfBuzz fallback for Windows
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2-windows: 16/19] build: Fix HarfBuzz fallback for Windows
- Date: Sun, 19 Jun 2022 02:49:09 +0000 (UTC)
commit 8cd1a3055c0347e6cfb6e688425d05a9cfba393f
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Jun 16 10:32:02 2022 +0800
build: Fix HarfBuzz fallback for Windows
In order to build with DirectWrite support, HarfBuzz must also be built
with DirectWrite support, which is disabled by default. Tell the
fallback build to look for DirectWrite and enabled it as a result-it
should be sufficiently present for Visual Studio with the Windows 8.0
SDK, and we are likely using a Windows 10 SDK since we require Visual
Studio 2015 or later for MSVC builds.
Remove the line in .gitlab-ci/test-msys2.sh that requests this support
since we are putting this in the main Meson build files.
.gitlab-ci/test-msys2.sh | 2 +-
meson.build | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci/test-msys2.sh b/.gitlab-ci/test-msys2.sh
index 4c036155..cf8bd77a 100644
--- a/.gitlab-ci/test-msys2.sh
+++ b/.gitlab-ci/test-msys2.sh
@@ -22,7 +22,7 @@ pacman --noconfirm -S --needed \
mingw-w64-$MSYS2_ARCH-toolchain \
mingw-w64-$MSYS2_ARCH-cantarell-fonts
-meson --buildtype debug --force-fallback-for harfbuzz -Dharfbuzz:directwrite=auto _build
+meson --buildtype debug --force-fallback-for harfbuzz _build
cd _build
ninja
diff --git a/meson.build b/meson.build
index 92068d8c..addc1bff 100644
--- a/meson.build
+++ b/meson.build
@@ -278,7 +278,7 @@ harfbuzz_dep = dependency('harfbuzz',
version: harfbuzz_req_version,
required: true,
fallback: ['harfbuzz', 'libharfbuzz_dep'],
- default_options: ['coretext=enabled', 'werror=false', 'docs=disabled'])
+ default_options: ['coretext=enabled', 'directwrite=auto', 'werror=false',
'docs=disabled'])
harfbuzz_gobj_dep = dependency('harfbuzz-gobject',
version: harfbuzz_req_version,
required: true,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]