2021-08-15 17:24:51 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
meson --cross-file=.ci/win64-cross-file.txt \
|
|
|
|
--wrap-mode=forcefallback \
|
|
|
|
-Dtests=disabled \
|
|
|
|
-Dcairo=enabled \
|
|
|
|
-Dcairo:fontconfig=disabled \
|
2022-12-16 19:10:51 +01:00
|
|
|
-Dcairo:freetype=disabled \
|
2022-03-23 05:07:15 +01:00
|
|
|
-Dcairo:dwrite=disabled \
|
2023-01-02 17:14:55 +01:00
|
|
|
-Dcairo:tests=disabled \
|
2021-08-15 17:24:51 +02:00
|
|
|
-Dglib=enabled \
|
2022-12-16 19:10:51 +01:00
|
|
|
-Dfreetype=disabled \
|
2021-08-15 17:24:51 +02:00
|
|
|
-Dgdi=enabled \
|
|
|
|
-Ddirectwrite=enabled \
|
|
|
|
win64build \
|
|
|
|
$@
|
|
|
|
|
|
|
|
ninja -Cwin64build -j3 # building with all the cores won't work fine with CricleCI for some reason
|
|
|
|
|
|
|
|
rm -rf win64build/harfbuzz-win64
|
|
|
|
mkdir win64build/harfbuzz-win64
|
|
|
|
cp win64build/util/hb-*.exe win64build/harfbuzz-win64
|
|
|
|
find win64build -name '*.dll' -exec cp {} win64build/harfbuzz-win64 \;
|
|
|
|
x86_64-w64-mingw32-strip win64build/harfbuzz-win64/*.{dll,exe}
|
|
|
|
rm -f harfbuzz-win64.zip
|
|
|
|
(cd win64build && zip -r ../harfbuzz-win64.zip harfbuzz-win64)
|
|
|
|
echo "harfbuzz-win64.zip is ready."
|