@@ -28,19 +28,8 @@ if defined VS160COMNTOOLS (
28
28
:: out the variables that might be too large.
29
29
set ghprbCommentBody =
30
30
31
- :: Note that the msbuild project files (specifically, dir.proj) will use the following variables, if set:
32
- :: __BuildArch -- default: x64
33
- :: __BuildType -- default: Debug
34
- :: __BuildOS -- default: Windows_NT
35
- :: __ProjectDir -- default: directory of the Directory.Build.Props file
36
- :: __SourceDir -- default: %__ProjectDir%\src\
37
- :: __PackagesDir -- default: %__ProjectDir%\packages\
38
- :: __RootBinDir -- default: %__ProjectDir%\bin\
39
- :: __BinDir -- default: %__RootBinDir%\%__BuildOS%.%__BuildArch.%__BuildType%\
40
- :: __IntermediatesDir
41
- :: __PackagesBinDir -- default: %__BinDir%\.nuget
42
- :: __TestWorkingDir -- default: %__RootBinDir%\tests\%__BuildOS%.%__BuildArch.%__BuildType%\
43
- ::
31
+ :: Note that the msbuild project files (specifically, dir.proj) will use the variables such as
32
+ :: __BuildArch, __ProjectDir, etc if set.
44
33
:: Thus, these variables are not simply internal to this script!
45
34
46
35
:: Set the default arguments for build
@@ -50,14 +39,15 @@ set __BuildOS=Windows_NT
50
39
51
40
:: Set the various build properties here so that CMake and MSBuild can pick them up
52
41
set " __ProjectDir = %~dp0 "
42
+ set ArcadeBuild = true
53
43
:: remove trailing slash
54
44
if %__ProjectDir:~-1 % == \ set " __ProjectDir = %__ProjectDir:~0 ,-1 % "
55
45
set " __ProjectFilesDir = %__ProjectDir% "
56
46
set " __SourceDir = %__ProjectDir% \src"
57
47
set " __PackagesDir = %DotNetRestorePackagesPath% "
58
48
if [%__PackagesDir% ]== [] set " __PackagesDir = %__ProjectDir% \packages"
59
- set " __RootBinDir = %__ProjectDir% \bin "
60
- set " __LogsDir = %__RootBinDir % \Logs"
49
+ set " __RootArtifactsDir = %__ProjectDir% \artifacts "
50
+ set " __LogsDir = %__RootArtifactsDir % \Logs\ %__BuildType% "
61
51
set " __MsbuildDebugLogsDir = %__LogsDir% \MsbuildDebugLogs"
62
52
63
53
set __BuildAll =
@@ -271,7 +261,7 @@ if %__BuildTypeDebug%==1 set __BuildType=Debug
271
261
if %__BuildTypeChecked% == 1 set __BuildType = Checked
272
262
if %__BuildTypeRelease% == 1 set __BuildType = Release
273
263
274
- set __CommonMSBuildArgs = /p:__BuildOS=%__BuildOS% /p:__BuildType=%__BuildType% /p:__BuildArch=%__BuildArch% !__SkipRestoreArg! !__OfficialBuildIdArg!
264
+ set __CommonMSBuildArgs = /p:__BuildOS=%__BuildOS% /p:__BuildType=%__BuildType% /p:__BuildArch=%__BuildArch% !__SkipRestoreArg! !__OfficialBuildIdArg! /p:ArcadeBuild=true /p:Platform= %__BuildArch%
275
265
276
266
if %__EnforcePgo% == 1 (
277
267
if %__BuildArchArm% == 1 (
@@ -303,9 +293,10 @@ if /i %__BuildType% NEQ Release set __RestoreOptData=0
303
293
REM REVIEW: why no System.Private.CoreLib NuGet package build for ARM64?
304
294
if /i " %__BuildArch% " == " arm64" set __SkipNugetPackage = 0
305
295
306
- set " __BinDir = %__RootBinDir% \Product\%__BuildOS% .%__BuildArch% .%__BuildType% "
307
- set " __IntermediatesDir = %__RootBinDir% \obj\%__BuildOS% .%__BuildArch% .%__BuildType% "
308
- if " %__NMakeMakefiles% " == " 1" (set " __IntermediatesDir=%__RootBinDir% \nmakeobj\%__BuildOS% .%__BuildArch% .%__BuildType% " )
296
+ set " __BinDir = %__RootArtifactsDir% \Product\%__BuildOS% \%__BuildArch% \%__BuildType% "
297
+ set " __IntermediatesDir = %__RootArtifactsDir% \obj\%__BuildOS% \%__BuildArch% \%__BuildType% "
298
+ set " __TestIntermediatesDir = %__RootArtifactsDir% \tests\obj\%__BuildOS% \%__BuildArch% \%__BuildType% "
299
+ if " %__NMakeMakefiles% " == " 1" (set " __IntermediatesDir=%__RootArtifactsDir% \nmakeobj\%__BuildOS% \%__BuildArch% \%__BuildType% " )
309
300
set " __PackagesBinDir = %__BinDir% \.nuget"
310
301
set " __CrossComponentBinDir = %__BinDir% "
311
302
set " __CrossCompIntermediatesDir = %__IntermediatesDir% \crossgen"
@@ -357,7 +348,6 @@ if not defined NumberOfCores (
357
348
set NumberOfCores = !TotalNumberOfCores!
358
349
)
359
350
echo %__MsgPrefix% Number of processor cores %NumberOfCores%
360
-
361
351
REM =========================================================================================
362
352
REM ===
363
353
REM === Start the build steps
@@ -367,10 +357,9 @@ REM ============================================================================
367
357
@ if defined _echo @ echo on
368
358
369
359
call %__ProjectDir% \dotnet.cmd msbuild /nologo /verbosity:minimal /clp:Summary /nodeReuse:false^
370
- /l:BinClashLogger,Tools/Microsoft.DotNet.Build.Tasks.dll;LogFile=binclash.log^
371
360
/p:RestoreDefaultOptimizationDataPackage=false /p:PortableBuild=true^
372
361
/p:UsePartialNGENOptimization=false /maxcpucount^
373
- %__ProjectDir% \build.proj /t:GenerateVersionHeader /p:GenerateVersionHeader=true /p:NativeVersionHeaderFile= " %__RootBinDir% \obj\_version.h " ^
362
+ %__ProjectDir% \build.proj /t:GenerateNativeVersionFile ^
374
363
%__CommonMSBuildArgs% %__UnprocessedBuildArgs%
375
364
376
365
REM =========================================================================================
@@ -381,7 +370,7 @@ REM ============================================================================
381
370
382
371
if %__RestoreOptData% EQU 1 (
383
372
echo %__MsgPrefix% Restoring the OptimizationData Package
384
- call %__ProjectDir% \dotnet.cmd msbuild /nologo /verbosity:minimal /clp:Summary /nodeReuse:false^
373
+ call %__ProjectDir% \dotnet.cmd msbuild /nologo /verbosity:diag /clp:Summary /nodeReuse:false^
385
374
/p:RestoreDefaultOptimizationDataPackage=false /p:PortableBuild=true^
386
375
/p:UsePartialNGENOptimization=false /maxcpucount^
387
376
./build.proj /t:RestoreOptData^
@@ -522,8 +511,7 @@ if %__BuildNative% EQU 1 (
522
511
set __MsbuildErr = /flp2:ErrorsOnly;LogFile=!__BuildErr!
523
512
set __Logging = !__MsbuildLog! !__MsbuildWrn! !__MsbuildErr!
524
513
525
- call %__ProjectDir% \cmake_msbuild.cmd /nologo /verbosity:minimal /clp:Summary /nodeReuse:false^
526
- /l:BinClashLogger,Tools/net46/Microsoft.DotNet.Build.Tasks.dll;LogFile=binclash.log^
514
+ call %__ProjectDir% \cmake_msbuild.cmd /nologo /verbosity:diag /clp:Summary /nodeReuse:false^
527
515
/p:RestoreDefaultOptimizationDataPackage=false /p:PortableBuild=true^
528
516
/p:UsePartialNGENOptimization=false /maxcpucount %__IntermediatesDir% \install.vcxproj^
529
517
!__Logging! /p:Configuration=%__BuildType% /p:Platform=%__BuildArch% %__CommonMSBuildArgs% /m:2 %__UnprocessedBuildArgs%
@@ -589,8 +577,7 @@ if %__BuildCrossArchNative% EQU 1 (
589
577
set __MsbuildErr = /flp2:ErrorsOnly;LogFile=!__BuildErr!
590
578
set __Logging = !_MsbuildLog! !__MsbuildWrn! !__MsbuildErr!
591
579
592
- call %__ProjectDir% \cmake_msbuild.cmd /nologo /verbosity:minimal /clp:Summary /nodeReuse:false^
593
- /l:BinClashLogger,Tools/net46/Microsoft.DotNet.Build.Tasks.dll;LogFile=binclash.log^
580
+ call %__ProjectDir% \cmake_msbuild.cmd /nologo /verbosity:diag /clp:Summary /nodeReuse:false^
594
581
/p:RestoreDefaultOptimizationDataPackage=false /p:PortableBuild=true^
595
582
/p:UsePartialNGENOptimization=false /maxcpucount^
596
583
%__CrossCompIntermediatesDir% \install.vcxproj^
@@ -649,8 +636,7 @@ if %__BuildCoreLib% EQU 1 (
649
636
set __MsbuildErr = /flp2:ErrorsOnly;LogFile=!__BuildErr!
650
637
set __Logging = !__MsbuildLog! !__MsbuildWrn! !__MsbuildErr!
651
638
652
- call %__ProjectDir% \dotnet.cmd msbuild /nologo /verbosity:minimal /clp:Summary /nodeReuse:false^
653
- /l:BinClashLogger,Tools/Microsoft.DotNet.Build.Tasks.dll;LogFile=binclash.log^
639
+ call %__ProjectDir% \dotnet.cmd msbuild /nologo /verbosity:diag /clp:Summary /nodeReuse:false^
654
640
/p:RestoreDefaultOptimizationDataPackage=false /p:PortableBuild=true^
655
641
/p:UsePartialNGENOptimization=false /maxcpucount^
656
642
%__ProjectDir% \build.proj^
@@ -800,7 +786,7 @@ if %__BuildNativeCoreLib% EQU 1 (
800
786
set COMPlus_ContinueOnAssert = 0
801
787
)
802
788
803
- set NEXTCMD = " %__CrossgenExe% " %__IbcTuning% /Platform_Assemblies_Paths " %__BinDir% " \IL /out " %__BinDir% \System.Private.CoreLib.dll" " %__BinDir% \IL\System.Private.CoreLib.dll"
789
+ set NEXTCMD = " %__CrossgenExe% " %__IbcTuning% /Platform_Assemblies_Paths " %__BinDir% \IL" /out " %__BinDir% \System.Private.CoreLib.dll" " %__BinDir% \IL\System.Private.CoreLib.dll"
804
790
echo %__MsgPrefix%!NEXTCMD!
805
791
echo %__MsgPrefix%!NEXTCMD! >> " %__CrossGenCoreLibLog% "
806
792
!NEXTCMD! >> " %__CrossGenCoreLibLog% " 2 >& 1
@@ -848,8 +834,7 @@ if %__BuildPackages% EQU 1 (
848
834
set __Logging = !__MsbuildLog! !__MsbuildWrn! !__MsbuildErr!
849
835
850
836
REM The conditions as to what to build are captured in the builds file.
851
- call %__ProjectDir% \dotnet.cmd msbuild /nologo /verbosity:minimal /clp:Summary /nodeReuse:false^
852
- /l:BinClashLogger,Tools/Microsoft.DotNet.Build.Tasks.dll;LogFile=binclash.log^
837
+ call %__ProjectDir% \dotnet.cmd msbuild /nologo /verbosity:diag /clp:Summary /nodeReuse:false^
853
838
/p:RestoreDefaultOptimizationDataPackage=false /p:PortableBuild=true^
854
839
/p:UsePartialNGENOptimization=false /maxcpucount^
855
840
%__SourceDir% \.nuget\packages.builds^
0 commit comments