6058ede3ae
As a part of meson migration, this builds hb-shape dependencies using meson subprojects and removes different unrelated mingw files we've put on source root about things that aren't really our concern. This also simplifies all the instructions we've put in README.mingw.md and makes it easy to build the project on distros that no mingw libraries (such i686-win32-{freetype,glib,...} are packaged. The known catch is however lack of hb-view as its need for build of cairo which apparently isn't that straightforward.
16 lines
652 B
Bash
Executable File
16 lines
652 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
meson --cross-file=.ci/win32-cross-file.txt win32build --wrap-mode=forcefallback -Dtests=disabled \
|
|
-Dglib=enabled -Dfreetype=enabled -Dgdi=enabled $@
|
|
ninja -Cwin32build -j8 # building with all the cores won't work fine with CricleCI for some reason
|
|
|
|
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
|
|
(cd win32build/harfbuzz-win32 && zip ../../harfbuzz-win32.zip -r .)
|
|
echo "harfbuzz-win32.zip is ready."
|