Skip to content

Commit d8cbd1a

Browse files
committed
Try
1 parent e15df1a commit d8cbd1a

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff 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 }}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ skip = ["pp38-*"]
1616
enable = ["pypy"]
1717
test-requires = "pytest"
1818
test-command = "pytest {project}/tests"
19+
build-verbosity = 1
1920
environment = { CFLAGS = "-g0" }
2021

2122
[tool.cibuildwheel.macos]

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ def _configure_extensions_with_vendored_libs() -> List[Extension]:
143143

144144

145145
def 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:

0 commit comments

Comments
 (0)