playwright/browser_patches/webkit/build.sh

30 lines
1.0 KiB
Bash
Raw Normal View History

2019-11-19 05:18:28 +03:00
#!/bin/bash
set -e
set -x
2019-11-19 05:18:28 +03:00
2019-11-20 03:08:27 +03:00
trap "cd $(pwd -P)" EXIT
2019-11-20 03:58:09 +03:00
cd "$(dirname $0)"
2019-11-19 05:18:28 +03:00
if [[ "$(uname)" == "Darwin" ]]; then
2020-01-17 02:32:50 +03:00
cd "checkout"
./Tools/Scripts/build-webkit --release --touch-events
2019-11-19 05:18:28 +03:00
elif [[ "$(uname)" == "Linux" ]]; then
2020-01-17 02:32:50 +03:00
cd "checkout"
if [[ "$1" == "--wpe" ]]; then
if ! [[ -d ./WebKitBuild/WPE/DependenciesWPE ]]; then
yes | WEBKIT_OUTPUTDIR=$(pwd)/WebKitBuild/WPE DEBIAN_FRONTEND=noninteractive ./Tools/Scripts/update-webkitwpe-libs
fi
WEBKIT_OUTPUTDIR=$(pwd)/WebKitBuild/WPE ./Tools/Scripts/build-webkit --wpe --release --touch-events MiniBrowser
else
if ! [[ -d ./WebKitBuild/GTK/DependenciesGTK ]]; then
yes | WEBKIT_OUTPUTDIR=$(pwd)/WebKitBuild/GTK DEBIAN_FRONTEND=noninteractive ./Tools/Scripts/update-webkitgtk-libs
fi
WEBKIT_OUTPUTDIR=$(pwd)/WebKitBuild/GTK ./Tools/Scripts/build-webkit --gtk --release --touch-events MiniBrowser
fi
2020-01-17 02:32:50 +03:00
elif [[ "$(uname)" == MINGW* ]]; then
/c/Windows/System32/cmd.exe "/c buildwin.bat"
2019-11-19 05:18:28 +03:00
else
echo "ERROR: cannot upload on this platform!" 1>&2
exit 1;
fi