-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated build scripts. README was updated to include instructions on how to build and generate bindings.
- Loading branch information
Showing
3 changed files
with
49 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,34 @@ | ||
Set-Location .\lib\winmd | ||
mkdir bin | ||
& .\build.ps1 | ||
Set-Location ..\.. | ||
mkdir bin | ||
function returnToRoot { | ||
Set-Location ..\.. | ||
} | ||
|
||
if (!(Test-Path .\lib\winmd)) { | ||
throw "WinMD shard not found" | ||
} | ||
|
||
if (!(Test-Path .\lib\winmd\bin\winmd.exe)) { | ||
Set-Location .\lib\winmd | ||
|
||
# create bin dir under winmc | ||
if (!(Test-Path .\bin)) { | ||
mkdir bin | ||
} | ||
|
||
if (!(Test-Path .\build.ps1)) { | ||
returnToRoot | ||
throw "WinMD build script not found in WinMD shard" | ||
} | ||
|
||
& .\build.ps1 | ||
|
||
returnToRoot | ||
|
||
# create the bin dir under win32cr | ||
if (!(Test-Path .\bin)) { | ||
mkdir bin | ||
} | ||
if (!(Test-Path .\lib\winmd\bin\winmd.exe)) { | ||
throw "WinMD executable not found" | ||
} | ||
} | ||
Copy-Item .\lib\winmd\bin\winmd.exe .\bin\winmd.exe |