Dotnet-Compile-Native Windows Build Integration
This commit is contained in:
parent
c32b262eef
commit
a2e26981f2
4 changed files with 26 additions and 0 deletions
|
@ -33,6 +33,7 @@ PROJECTS=( \
|
||||||
Microsoft.DotNet.Tools.Repl.Csi \
|
Microsoft.DotNet.Tools.Repl.Csi \
|
||||||
Microsoft.DotNet.Tools.Resgen \
|
Microsoft.DotNet.Tools.Resgen \
|
||||||
Microsoft.DotNet.Tools.Run \
|
Microsoft.DotNet.Tools.Run \
|
||||||
|
Microsoft.DotNet.Tools.Compiler.Native \
|
||||||
)
|
)
|
||||||
|
|
||||||
BINARIES_FOR_COREHOST=( \
|
BINARIES_FOR_COREHOST=( \
|
||||||
|
|
21
scripts/build/build_appdeps.cmd
Normal file
21
scripts/build/build_appdeps.cmd
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
@echo off
|
||||||
|
|
||||||
|
REM This file encapsulates the temporary steps to build the dotnet-compile-native command successfully
|
||||||
|
REM The AppDepSDK package is a temporary artifact until we have CoreRT assemblies published to Nuget
|
||||||
|
|
||||||
|
set __ScriptDir=%~dp0
|
||||||
|
set __RepoRoot=%__ScriptDir%\..\..
|
||||||
|
set __AppDepsProjectDir=%__RepoRoot%\Microsoft.DotNet.Tools.Compiler.Native\appdep
|
||||||
|
|
||||||
|
REM Get absolute path
|
||||||
|
pushd %1
|
||||||
|
set __OutputPath=%CD%\bin
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd %__AppDepsProjectDir%
|
||||||
|
dotnet restore --packages %AppDepsProjectDir%\packages
|
||||||
|
set __AppDepSDK=%AppDepsProjectDir%\packages\toolchain*\*\
|
||||||
|
popd
|
||||||
|
|
||||||
|
mkdir %__OutputPath%\appdepsdk
|
||||||
|
xcopy /S/E/H/Y %__AppDepSDK% %__OutputPath%\appdepsdk
|
0
scripts/build/build_appdeps.sh
Normal file
0
scripts/build/build_appdeps.sh
Normal file
|
@ -94,6 +94,10 @@ Download it from https://www.cmake.org
|
||||||
# Copy in the dotnet-restore script
|
# Copy in the dotnet-restore script
|
||||||
cp "$PSScriptRoot\dotnet-restore.cmd" "$Stage2Dir\bin\dotnet-restore.cmd"
|
cp "$PSScriptRoot\dotnet-restore.cmd" "$Stage2Dir\bin\dotnet-restore.cmd"
|
||||||
|
|
||||||
|
# Copy in AppDeps
|
||||||
|
header "Acquiring Native App Dependencies"
|
||||||
|
cmd /c "$PSScriptRoot\build\build_appdeps.cmd" "$Stage2Dir"
|
||||||
|
|
||||||
# Smoke test stage2
|
# Smoke test stage2
|
||||||
$env:PATH = "$Stage2Dir\bin;$StartPath"
|
$env:PATH = "$Stage2Dir\bin;$StartPath"
|
||||||
$env:DOTNET_HOME = "$Stage2Dir"
|
$env:DOTNET_HOME = "$Stage2Dir"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue