Skip to content

Commit

Permalink
Merge branch 'release-0.17.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
belkiss committed Jul 20, 2021
2 parents e2c14dc + 339b3fd commit 5354c1a
Show file tree
Hide file tree
Showing 308 changed files with 5,375 additions and 4,509 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

# Maintain NuGet dependencies in sharpmake's csproj
# not ideal because the versions are in the .sharpmake.cs
# but at least we'll get notified
- package-ecosystem: "nuget"
directory: "/Sharpmake"
schedule:
interval: daily
293 changes: 273 additions & 20 deletions .github/workflows/actions.yml

Large diffs are not rendered by default.

14 changes: 2 additions & 12 deletions CompileSharpmake.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@

setlocal enabledelayedexpansion

:: Clear previous run status
COLOR

: set batch file directory as current
pushd "%~dp0"

set VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if not exist %VSWHERE% (
echo ERROR: Cannot determine the location of the vswhere command Common Tools folder.
Expand All @@ -36,7 +30,7 @@ call !VSMSBUILDCMD!
if %errorlevel% NEQ 0 goto error

if "%~1" == "" (
call :BuildSharpmake "Sharpmake.sln" "Debug" "Any CPU"
call :BuildSharpmake "%~dp0Sharpmake.sln" "Debug" "Any CPU"
) else (
call :BuildSharpmake %1 %2 %3
)
Expand All @@ -50,7 +44,7 @@ goto success
:BuildSharpmake
echo Compiling %~1 in "%~2|%~3"...

set MSBUILD_CMD=msbuild -t:build -restore "%~1" /nologo /verbosity:m /p:Configuration="%~2" /p:Platform="%~3"
set MSBUILD_CMD=msbuild -clp:Summary -t:rebuild -restore "%~1" /nologo /verbosity:m /p:Configuration="%~2" /p:Platform="%~3"
echo %MSBUILD_CMD%
%MSBUILD_CMD%
set ERROR_CODE=%errorlevel%
Expand All @@ -62,18 +56,14 @@ goto success

@REM -----------------------------------------------------------------------
:success
COLOR 2F
set ERROR_CODE=0
goto end

@REM -----------------------------------------------------------------------
:error
COLOR 4F
set ERROR_CODE=1
goto end

@REM -----------------------------------------------------------------------
:end
:: restore caller current directory
popd
exit /b %ERROR_CODE%
23 changes: 17 additions & 6 deletions Sharpmake.Application/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ public static void LogWrite(string format, params object[] args)

public static void LogWrite(string message)
{
string prefix = String.Empty;
string prefix = string.Empty;

if (DebugEnable)
{
TimeSpan span = DateTime.Now - s_startTime;
prefix = String.Format("[{0:00}:{1:00}] ", span.Minutes, span.Seconds);
prefix = string.Format("[{0:00}:{1:00}] ", span.Minutes, span.Seconds);
message = prefix + message;
}

Console.Write(message);
if (Debugger.IsAttached)
{
message = message.Replace(prefix + Util.CallerInfoTag, String.Empty);
message = message.Replace(prefix + Util.CallerInfoTag, string.Empty);
Trace.Write(message);
}
}
Expand All @@ -97,7 +97,7 @@ public static void DebugWrite(string message)
{
TimeSpan span = DateTime.Now - s_startTime;

string prefix = String.Format("[{0:00}:{1:00}] ", span.Minutes, span.Seconds);
string prefix = string.Format("[{0:00}:{1:00}] ", span.Minutes, span.Seconds);
message = prefix + message;

Console.Write(message);
Expand Down Expand Up @@ -169,7 +169,18 @@ private static int Main()
{
if (CommandLine.ContainParameter("breakintodebugger"))
{
System.Windows.Forms.MessageBox.Show("Debugger requested. Please attach a debugger and press OK");
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
{
System.Windows.Forms.MessageBox.Show("Debugger requested. Please attach a debugger and press OK");
}
else
{
Console.WriteLine("Debugger requested. Please attach a debugger and press ENTER to continue");
while (Console.ReadKey(true).Key != ConsoleKey.Enter)
{
Console.WriteLine("Press ENTER to continue");
}
}
Debugger.Break();
}
// This GC gives a little bit better results than the other ones. "LowLatency" is giving really bad results(twice slower than the other ones).
Expand Down Expand Up @@ -675,7 +686,7 @@ private static void RecursivePrintMethodInfo(Analyzer.ConfigureMethodInfo method
++nested;
foreach (var dependent in method.Dependents.OrderBy(x => x.Method.ToString()))
{
set.Add(String.Format("[{0}]->[{1}]", dependent, method));
set.Add(string.Format("[{0}]->[{1}]", dependent, method));

if (dependent.Dependents.Any())
RecursivePrintMethodInfo(dependent, set, nested);
Expand Down
2 changes: 1 addition & 1 deletion Sharpmake.Application/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.16.1.0")]
[assembly: AssemblyVersion("0.17.0.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,8 @@ public static void SharpmakeMain(Sharpmake.Arguments arguments)
FastBuildSettings.FastBuildWait = true;
FastBuildSettings.WriteAllConfigsSection = true;

KitsRootPaths.SetUseKitsRootForDevEnv(DevEnv.vs2019, KitsRootEnum.KitsRoot10, Options.Vc.General.WindowsTargetPlatformVersion.v10_0_19041_0);

Bff.UnityResolver = new Bff.FragmentUnityResolver();

arguments.Generate<FastBuildFunctionalTestSolution>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ ObjectList( 'ExplicitlyOrderedPostBuildTest_Debug_FastBuild_NoBlob_vs2019_win64_
.CompilerExtraOptions = ''
// General options
// ---------------------------
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include"'
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\atlmfc\include"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\shared"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\winrt"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt"'
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\include"'
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\atlmfc\include"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\winrt"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt"'
+ ' /Zi'
+ ' /nologo'
+ ' /W4'
Expand Down Expand Up @@ -109,10 +109,10 @@ Executable( 'ExplicitlyOrderedPostBuildTest_Debug_FastBuild_NoBlob_vs2019_win64_
// ---------------------------
+ ' /INCREMENTAL:NO'
+ ' /NOLOGO'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\atlmfc\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\ucrt\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\um\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\atlmfc\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64"'
// Input
// ---------------------------
+ ' "kernel32.lib"'
Expand Down Expand Up @@ -206,6 +206,13 @@ Alias( 'ExplicitlyOrderedPostBuildTest_Debug_FastBuild_NoBlob_vs2019_win64' )
}


//=================================================================================================================
Alias( 'ExplicitlyOrderedPostBuildTest_Debug_FastBuild_NoBlob_vs2019_win64_LibraryDependency' )
{
.Targets = 'ExplicitlyOrderedPostBuildTest_Debug_FastBuild_NoBlob_vs2019_win64_Executable'
}


//=================================================================================================================
ObjectList( 'ExplicitlyOrderedPostBuildTest_Release_FastBuild_NoBlob_vs2019_win64_objects' )
{
Expand All @@ -215,12 +222,12 @@ ObjectList( 'ExplicitlyOrderedPostBuildTest_Release_FastBuild_NoBlob_vs2019_win6
.CompilerExtraOptions = ''
// General options
// ---------------------------
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include"'
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\atlmfc\include"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\shared"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\winrt"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt"'
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\include"'
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\atlmfc\include"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\winrt"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt"'
+ ' /Zi'
+ ' /nologo'
+ ' /W4'
Expand Down Expand Up @@ -297,10 +304,10 @@ Executable( 'ExplicitlyOrderedPostBuildTest_Release_FastBuild_NoBlob_vs2019_win6
// ---------------------------
+ ' /INCREMENTAL:NO'
+ ' /NOLOGO'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\atlmfc\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\ucrt\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\um\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\atlmfc\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64"'
// Input
// ---------------------------
+ ' "kernel32.lib"'
Expand Down Expand Up @@ -394,6 +401,13 @@ Alias( 'ExplicitlyOrderedPostBuildTest_Release_FastBuild_NoBlob_vs2019_win64' )
}


//=================================================================================================================
Alias( 'ExplicitlyOrderedPostBuildTest_Release_FastBuild_NoBlob_vs2019_win64_LibraryDependency' )
{
.Targets = 'ExplicitlyOrderedPostBuildTest_Release_FastBuild_NoBlob_vs2019_win64_Executable'
}


//=================================================================================================================
ObjectList( 'ExplicitlyOrderedPostBuildTest_Debug_FastBuild_vs2019_win64_objects' )
{
Expand All @@ -403,12 +417,12 @@ ObjectList( 'ExplicitlyOrderedPostBuildTest_Debug_FastBuild_vs2019_win64_objects
.CompilerExtraOptions = ''
// General options
// ---------------------------
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include"'
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\atlmfc\include"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\shared"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\winrt"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt"'
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\include"'
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\atlmfc\include"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\winrt"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt"'
+ ' /Zi'
+ ' /nologo'
+ ' /W4'
Expand Down Expand Up @@ -484,10 +498,10 @@ Executable( 'ExplicitlyOrderedPostBuildTest_Debug_FastBuild_vs2019_win64_Executa
// ---------------------------
+ ' /INCREMENTAL:NO'
+ ' /NOLOGO'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\atlmfc\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\ucrt\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\um\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\atlmfc\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64"'
// Input
// ---------------------------
+ ' "kernel32.lib"'
Expand Down Expand Up @@ -581,6 +595,13 @@ Alias( 'ExplicitlyOrderedPostBuildTest_Debug_FastBuild_vs2019_win64' )
}


//=================================================================================================================
Alias( 'ExplicitlyOrderedPostBuildTest_Debug_FastBuild_vs2019_win64_LibraryDependency' )
{
.Targets = 'ExplicitlyOrderedPostBuildTest_Debug_FastBuild_vs2019_win64_Executable'
}


//=================================================================================================================
ObjectList( 'ExplicitlyOrderedPostBuildTest_Release_FastBuild_vs2019_win64_objects' )
{
Expand All @@ -590,12 +611,12 @@ ObjectList( 'ExplicitlyOrderedPostBuildTest_Release_FastBuild_vs2019_win64_objec
.CompilerExtraOptions = ''
// General options
// ---------------------------
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\include"'
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\atlmfc\include"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\shared"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\winrt"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\ucrt"'
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\include"'
+ ' /I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\atlmfc\include"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\winrt"'
+ ' /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt"'
+ ' /Zi'
+ ' /nologo'
+ ' /W4'
Expand Down Expand Up @@ -672,10 +693,10 @@ Executable( 'ExplicitlyOrderedPostBuildTest_Release_FastBuild_vs2019_win64_Execu
// ---------------------------
+ ' /INCREMENTAL:NO'
+ ' /NOLOGO'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29333\atlmfc\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\ucrt\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\um\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30037\atlmfc\lib\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt\x64"'
+ ' /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64"'
// Input
// ---------------------------
+ ' "kernel32.lib"'
Expand Down Expand Up @@ -769,5 +790,12 @@ Alias( 'ExplicitlyOrderedPostBuildTest_Release_FastBuild_vs2019_win64' )
}


//=================================================================================================================
Alias( 'ExplicitlyOrderedPostBuildTest_Release_FastBuild_vs2019_win64_LibraryDependency' )
{
.Targets = 'ExplicitlyOrderedPostBuildTest_Release_FastBuild_vs2019_win64_Executable'
}


#endif // WIN64
////////////////////////////////////////////////////////////////////////////////
Loading

0 comments on commit 5354c1a

Please sign in to comment.