Beispiel #1
0
        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 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);
            }
        }
Beispiel #3
0
 public static void SharpmakeMain(Sharpmake.Arguments args)
 {
     KitsRootPaths.SetKitsRoot10ToHighestInstalledVersion();
     args.Generate <SimpleTestSolution>();
 }