-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create runtime kit and adjust devkit (#9)
* create runtime kit and adjust devkit * bump version * make setup.ps1 reusable * add FNMPAPI PDB to devkit
- Loading branch information
Showing
6 changed files
with
70 additions
and
19 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
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,42 @@ | ||
# | ||
# Assembles a runtime kit for FNMP execution. | ||
# Code must be built before running this script. | ||
# | ||
|
||
param ( | ||
[ValidateSet("x64")] | ||
[Parameter(Mandatory=$false)] | ||
[string]$Platform = "x64", | ||
|
||
[ValidateSet("Debug", "Release")] | ||
[Parameter(Mandatory=$false)] | ||
[string]$Config = "Debug" | ||
) | ||
|
||
Set-StrictMode -Version 'Latest' | ||
$ErrorActionPreference = 'Stop' | ||
|
||
$RootDir = Split-Path $PSScriptRoot -Parent | ||
. $RootDir\tools\common.ps1 | ||
|
||
$Name = "fnmp-runtime-$Platform" | ||
if ($Config -eq "Debug") { | ||
$Name += "-debug" | ||
} | ||
$DstPath = "artifacts\kit\$Name" | ||
|
||
Remove-Item $DstPath -Recurse -ErrorAction Ignore | ||
New-Item -Path $DstPath -ItemType Directory > $null | ||
|
||
New-Item -Path $DstPath\bin -ItemType Directory > $null | ||
copy -Recurse "artifacts\bin\$($Platform)_$($Config)\fnmp\" $DstPath\bin | ||
|
||
New-Item -Path $DstPath\symbols -ItemType Directory > $null | ||
copy "artifacts\bin\$($Platform)_$($Config)\fnmp.pdb" $DstPath\symbols | ||
|
||
New-Item -Path $DstPath\tools -ItemType Directory > $null | ||
copy ".\tools\common.ps1" $DstPath\tools | ||
copy ".\tools\prepare-machine.ps1" $DstPath\tools | ||
copy ".\tools\setup.ps1" $DstPath\tools | ||
|
||
Compress-Archive -DestinationPath "$DstPath\$Name.zip" -Path $DstPath\* |
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