devops: fix webkit building on windows (#4618)

This commit is contained in:
Andrey Lushnikov 2020-12-07 09:21:36 -08:00 committed by GitHub
parent 13e2ef1d10
commit d8520f0695
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View file

@ -4,6 +4,7 @@ set +x
trap "cd $(pwd -P)" EXIT trap "cd $(pwd -P)" EXIT
cd "$(dirname $0)" cd "$(dirname $0)"
SCRIPT_FOLDER="$(pwd -P)"
build_gtk() { build_gtk() {
if ! [[ -d ./WebKitBuild/GTK/DependenciesGTK ]]; then if ! [[ -d ./WebKitBuild/GTK/DependenciesGTK ]]; then
@ -69,7 +70,7 @@ elif [[ "$(uname)" == "Linux" ]]; then
build_wpe build_wpe
fi fi
elif [[ "$(uname)" == MINGW* ]]; then elif [[ "$(uname)" == MINGW* ]]; then
/c/Windows/System32/cmd.exe "/c buildwin.bat" /c/Windows/System32/cmd.exe "/c $(cygpath -w ${SCRIPT_FOLDER}/buildwin.bat)"
else else
echo "ERROR: cannot upload on this platform!" 1>&2 echo "ERROR: cannot upload on this platform!" 1>&2
exit 1; exit 1;

View file

@ -1,5 +1,5 @@
set PATH=%WEBKIT_BUILD_PATH% set PATH=%WEBKIT_BUILD_PATH%
set WEBKIT_LIBRARIES=%~dp0WebKitLibraries\win set WEBKIT_LIBRARIES=WebKitLibraries\win
set WEBKIT_OUTPUTDIR=%~dp0WebKitBuild set WEBKIT_OUTPUTDIR=WebKitBuild
perl %~dp0Tools\Scripts\build-webkit --wincairo --release --no-ninja --touch-events --orientation-events --dark-mode-css --generate-project-only --cmakeargs="-DLIBVPX_PACKAGE_PATH=C:\vcpkg\packages\libvpx_x64-windows" perl Tools\Scripts\build-webkit --wincairo --release --no-ninja --touch-events --orientation-events --dark-mode-css --generate-project-only --cmakeargs="-DLIBVPX_PACKAGE_PATH=C:\vcpkg\packages\libvpx_x64-windows"
%DEVENV% %~dp0WebKitBuild\Release\WebKit.sln /build "Release|x64" %DEVENV% WebKitBuild\Release\WebKit.sln /build "Release|x64"