mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
3abaced877
Second try at #556. Uses absolute paths for the environment variables so that WPEDependencies builds properly. Switches from `WebKitBuildWPE` to `WebKitBuild/WPE` to avoid the need to change the .gitignore. My computer takes a long time to build, but it appears to be working.
30 lines
1.0 KiB
Bash
Executable File
30 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -x
|
|
|
|
trap "cd $(pwd -P)" EXIT
|
|
cd "$(dirname $0)"
|
|
|
|
if [[ "$(uname)" == "Darwin" ]]; then
|
|
cd "checkout"
|
|
./Tools/Scripts/build-webkit --release --touch-events
|
|
elif [[ "$(uname)" == "Linux" ]]; then
|
|
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
|
|
elif [[ "$(uname)" == MINGW* ]]; then
|
|
/c/Windows/System32/cmd.exe "/c buildwin.bat"
|
|
else
|
|
echo "ERROR: cannot upload on this platform!" 1>&2
|
|
exit 1;
|
|
fi
|