diff options
author | Alex Ghiondea <ghiondea.alexandru@microsoft.com> | 2016-05-24 10:59:37 -0700 |
---|---|---|
committer | Alex Ghiondea <ghiondea.alexandru@microsoft.com> | 2016-05-27 14:22:56 -0700 |
commit | c004a43d75c5e7e2959ac3fcfbafca2f23d20bb4 (patch) | |
tree | cef2f048529aebff61b6f36635cfc71cd9c21fc9 /build.sh | |
parent | 2e73ba95a266ac513ebef607107c5facd0825741 (diff) | |
download | coreclr-c004a43d75c5e7e2959ac3fcfbafca2f23d20bb4.tar.gz coreclr-c004a43d75c5e7e2959ac3fcfbafca2f23d20bb4.tar.bz2 coreclr-c004a43d75c5e7e2959ac3fcfbafca2f23d20bb4.zip |
Introduce a central packages.builds file that controls building the nuget packages.
This removes the need to have individual packages added to the build scripts to generate them.
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 33 |
1 files changed, 4 insertions, 29 deletions
@@ -315,45 +315,20 @@ generate_NugetPackages() return fi - echo "Generating nuget packages for "$__BuildOS - if [ $__SkipMSCorLib == 1 ]; then # Restore buildTools, since we skipped doing so with the mscorlib build. - restoreBuildTools echo "Unable to generate Microsoft.NETCore.Runtime.CoreCLR nuget package since mscorlib was not built." - else - # Build the CoreCLR packages - $__ProjectRoot/Tools/corerun "$__MSBuildPath" /nologo "$__ProjectRoot/src/.nuget/Microsoft.NETCore.Runtime.CoreCLR/Microsoft.NETCore.Runtime.CoreCLR.builds" /verbosity:minimal "/fileloggerparameters:Verbosity=normal;LogFile=$__LogsDir/Nuget_$__BuildOS__$__BuildArch__$__BuildType.log" /t:Build /p:__BuildOS=$__BuildOS /p:__BuildArch=$__BuildArch /p:__BuildType=$__BuildType /p:__IntermediatesDir=$__IntermediatesDir /p:__RootBinDir=$__RootBinDir /p:BuildNugetPackage=false /p:UseSharedCompilation=false - - if [ $? -ne 0 ]; then - echo "Failed to generate Nuget packages." - exit 1 - fi - fi - - # Build the JIT packages - $__ProjectRoot/Tools/corerun "$__MSBuildPath" /nologo "$__ProjectRoot/src/.nuget/Microsoft.NETCore.Jit/Microsoft.NETCore.Jit.builds" /verbosity:minimal "/fileloggerparameters:Verbosity=normal;LogFile=$__LogsDir/Nuget_$__BuildOS__$__BuildArch__$__BuildType.log" /t:Build /p:__BuildOS=$__BuildOS /p:__BuildArch=$__BuildArch /p:__BuildType=$__BuildType /p:__IntermediatesDir=$__IntermediatesDir /p:BuildNugetPackage=false /p:__RootBinDir=$__RootBinDir /p:UseSharedCompilation=false - - if [ $? -ne 0 ]; then - echo "Failed to generate Nuget packages." - exit 1 fi - # Build the ILAsm package - $__ProjectRoot/Tools/corerun "$__MSBuildPath" /nologo "$__ProjectRoot/src/.nuget/Microsoft.NETCore.ILAsm/Microsoft.NETCore.ILAsm.builds" /verbosity:minimal "/fileloggerparameters:Verbosity=normal;LogFile=$__LogsDir/Nuget_$__BuildOS__$__BuildArch__$__BuildType.log" /t:Build /p:__BuildOS=$__BuildOS /p:__BuildArch=$__BuildArch /p:__BuildType=$__BuildType /p:__IntermediatesDir=$__IntermediatesDir /p:BuildNugetPackage=false /p:__RootBinDir=$__RootBinDir /p:UseSharedCompilation=false - - if [ $? -ne 0 ]; then - echo "Failed to generate ILAsm Nuget packages." - exit 1 - fi + echo "Generating nuget packages for "$__BuildOS - # Build the ILDAsm package - $__ProjectRoot/Tools/corerun "$__MSBuildPath" /nologo "$__ProjectRoot/src/.nuget/Microsoft.NETCore.ILDAsm/Microsoft.NETCore.ILDAsm.builds" /verbosity:minimal "/fileloggerparameters:Verbosity=normal;LogFile=$__LogsDir/Nuget_$__BuildOS__$__BuildArch__$__BuildType.log" /t:Build /p:__BuildOS=$__BuildOS /p:__BuildArch=$__BuildArch /p:__BuildType=$__BuildType /p:__IntermediatesDir=$__IntermediatesDir /p:BuildNugetPackage=false /p:__RootBinDir=$__RootBinDir /p:UseSharedCompilation=false + # Build the packages + $__ProjectRoot/Tools/corerun "$__MSBuildPath" /nologo "$__ProjectRoot/src/.nuget/packages.builds" /verbosity:minimal "/fileloggerparameters:Verbosity=normal;LogFile=$__LogsDir/Nuget_$__BuildOS__$__BuildArch__$__BuildType.log" /t:Build /p:__BuildOS=$__BuildOS /p:__BuildArch=$__BuildArch /p:__BuildType=$__BuildType /p:__IntermediatesDir=$__IntermediatesDir /p:__RootBinDir=$__RootBinDir /p:BuildNugetPackage=false /p:UseSharedCompilation=false if [ $? -ne 0 ]; then - echo "Failed to generate ILDAsm Nuget packages." + echo "Failed to generate Nuget packages." exit 1 fi } |