public static void SharpmakeMain(Sharpmake.Arguments arguments) { KitsRootPaths.SetUseKitsRootForDevEnv(DevEnv.vs2017, KitsRootEnum.KitsRoot10, Options.Vc.General.WindowsTargetPlatformVersion.v10_0_17763_0); KitsRootPaths.SetUseKitsRootForDevEnv(DevEnv.vs2019, KitsRootEnum.KitsRoot10, Options.Vc.General.WindowsTargetPlatformVersion.v10_0_19041_0); arguments.Generate <TheSolution>(); }
public static void SharpmakeMain(Sharpmake.Arguments arguments) { CommandLine.ExecuteOnType(typeof(FunctionalTestArguments)); FileInfo fileInfo = Util.GetCurrentSharpmakeFileInfo(); string sharpmakeRootDirectory = Util.SimplifyPath(Path.Combine(fileInfo.DirectoryName, "..", "..")); FastBuildSettings.FastBuildMakeCommand = Path.Combine(sharpmakeRootDirectory, @"tools\FastBuild\Windows-x64\FBuild.exe"); FastBuildSettings.FastBuildWait = true; FastBuildSettings.WriteAllConfigsSection = true; // This is just to insure that we are able to generate some custom property section when referenced from a Compiler section FastBuildSettings.AdditionalPropertyGroups.Add("function TestCustomProperties()", new List <string> { "Print('Hello Custom Property')", "Print('Hello Custom Property2')" }); FastBuildSettings.AdditionalCompilerPropertyGroups.Add("Compiler-x64-vs2019", "function TestCustomProperties()"); FastBuildSettings.AdditionalCompilerSettings.Add("Compiler-x64-vs2019", new List <string> { "TestCustomProperties()" }); KitsRootPaths.SetUseKitsRootForDevEnv(DevEnv.vs2019, KitsRootEnum.KitsRoot10, Options.Vc.General.WindowsTargetPlatformVersion.v10_0_19041_0); Bff.UnityResolver = new Bff.FragmentUnityResolver(); arguments.Generate <FastBuildFunctionalTestSolution>(); }
public static void SharpmakeMain(Sharpmake.Arguments arguments) { FastBuildSettings.FastBuildMakeCommand = @"..\..\..\tools\FastBuild\Windows-x64\FBuild.exe"; KitsRootPaths.SetUseKitsRootForDevEnv(DevEnv.vs2017, KitsRootEnum.KitsRoot10, Options.Vc.General.WindowsTargetPlatformVersion.v10_0_17763_0); arguments.Generate <CustomBuildStepSolution>(); }
public static void SharpmakeMain(Arguments arguments) { // Generally you should only generate either for projets or solution but this is a sample so we do both ;) arguments.Builder.EventPostProjectLink += GenerateProjectDatabase; arguments.Builder.EventPostSolutionLink += GenerateSolutionDatabase; KitsRootPaths.SetUseKitsRootForDevEnv(DevEnv.vs2017, KitsRootEnum.KitsRoot10, Options.Vc.General.WindowsTargetPlatformVersion.v10_0_17763_0); arguments.Generate <MainSolution>(); }
public static void SharpmakeMain(Sharpmake.Arguments arguments) { ConfigureQt5Directory(); FastBuildSettings.FastBuildMakeCommand = @"\tools\FastBuild\start-fbuild.bat"; KitsRootPaths.SetUseKitsRootForDevEnv(DevEnv.vs2017, KitsRootEnum.KitsRoot10, Options.Vc.General.WindowsTargetPlatformVersion.v10_0_17763_0); arguments.Generate <QTFileCustomBuildSolution>(); }
public static void SharpmakeMain(Arguments arguments) { var cmdLine = new Parameters(); CommandLine.ExecuteOnObject(cmdLine); KitsRootPaths.SetKitsRoot10ToHighestInstalledVersion(); // important this happens after command line processing Globals.SharpmakeToGlobalRoot += @"\.."; arguments.Generate <AOCSolution>(); }
public void ConfigureAll(Configuration conf, Target target) { // Sets proper Windows Kits version KitsRootPaths.SetUseKitsRootForDevEnv( target.DevEnv, KitsRootEnum.KitsRoot10, Options.Vc.General.WindowsTargetPlatformVersion.v10_0_19041_0); conf.SolutionFileName = "[solution.Name]"; conf.SolutionPath = @"[solution.SharpmakeCsPath]\..\..\"; conf.AddProject <AmigoEngine>(target); conf.AddProject <ShaderCompiler>(target); }
public static void SharpmakeMain(Arguments arguments) { FileInfo fileInfo = Util.GetCurrentSharpmakeFileInfo(); string sharpmakeRootDirectory = Util.SimplifyPath(Path.Combine(fileInfo.DirectoryName, "..", "..")); FastBuildSettings.FastBuildMakeCommand = Path.Combine(sharpmakeRootDirectory, @"tools\FastBuild\Windows-x64\FBuild.exe"); 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 <NoAllFastBuildProjectFunctionalTestSolution>(); }
public static void SharpmakeMain(Sharpmake.Arguments arguments) { FileInfo sharpmakeFileInfo = Util.GetCurrentSharpmakeFileInfo(); string sharpmakeFileDirectory = Util.PathMakeStandard(sharpmakeFileInfo.DirectoryName); string absoluteRootPath = Util.PathGetAbsolute(sharpmakeFileDirectory, @"..\tmp"); KitsRootPaths.SetUseKitsRootForDevEnv(DevEnv.vs2019, KitsRootEnum.KitsRoot10, Options.Vc.General.WindowsTargetPlatformVersion.v10_0_19041_0); // This is necessary since there is no rc.exe in the same directory than link.exe FastBuildSettings.SetPathToResourceCompilerInEnvironment = true; FastBuildSettings.FastBuildMakeCommand = Util.PathGetAbsolute(sharpmakeFileDirectory, @"..\..\..\tools\FastBuild\Windows-x64\FBuild.exe"); Util.FilesAutoCleanupDBPath = absoluteRootPath; Util.FilesAutoCleanupActive = true; arguments.Generate <VCPKGSampleSolution>(); }
public static void SharpmakeMain(Sharpmake.Arguments arguments) { ConfigureRootDirectory(); // for the purpose of this sample, we'll reuse the FastBuild executable that live in the sharpmake source repo string sharpmakeFastBuildDir = Util.PathGetAbsolute(Globals.RootDirectory, @"..\..\..\tools\FastBuild"); FastBuildSettings.FastBuildMakeCommand = Path.Combine(sharpmakeFastBuildDir, "Windows-x64", "FBuild.exe"); // This is necessary since there is no rc.exe in the same directory than link.exe FastBuildSettings.SetPathToResourceCompilerInEnvironment = true; KitsRootPaths.SetUseKitsRootForDevEnv(DevEnv.vs2019, KitsRootEnum.KitsRoot10, Options.Vc.General.WindowsTargetPlatformVersion.v10_0_19041_0); arguments.Generate <FastBuildSolution>(); }
public static void SharpmakeMain(Sharpmake.Arguments arguments) { ConfigureRootDirectory(); ConfigureAutoCleanup(); FastBuildSettings.FastBuildWait = true; FastBuildSettings.FastBuildSummary = false; FastBuildSettings.FastBuildNoSummaryOnError = true; FastBuildSettings.FastBuildDistribution = false; FastBuildSettings.FastBuildMonitor = true; FastBuildSettings.FastBuildAllowDBMigration = true; FastBuildSettings.SetPathToResourceCompilerInEnvironment = true; KitsRootPaths.SetKitsRoot10ToHighestInstalledVersion(DevEnv.vs2019); // for the purpose of this sample, we'll reuse the FastBuild executables that live in the sharpmake source repo string sharpmakeFastBuildDir = Util.PathGetAbsolute(Globals.RootDirectory, @"..\..\..\tools\FastBuild"); switch (Util.GetExecutingPlatform()) { case Platform.linux: FastBuildSettings.FastBuildMakeCommand = Path.Combine(sharpmakeFastBuildDir, "Linux-x64", "fbuild"); break; case Platform.mac: FastBuildSettings.FastBuildMakeCommand = Path.Combine(sharpmakeFastBuildDir, "OSX-x64", "FBuild"); break; case Platform.win64: default: FastBuildSettings.FastBuildMakeCommand = Path.Combine(sharpmakeFastBuildDir, "Windows-x64", "FBuild.exe"); break; } Bff.UnityResolver = new Bff.FragmentUnityResolver(); foreach (Type solutionType in Assembly.GetExecutingAssembly().GetTypes().Where(t => !t.IsAbstract && t.IsSubclassOf(typeof(CommonSolution)))) { arguments.Generate(solutionType); } }
public static void SharpmakeMain(Sharpmake.Arguments arguments) { KitsRootPaths.SetUseKitsRootForDevEnv(DevEnv.vs2019, KitsRootEnum.KitsRoot10, Options.Vc.General.WindowsTargetPlatformVersion.Latest); arguments.Generate <MimaxSolution>(); }
public void Test_NETFXKitsDir_is_not_null_for_new_frameworks() { Assert.IsNotNull(KitsRootPaths.GetNETFXKitsDir(DotNetFramework.v4_6)); Assert.IsNotNull(KitsRootPaths.GetNETFXKitsDir(DotNetFramework.v4_6_1)); Assert.IsNotNull(KitsRootPaths.GetNETFXKitsDir(DotNetFramework.v4_6_2)); }
public void Test_NETFXKitsDir_throws_for_old_frameworks() { Assert.Throws <NotImplementedException>(() => KitsRootPaths.GetNETFXKitsDir(DotNetFramework.v3)); Assert.Throws <NotImplementedException>(() => KitsRootPaths.GetNETFXKitsDir(DotNetFramework.v4_0)); Assert.Throws <NotImplementedException>(() => KitsRootPaths.GetNETFXKitsDir(DotNetFramework.v4_5)); }
public static void SharpmakeMain(Sharpmake.Arguments args) { KitsRootPaths.SetKitsRoot10ToHighestInstalledVersion(); args.Generate <SimpleTestSolution>(); }
public static void SharpmakeMain(Arguments sharpmakeArgs) { //ClangForWindows.Settings.LLVMInstallDir = @"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\Llvm"; KitsRootPaths.SetUseKitsRootForDevEnv(DevEnv.vs2019, KitsRootEnum.KitsRoot10, Options.Vc.General.WindowsTargetPlatformVersion.v10_0_18362_0); sharpmakeArgs.Generate <NeuroamSolution>(); }