Split corehost into serviceable DLL and EXE
This commit is contained in:
parent
98cdbf1cbd
commit
907cf00654
11 changed files with 77 additions and 45 deletions
|
@ -79,6 +79,7 @@ cp -rec "$RuntimeOutputDir\*" "$OutputDir\bin"
|
|||
|
||||
# Deploy the CLR host to the output
|
||||
cp "$HostDir\corehost.exe" "$OutputDir\bin"
|
||||
cp "$HostDir\clihost.dll" "$OutputDir\bin"
|
||||
|
||||
# corehostify externally-provided binaries (csc, vbc, etc.)
|
||||
$BinariesForCoreHost | ForEach-Object {
|
||||
|
@ -99,4 +100,4 @@ cp "$RepoRoot\scripts\dotnet-dnx.cmd" "$OutputDir\bin\dotnet-dnx.cmd"
|
|||
# Copy in AppDeps
|
||||
$env:PATH = "$OutputDir\bin;$StartPath"
|
||||
header "Acquiring Native App Dependencies"
|
||||
_cmd "$RepoRoot\scripts\build\build_appdeps.cmd ""$OutputDir"""
|
||||
_cmd "$RepoRoot\scripts\build\build_appdeps.cmd ""$OutputDir"""
|
||||
|
|
|
@ -79,7 +79,13 @@ done
|
|||
cp -R $RUNTIME_OUTPUT_DIR/* $OUTPUT_DIR/bin
|
||||
|
||||
# Deploy CLR host to the output
|
||||
if [[ "$OSNAME" == "osx" ]]; then
|
||||
COREHOST_LIBNAME=libclihost.dylib
|
||||
else
|
||||
COREHOST_LIBNAME=libclihost.so
|
||||
fi
|
||||
cp "$HOST_DIR/corehost" "$OUTPUT_DIR/bin"
|
||||
cp "$HOST_DIR/${COREHOST_LIBNAME}" "$OUTPUT_DIR/bin"
|
||||
|
||||
# corehostify externally-provided binaries (csc, vbc, etc.)
|
||||
for binary in ${BINARIES_FOR_COREHOST[@]}
|
||||
|
@ -118,4 +124,4 @@ fi
|
|||
# Stamp the output with the commit metadata
|
||||
COMMIT=$(git rev-parse HEAD)
|
||||
echo $COMMIT > $OUTPUT_DIR/.version
|
||||
echo $DOTNET_BUILD_VERSION >> $OUTPUT_DIR/.version
|
||||
echo $DOTNET_BUILD_VERSION >> $OUTPUT_DIR/.version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue