File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,28 @@ jobs:
2727 uses : actions/setup-python@v5
2828 with :
2929 python-version : " 3.x"
30+ - name : Install meson
31+ run : pip install meson ninja
32+ - name : Build harfbuzz
33+ run : |
34+ if [ "${{ matrix.os }}" == "macos-latest" ]; then
35+ export MESON_OPTS="-Dcoretext=enabled"
36+ elif [ "${{ matrix.os }}" == "windows-2019" ]; then
37+ export MESON_OPTS="-Ddirectwrite=disabled"
38+ fi
39+ meson setup build-hb harfbuzz \
40+ --buildtype=release \
41+ --default-library=static \
42+ --auto-features=disabled \
43+ -Dtests=disabled ${MESON_OPTS}
44+ meson compile -C build-hb libs
3045 - name : Install dependencies
3146 run : pip install cibuildwheel
3247 - name : Build Wheels
33- run : python -m cibuildwheel --output-dir wheelhouse
48+ run : |
49+ export USE_SYSTEM_LIBS=1
50+ export PKG_CONFIG_PATH=$PWD/build-hb/meson-uninstalled
51+ python -m cibuildwheel --output-dir wheelhouse
3452 - uses : actions/upload-artifact@v4
3553 with :
3654 name : uharfbuzz-${{ matrix.os }}
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ skip = ["pp38-*"]
1616enable = [" pypy" ]
1717test-requires = " pytest"
1818test-command = " pytest {project}/tests"
19+ build-verbosity = 1
1920environment = { CFLAGS = " -g0" }
2021
2122[tool .cibuildwheel .macos ]
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ def _configure_extensions_with_vendored_libs() -> List[Extension]:
143143
144144
145145def configure_extensions () -> List [Extension ]:
146+ print (f"Using system libraries: { use_system_libraries } " )
146147 if use_system_libraries :
147148 return _configure_extensions_with_system_libs ()
148149 else :
You can’t perform that action at this time.
0 commit comments