minetest-wasm/build_freetype.sh

22 lines
443 B
Bash
Raw Normal View History

2022-03-30 03:04:49 +00:00
#!/bin/bash -eux
source common.sh
pushd "$BUILD_DIR"
rm -rf freetype-build
mkdir freetype-build
2022-03-30 03:04:49 +00:00
pushd freetype-build
2022-03-30 03:04:49 +00:00
emcmake cmake \
-DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" \
-DZLIB_LIBRARY="$INSTALL_DIR/lib/libz.a" \
-DZLIB_INCLUDE_DIR="$INSTALL_DIR/include" \
-DPNG_LIBRARY="$INSTALL_DIR/lib/libpng.a" \
-DPNG_PNG_INCLUDE_DIR="$INSTALL_DIR/include" \
"$SOURCES_DIR/freetype"
2022-03-30 03:04:49 +00:00
emmake make
emmake make install
echo "freetype OK"