This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a powershell script for Windows dev, use on Appveyor. (#153)
JDK-8209765: Add powershell build script for OpenJFX Reviewed-by: @kevinrushforth
- Loading branch information
1 parent
c33a624
commit 34f8c83
Showing
2 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
choco install ant | ||
choco install vswhere | ||
choco install zip | ||
$env:WINSDK_DIR = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots").KitsRoot10 | ||
$env:VCINSTALLDIR = "$(vswhere -legacy -latest -property installationPath)\VC\Auxiliary\Build" | ||
$msvcToolsVer = Get-Content "$env:VCINSTALLDIR\Microsoft.VCToolsVersion.default.txt" | ||
if ([string]::IsNullOrWhitespace($msvcToolsVer)) { | ||
# The MSVC tools version file can have txt *or* props extension. | ||
$msvcToolsVer = Get-Content "$env:VCINSTALLDIR\Microsoft.VCToolsVersion.default.props" | ||
} | ||
$env:MSVC_VER = $msvcToolsVer | ||
$env:VS150COMNTOOLS = $env:VCINSTALLDIR | ||
$env:VSVARS32FILE = "$env:VCINSTALLDIR\vcvars32.bat" | ||
refreshenv | ||
if ($env:APPVEYOR -eq "true") { | ||
.\gradlew all test -PCOMPILE_WEBKIT=false -PCONF=DebugNative --stacktrace -x :web:test --info --no-daemon | ||
} else { | ||
.\gradlew all test -PCOMPILE_WEBKIT=false -PCONF=DebugNative --stacktrace -x :web:test --info | ||
} | ||
|