[pango/pango2-windows: 4/4] build: Fix HarfBuzz fallback for Windows




commit 593cbb59f1ea05fc0842357e2bc4b0af3911c946
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 51e40c9a..bac47f3c 100644
--- a/meson.build
+++ b/meson.build
@@ -277,7 +277,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]