2020-06-01 10:28:31 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2021-06-23 14:53:28 +02:00
|
|
|
meson --cross-file=.ci/win32-cross-file.txt \
|
|
|
|
--wrap-mode=forcefallback \
|
|
|
|
-Dtests=disabled \
|
|
|
|
-Dcairo=enabled \
|
|
|
|
-Dcairo:fontconfig=disabled \
|
2022-12-16 19:10:51 +01:00
|
|
|
-Dcairo:freetype=disabled \
|
2021-06-23 14:53:28 +02:00
|
|
|
-Dglib=enabled \
|
2022-12-16 19:10:51 +01:00
|
|
|
-Dfreetype=disabled \
|
2021-06-23 14:53:28 +02:00
|
|
|
-Dgdi=enabled \
|
|
|
|
-Ddirectwrite=enabled \
|
|
|
|
-Dcairo=enabled \
|
|
|
|
win32build \
|
|
|
|
$@
|
|
|
|
|
2020-07-25 10:48:54 +02:00
|
|
|
ninja -Cwin32build -j3 # building with all the cores won't work fine with CricleCI for some reason
|
2020-06-01 10:28:31 +02:00
|
|
|
|
|
|
|
rm -rf win32build/harfbuzz-win32
|
|
|
|
mkdir win32build/harfbuzz-win32
|
|
|
|
cp win32build/util/hb-*.exe win32build/harfbuzz-win32
|
|
|
|
find win32build -name '*.dll' -exec cp {} win32build/harfbuzz-win32 \;
|
|
|
|
i686-w64-mingw32-strip win32build/harfbuzz-win32/*.{dll,exe}
|
|
|
|
rm -f harfbuzz-win32.zip
|
2021-02-03 12:40:39 +01:00
|
|
|
(cd win32build && zip -r ../harfbuzz-win32.zip harfbuzz-win32)
|
2020-06-01 10:28:31 +02:00
|
|
|
echo "harfbuzz-win32.zip is ready."
|