Skip to content
This repository was archived by the owner on Jun 24, 2021. It is now read-only.

Commit 4df5a2d

Browse files
author
mennen
committed
8209765: Add powershell build script for OpenJFX
Reviewed-by: kcr
1 parent b6e74fb commit 4df5a2d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tools/scripts/build.ps1

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
choco install ant
2+
choco install vswhere
3+
choco install zip
4+
$env:WINSDK_DIR = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots").KitsRoot10
5+
$env:VCINSTALLDIR = "$(vswhere -legacy -latest -property installationPath)\VC\Auxiliary\Build"
6+
$msvcToolsVer = Get-Content "$env:VCINSTALLDIR\Microsoft.VCToolsVersion.default.txt"
7+
if ([string]::IsNullOrWhitespace($msvcToolsVer)) {
8+
# The MSVC tools version file can have txt *or* props extension.
9+
$msvcToolsVer = Get-Content "$env:VCINSTALLDIR\Microsoft.VCToolsVersion.default.props"
10+
}
11+
$env:MSVC_VER = $msvcToolsVer
12+
$env:VS150COMNTOOLS = $env:VCINSTALLDIR
13+
$env:VSVARS32FILE = "$env:VCINSTALLDIR\vcvars32.bat"
14+
refreshenv
15+
if ($env:APPVEYOR -eq "true") {
16+
.\gradlew all test -PCOMPILE_WEBKIT=false -PCONF=DebugNative --stacktrace -x :web:test --info --no-daemon
17+
} else {
18+
.\gradlew all test -PCOMPILE_WEBKIT=false -PCONF=DebugNative --stacktrace -x :web:test --info
19+
}
20+

0 commit comments

Comments
 (0)