2022-03-30 03:04:49 +00:00
|
|
|
#!/bin/bash -eux
|
|
|
|
|
2022-05-22 11:42:09 -07:00
|
|
|
WEBSHIMS_REV=01b29b520fa2c97f9c8f79b4bfd5ae67ecba6e06
|
|
|
|
|
2022-03-30 03:04:49 +00:00
|
|
|
source common.sh
|
|
|
|
|
|
|
|
if [ ! -d sources/webshims ]; then
|
|
|
|
pushd sources
|
|
|
|
git clone "https://github.com/paradust7/webshims.git" webshims
|
|
|
|
popd
|
|
|
|
fi
|
|
|
|
|
2022-05-22 11:42:09 -07:00
|
|
|
pushd sources/webshims
|
|
|
|
REV=`git rev-parse HEAD`
|
|
|
|
popd
|
|
|
|
|
|
|
|
if [ "$REV" != "$WEBSHIMS_REV" ]; then
|
|
|
|
set +x
|
|
|
|
echo "---------------------------------------------------------------"
|
|
|
|
echo "ERROR: sources/webshim on wrong revision"
|
|
|
|
echo "--------------------------------------------------------------"
|
|
|
|
echo "Expected revision: $WEBSHIMS_REV"
|
|
|
|
echo "Actual revision: $REV"
|
|
|
|
echo "---------------------------------------------------------------"
|
|
|
|
echo "Please 'git pull' or delete this directory before proceeding"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2022-04-10 04:23:22 +00:00
|
|
|
pushd "$BUILD_DIR"
|
2022-03-30 03:04:49 +00:00
|
|
|
rm -rf webshims
|
|
|
|
mkdir webshims
|
|
|
|
pushd webshims
|
|
|
|
|
|
|
|
emcmake cmake -DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" "$SRC_DIR/webshims"
|
|
|
|
emmake make
|
|
|
|
emmake make install
|
|
|
|
|
|
|
|
echo "webshims OK"
|