GameBundle/GameBundle/Options.cs

29 lines
1.5 KiB
C#
Raw Normal View History

2020-04-09 18:06:01 +02:00
using System.Collections.Generic;
using CommandLine;
namespace GameBundle {
public class Options {
2020-04-09 18:30:30 +02:00
[Option('s', "source", HelpText = "The location of the .csproj file that should be built and bundled. By default, the current directory is scanned for one")]
2020-04-09 18:06:01 +02:00
public string SourceFile { get; set; }
2020-04-09 18:30:30 +02:00
[Option('o', "output", Default = "bin/Bundled", HelpText = "The location of the directory that the bundles should be stored in")]
2020-04-09 18:06:01 +02:00
public string OutputDirectory { get; set; }
[Option('v', "verbose", Default = false)]
public bool Verbose { get; set; }
[Option('w', "win", Default = true, HelpText = "Bundle for windows")]
public bool BundleWindows { get; set; }
[Option('l', "linux", Default = true, HelpText = "Bundle for linux")]
public bool BundleLinux { get; set; }
[Option('m', "mac", Default = true, HelpText = "Bundle for mac")]
public bool BundleMac { get; set; }
[Option('e', "exclude", Default = new[] {"openal", "oal", "sdl2", "SDL2"}, HelpText = "Files like unmanaged libraries that should not be moved to the /Lib folder")]
public string[] ExcludedFiles { get; set; }
[Option("32bit", Default = false, HelpText = "Publish for 32 bit instead of 64 bit. Note that this is only possible on Windows")]
public bool Publish32Bit { get; set; }
2020-04-09 18:30:30 +02:00
[Option("trim", Default = true, HelpText = "Trim the application when publishing")]
2020-04-09 18:06:01 +02:00
public bool Trim { get; set; }
}
}