public static void CMake(this ICakeContext context, CMakeSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var runner = new CMakeRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log);

            runner.Run(settings);
        }
Exemple #2
0
        public static void CMake(this ICakeContext context, DirectoryPath sourcePath, CMakeSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var runner = new CMakeRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Globber);

            runner.Run(sourcePath, settings);
        }
        public static void CMake(this ICakeContext context, DirectoryPath sourcePath, CMakeSettings settings)
        {
            settings.SourcePath = sourcePath ?? settings.SourcePath;

            context.CMake(settings);
        }