Dotnet-Compile-Native Linux Integration
This commit is contained in:
parent
a2e26981f2
commit
47e150f561
3 changed files with 28 additions and 1 deletions
|
@ -21,7 +21,8 @@ $Projects = @(
|
|||
"Microsoft.DotNet.Tools.Repl.Csi",
|
||||
"Microsoft.DotNet.Tools.Resgen",
|
||||
"Microsoft.DotNet.Tools.Run",
|
||||
"Microsoft.DotNet.Tools.Init"
|
||||
"Microsoft.DotNet.Tools.Init",
|
||||
"Microsoft.DotNet.Tools.Compiler.Native"
|
||||
)
|
||||
|
||||
$BinariesForCoreHost = @(
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# This file encapsulates the temporary steps to build the dotnet-compile-native command successfully
|
||||
# The AppDepSDK package is a temporary artifact until we have CoreRT assemblies published to Nuget
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
REPO_ROOT="$SCRIPT_DIR/../.."
|
||||
APPDEPS_PROJECT_DIR=%REPO_ROOT%\Microsoft.DotNet.Tools.Compiler.Native\appdep
|
||||
|
||||
# Get Absolute Output Dir
|
||||
pushd $1
|
||||
OUTPUT_DIR="$(pwd)"
|
||||
popd
|
||||
|
||||
## App Deps ##
|
||||
pushd $APPDEPS_PROJECT_DIR
|
||||
dotnet restore --packages $APPDEPS_PROJECT_DIR\packages
|
||||
APPDEP_SDK=$APPDEPS_PROJECT_DIR\packages\toolchain*\*\
|
||||
popd
|
||||
|
||||
mkdir -p $OUTPUT_DIR/appdepsdk
|
||||
cp -a $APPDEP_SDK/. $OUTPUT_DIR/appdepsdk
|
|
@ -106,6 +106,10 @@ cp -R $DNX_ROOT $STAGE2_DIR/bin/dnx
|
|||
cp $DIR/dotnet-restore.sh $STAGE2_DIR/bin/dotnet-restore
|
||||
chmod a+x $STAGE2_DIR/bin/dotnet-restore
|
||||
|
||||
# Copy in AppDeps
|
||||
header "Acquiring Native App Dependencies"
|
||||
$REPOROOT/scripts/build/build_appdeps.sh "$STAGE2_DIR/bin"
|
||||
|
||||
# Stamp the output with the commit metadata
|
||||
COMMIT_ID=$(git rev-parse HEAD)
|
||||
echo $COMMIT_ID > $STAGE2_DIR/.commit
|
||||
|
|
Loading…
Add table
Reference in a new issue