Skip to content

Commit

Permalink
validator/shimexe: Add -Fast Switch to build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Feb 24, 2019
1 parent 955add0 commit 23e44f6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
7 changes: 5 additions & 2 deletions supporting/shimexe/build.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
Param([Switch]$Fast)
Push-Location $psscriptroot
. "$psscriptroot\..\..\lib\install.ps1"

Write-Host "Install dependencies ..."
Invoke-Expression "$psscriptroot\install.ps1"
if(!$Fast) {
Write-Host "Install dependencies ..."
Invoke-Expression "$psscriptroot\install.ps1"
}

$output = "$psscriptroot\bin"
Write-Output 'Compiling shim.cs ...'
Expand Down
11 changes: 8 additions & 3 deletions supporting/validator/build.ps1
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
Param([Switch]$Fast)
Push-Location $psscriptroot
. "$psscriptroot\..\..\lib\install.ps1"

Write-Host "Install dependencies ..."
Invoke-Expression "$psscriptroot\install.ps1"
if(!$Fast) {
Write-Host "Install dependencies ..."
Invoke-Expression "$psscriptroot\install.ps1"
}

$output = "$psscriptroot\bin"
Get-ChildItem "$psscriptroot\packages\Newtonsoft.*\lib\net45\*.dll" -File | ForEach-Object { Copy-Item $_ $output }
if(!$Fast) {
Get-ChildItem "$psscriptroot\packages\Newtonsoft.*\lib\net45\*.dll" -File | ForEach-Object { Copy-Item $_ $output }
}
Write-Output 'Compiling Scoop.Validator.cs ...'
& "$psscriptroot\packages\Microsoft.Net.Compilers\tools\csc.exe" /deterministic /platform:anycpu /nologo /optimize /target:library /reference:"$output\Newtonsoft.Json.dll","$output\Newtonsoft.Json.Schema.dll" /out:"$output\Scoop.Validator.dll" Scoop.Validator.cs
Write-Output 'Compiling validator.cs ...'
Expand Down

0 comments on commit 23e44f6

Please sign in to comment.