You've already forked linux-packaging-mono
Imported Upstream version 5.14.0.78
Former-commit-id: 3494343bcc9ddb42b36b82dd9ae7b69e85e0229f
This commit is contained in:
parent
74b74abd9f
commit
19234507ba
@@ -46,6 +46,11 @@ IF ERRORLEVEL 1 exit /b %ERRORLEVEL%
|
||||
"%__DotNetCliPath%\dotnet.exe" publish "%__SourceDir%\ILCompiler\netcoreapp\ilc.csproj" -r %__NugetRuntimeId% -o "%__RootBinDir%\%__BuildOS%.%__BuildArch%.%__BuildType%\tools"
|
||||
IF ERRORLEVEL 1 exit /b %ERRORLEVEL%
|
||||
|
||||
"%__DotNetCliPath%\dotnet.exe" restore "%__SourceDir%\ILVerify\netcoreapp\ILVerify.csproj" -r %__NugetRuntimeId%
|
||||
IF ERRORLEVEL 1 exit /b %ERRORLEVEL%
|
||||
"%__DotNetCliPath%\dotnet.exe" publish "%__SourceDir%\ILVerify\netcoreapp\ILVerify.csproj" -r %__NugetRuntimeId% -o "%__RootBinDir%\%__BuildOS%.%__BuildArch%.%__BuildType%\ILVerify"
|
||||
IF ERRORLEVEL 1 exit /b %ERRORLEVEL%
|
||||
|
||||
:: Set the environment for the managed build
|
||||
call "!VS%__VSProductVersion%COMNTOOLS!\VsDevCmd.bat"
|
||||
echo Commencing build of managed components for %__BuildOS%.%__BuildArch%.%__BuildType%
|
||||
|
10
external/corert/buildscripts/build-managed.sh
vendored
10
external/corert/buildscripts/build-managed.sh
vendored
@@ -92,11 +92,11 @@ get_official_cross_builds()
|
||||
return 0
|
||||
fi
|
||||
__tizenToolsRoot=${__ProjectRoot}/Tools/tizen
|
||||
__corefxsite="https://ci.dot.net/job/dotnet_corefx/job/master/view/Official%20Builds/job/"
|
||||
__coreclrsite="https://ci.dot.net/job/dotnet_coreclr/job/master/view/Official%20Builds/job/"
|
||||
__corefxsite="https://ci.dot.net/job/dotnet_corefx/job/master/job/"
|
||||
__coreclrsite="https://ci.dot.net/job/dotnet_coreclr/job/master/job/"
|
||||
__buildArchiveName="build.tar.gz"
|
||||
__systemNativeLibName="System.Native.a"
|
||||
__systemGlobNativeLibName="libSystem.Globalization.Native.a"
|
||||
__systemGlobNativeLibName="System.Globalization.Native.a"
|
||||
if [ $__BuildType = "Debug" ]; then
|
||||
__buildtype="debug"
|
||||
else
|
||||
@@ -106,7 +106,7 @@ get_official_cross_builds()
|
||||
__coreclrsource="armel_cross_${__buildtype}_tizen/lastSuccessfulBuild/artifact/bin/Product/Linux.armel.${__BuildType}/${__systemGlobNativeLibName}"
|
||||
mkdir -p $__tizenToolsRoot
|
||||
|
||||
(cd ${__tizenToolsRoot} && wget -N "${__corefxsite}${__corefxsource}")
|
||||
(cd ${__tizenToolsRoot} && wget -t0 -N "${__corefxsite}${__corefxsource}")
|
||||
export BUILDERRORLEVEL=$?
|
||||
if [ $BUILDERRORLEVEL != 0 ]; then
|
||||
exit $BUILDERRORLEVEL
|
||||
@@ -114,7 +114,7 @@ get_official_cross_builds()
|
||||
tar xvf ${__tizenToolsRoot}/${__buildArchiveName} -C ${__tizenToolsRoot} ./${__systemNativeLibName}
|
||||
cp ${__tizenToolsRoot}/${__systemNativeLibName} $__ProjectRoot/bin/Linux.${__BuildArch}.${__BuildType}/framework
|
||||
|
||||
(cd ${__tizenToolsRoot} && wget -N "${__coreclrsite}${__coreclrsource}")
|
||||
(cd ${__tizenToolsRoot} && wget -t0 -N "${__coreclrsite}${__coreclrsource}")
|
||||
export BUILDERRORLEVEL=$?
|
||||
if [ $BUILDERRORLEVEL != 0 ]; then
|
||||
exit $BUILDERRORLEVEL
|
||||
|
12
external/corert/buildscripts/buildvars-setup.cmd
vendored
12
external/corert/buildscripts/buildvars-setup.cmd
vendored
@@ -2,6 +2,12 @@
|
||||
set __BuildArch=x64
|
||||
set __BuildType=Debug
|
||||
set __BuildOS=Windows_NT
|
||||
set __HostOS=Windows_NT
|
||||
|
||||
:: Disable telemetry, first time experience, and global sdk look for the CLI
|
||||
set DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
|
||||
set DOTNET_MULTILEVEL_LOOKUP=0
|
||||
|
||||
:: Set the various build properties here so that CMake and MSBuild can pick them up
|
||||
set "__ProjectDir=%~dp0.."
|
||||
@@ -118,7 +124,7 @@ if defined VisualStudioVersion goto :RunVCVars
|
||||
|
||||
set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
|
||||
if exist %_VSWHERE% (
|
||||
for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -prerelease -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools
|
||||
for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -prerelease -property installationPath -products *`) do set _VSCOMNTOOLS=%%i\Common7\Tools
|
||||
)
|
||||
if not exist "%_VSCOMNTOOLS%" goto :MissingVersion
|
||||
|
||||
@@ -162,8 +168,8 @@ set Platform=
|
||||
set __VCBuildArch=x86_amd64
|
||||
if /i "%__BuildArch%" == "x86" (set __VCBuildArch=x86)
|
||||
|
||||
set __NugetRuntimeId=win7-x64
|
||||
if /i "%__BuildArch%" == "x86" (set __NugetRuntimeId=win7-x86)
|
||||
set __NugetRuntimeId=win-x64
|
||||
if /i "%__BuildArch%" == "x86" (set __NugetRuntimeId=win-x86)
|
||||
|
||||
:Done
|
||||
set BUILDVARS_DONE=1
|
||||
|
102
external/corert/buildscripts/buildvars-setup.sh
vendored
102
external/corert/buildscripts/buildvars-setup.sh
vendored
@@ -68,8 +68,6 @@ get_current_linux_rid() {
|
||||
# remove the last version digit
|
||||
VERSION_ID=${VERSION_ID%.*}
|
||||
rid=alpine.$VERSION_ID
|
||||
elif [[ $ID == "ubuntu" ]]; then
|
||||
rid=$ID.$VERSION_ID
|
||||
fi
|
||||
|
||||
elif [ -e /etc/redhat-release ]; then
|
||||
@@ -82,6 +80,10 @@ get_current_linux_rid() {
|
||||
echo $rid
|
||||
}
|
||||
|
||||
# Disable telemetry, first time experience, and global sdk look for the CLI
|
||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
|
||||
export DOTNET_MULTILEVEL_LOOKUP=0
|
||||
|
||||
export __scriptpath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
export __ProjectRoot=$__scriptpath/..
|
||||
@@ -109,6 +111,12 @@ export __CrossBuild=0
|
||||
|
||||
__BuildArch=$__HostArch
|
||||
|
||||
# Checking for any clang versions, if there is a symlink
|
||||
if [ -x "$(command -v clang)" ]; then
|
||||
__ClangMajorVersion="$(echo | clang -dM -E - | grep __clang_major__ | cut -f3 -d ' ')"
|
||||
__ClangMinorVersion="$(echo | clang -dM -E - | grep __clang_minor__ | cut -f3 -d ' ')"
|
||||
fi
|
||||
|
||||
while [ "$1" != "" ]; do
|
||||
lowerI="$(echo $1 | awk '{print tolower($0)}')"
|
||||
case $lowerI in
|
||||
@@ -171,6 +179,22 @@ while [ "$1" != "" ]; do
|
||||
export __ClangMajorVersion=3
|
||||
export __ClangMinorVersion=9
|
||||
;;
|
||||
clang4.0)
|
||||
export __ClangMajorVersion=4
|
||||
export __ClangMinorVersion=0
|
||||
;;
|
||||
clang5.0)
|
||||
export __ClangMajorVersion=5
|
||||
export __ClangMinorVersion=0
|
||||
;;
|
||||
clang6.0)
|
||||
export __ClangMajorVersion=6
|
||||
export __ClangMinorVersion=0
|
||||
;;
|
||||
clang7.0)
|
||||
export __ClangMajorVersion=7
|
||||
export __ClangMinorVersion=0
|
||||
;;
|
||||
cross)
|
||||
export __CrossBuild=1
|
||||
;;
|
||||
@@ -193,41 +217,49 @@ done
|
||||
|
||||
export $__BuildArch
|
||||
|
||||
# Use uname to determine what the OS is.
|
||||
export OSName=$(uname -s)
|
||||
case $OSName in
|
||||
Darwin)
|
||||
export __HostOS=OSX
|
||||
export __NugetRuntimeId=osx-x64
|
||||
ulimit -n 2048
|
||||
;;
|
||||
|
||||
FreeBSD)
|
||||
export __HostOS=FreeBSD
|
||||
# TODO: Add proper FreeBSD target
|
||||
export __NugetRuntimeId=linux-x64
|
||||
;;
|
||||
|
||||
Linux)
|
||||
export __HostOS=Linux
|
||||
export __NugetRuntimeId=$(get_current_linux_rid)-$__HostArch
|
||||
;;
|
||||
|
||||
NetBSD)
|
||||
export __HostOS=NetBSD
|
||||
# TODO: Add proper NetBSD target
|
||||
export __NugetRuntimeId=linux-x64
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unsupported OS $OSName detected, configuring as if for Linux"
|
||||
export __HostOS=Linux
|
||||
export __NugetRuntimeId=linux-x64
|
||||
;;
|
||||
esac
|
||||
|
||||
# For msbuild
|
||||
if [ $__HostOS != "OSX" ]; then
|
||||
export CppCompilerAndLinker=clang-${__ClangMajorVersion}.${__ClangMinorVersion}
|
||||
fi
|
||||
|
||||
export __BuildOS="$__HostOS"
|
||||
|
||||
# Overwrite __BuildOS with WebAssembly if wasm is target build arch, but keep the __NugetRuntimeId to match the Host OS
|
||||
if [ $__BuildArch == "wasm" ]; then
|
||||
export __BuildOS=WebAssembly
|
||||
else
|
||||
# Use uname to determine what the OS is.
|
||||
export OSName=$(uname -s)
|
||||
case $OSName in
|
||||
Darwin)
|
||||
export __BuildOS=OSX
|
||||
export __NugetRuntimeId=osx.10.10-x64
|
||||
ulimit -n 2048
|
||||
;;
|
||||
|
||||
FreeBSD)
|
||||
export __BuildOS=FreeBSD
|
||||
# TODO: Add proper FreeBSD target
|
||||
export __NugetRuntimeId=ubuntu.14.04-x64
|
||||
;;
|
||||
|
||||
Linux)
|
||||
export __BuildOS=Linux
|
||||
export __NugetRuntimeId=$(get_current_linux_rid)-$__HostArch
|
||||
;;
|
||||
|
||||
NetBSD)
|
||||
export __BuildOS=NetBSD
|
||||
# TODO: Add proper NetBSD target
|
||||
export __NugetRuntimeId=ubuntu.14.04-x64
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unsupported OS $OSName detected, configuring as if for Linux"
|
||||
export __BuildOS=Linux
|
||||
export __NugetRuntimeId=ubuntu.14.04-x64
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# If neither managed nor native are passed as arguments, default to building both
|
||||
|
Reference in New Issue
Block a user