updated build.sh to support WKDEBUG
This commit is contained in:
parent
64ac60b19f
commit
ab0b39cb7a
|
|
@ -6,14 +6,19 @@ trap "cd $(pwd -P)" EXIT
|
||||||
cd "$(dirname $0)"
|
cd "$(dirname $0)"
|
||||||
cd "checkout"
|
cd "checkout"
|
||||||
|
|
||||||
|
BUILD_TYPE=--release
|
||||||
|
if [[ -v WKDEBUG ]]; then
|
||||||
|
BUILD_TYPE=--debug
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$(uname)" == "Darwin" ]]; then
|
if [[ "$(uname)" == "Darwin" ]]; then
|
||||||
./Tools/Scripts/build-webkit --release --touch-events
|
./Tools/Scripts/build-webkit $BUILD_TYPE --touch-events
|
||||||
elif [[ "$(uname)" == "Linux" ]]; then
|
elif [[ "$(uname)" == "Linux" ]]; then
|
||||||
# Check that WebKitBuild exists and is not empty.
|
# Check that WebKitBuild exists and is not empty.
|
||||||
if ! [[ (-d ./WebKitBuild) && (-n $(ls -1 ./WebKitBuild/)) ]]; then
|
if ! [[ (-d ./WebKitBuild) && (-n $(ls -1 ./WebKitBuild/)) ]]; then
|
||||||
yes | DEBIAN_FRONTEND=noninteractive ./Tools/Scripts/update-webkitgtk-libs
|
yes | DEBIAN_FRONTEND=noninteractive ./Tools/Scripts/update-webkitgtk-libs
|
||||||
fi
|
fi
|
||||||
./Tools/Scripts/build-webkit --gtk --release --touch-events MiniBrowser
|
./Tools/Scripts/build-webkit --gtk $BUILD_TYPE --touch-events MiniBrowser
|
||||||
else
|
else
|
||||||
echo "ERROR: cannot upload on this platform!" 1>&2
|
echo "ERROR: cannot upload on this platform!" 1>&2
|
||||||
exit 1;
|
exit 1;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue