summaryrefslogtreecommitdiff
path: root/build-packages.cmd
diff options
context:
space:
mode:
authorJiyoung Yun <jy910.yun@samsung.com>2016-11-23 10:09:09 (GMT)
committerJiyoung Yun <jy910.yun@samsung.com>2016-11-23 10:09:09 (GMT)
commit4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch)
tree98110734c91668dfdbb126fcc0e15ddbd93738ca /build-packages.cmd
parentfa45f57ed55137c75ac870356a1b8f76c84b229c (diff)
downloadcoreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.zip
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.gz
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.bz2
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'build-packages.cmd')
-rw-r--r--build-packages.cmd56
1 files changed, 56 insertions, 0 deletions
diff --git a/build-packages.cmd b/build-packages.cmd
new file mode 100644
index 0000000..3297bfc
--- /dev/null
+++ b/build-packages.cmd
@@ -0,0 +1,56 @@
+@if "%_echo%" neq "on" echo off
+setlocal EnableDelayedExpansion
+
+set "__ProjectDir=%~dp0"
+set allargs=%*
+
+if /I [%1] == [/?] goto Usage
+if /I [%1] == [/help] goto Usage
+
+call %__ProjectDir%/run.cmd build-packages -Project=%__ProjectDir%/src/.nuget/Microsoft.NETCore.Runtime.CoreClr/Microsoft.NETCore.Runtime.CoreCLR.builds -FilterToOSGroup=Windows_NT %allargs%
+if NOT [!ERRORLEVEL!]==[0] (
+ echo ERROR: An error occurred while building CoreCLR Runtime package, see build-packages.log for more details.
+ exit /b 1
+)
+
+call %__ProjectDir%/run.cmd build-packages -Project=%__ProjectDir%/src/.nuget/Microsoft.NETCore.Jit/Microsoft.NETCore.Jit.builds -FilterToOSGroup=Windows_NT %allargs%
+if NOT [!ERRORLEVEL!]==[0] (
+ echo ERROR: An error occurred while building Jit package, see build-packages.log for more details.
+ exit /b 1
+)
+
+call %__ProjectDir%/run.cmd build-packages -Project=%__ProjectDir%/src/.nuget/Microsoft.NETCore.ILAsm/Microsoft.NETCore.ILAsm.builds -FilterToOSGroup=Windows_NT %allargs%
+if NOT [!ERRORLEVEL!]==[0] (
+ echo ERROR: An error occurred while building ILAsm package, see build-packages.log for more details.
+ exit /b 1
+)
+
+call %__ProjectDir%/run.cmd build-packages -Project=%__ProjectDir%/src/.nuget/Microsoft.NETCore.ILDAsm/Microsoft.NETCore.ILDAsm.builds -FilterToOSGroup=Windows_NT %allargs%
+if NOT [!ERRORLEVEL!]==[0] (
+ echo ERROR: An error occurred while building ILDAsm package, see build-packages.log for more details.
+ exit /b 1
+)
+
+call %__ProjectDir%/run.cmd build-packages -Project=%__ProjectDir%/src/.nuget/Microsoft.TargetingPack.Private.CoreCLR/Microsoft.TargetingPack.Private.CoreCLR.pkgproj -FilterToOSGroup=Windows_NT %allargs%
+if NOT [!ERRORLEVEL!]==[0] (
+ echo ERROR: An error occurred while building CoreCLR TargetingPack package, see build-packages.log for more details.
+ exit /b 1
+)
+
+call %__ProjectDir%/run.cmd build-packages -Project=%__ProjectDir%\src\.nuget\Microsoft.NETCore.TestHost\Microsoft.NETCore.TestHost.builds -FilterToOSGroup=Windows_NT %allargs%
+if NOT [!ERRORLEVEL!]==[0] (
+ echo ERROR: An error occurred while building packages, see %packagesLog% for more details.
+ exit /b 1
+)
+
+echo Done Building Packages.
+exit /b
+
+:Usage
+echo.
+echo Builds the NuGet packages from the binaries that were built in the Build product binaries step.
+echo The following properties are required to define build architecture
+echo -BuildArch=[architecture] -BuildType=[configuration]
+echo Architecture can be x64, x86, arm, or arm64
+echo Configuration can be Release, Debug, or Checked
+exit /b