|
@@ -159,27 +159,38 @@ opts = Variables(customs, ARGUMENTS)
|
|
|
|
|
|
# Target build options
|
|
# Target build options
|
|
opts.Add((["platform", "p"], "Target platform (%s)" % "|".join(platform_list), ""))
|
|
opts.Add((["platform", "p"], "Target platform (%s)" % "|".join(platform_list), ""))
|
|
-opts.Add(EnumVariable("target", "Compilation target", "editor", ("editor", "template_release", "template_debug")))
|
|
|
|
-opts.Add(EnumVariable("arch", "CPU architecture", "auto", ["auto"] + architectures, architecture_aliases))
|
|
|
|
|
|
+opts.Add(
|
|
|
|
+ EnumVariable(
|
|
|
|
+ "target", "Compilation target", "editor", ["editor", "template_release", "template_debug"], ignorecase=2
|
|
|
|
+ )
|
|
|
|
+)
|
|
|
|
+opts.Add(EnumVariable("arch", "CPU architecture", "auto", ["auto"] + architectures, architecture_aliases, ignorecase=2))
|
|
opts.Add(BoolVariable("dev_build", "Developer build with dev-only debugging code (DEV_ENABLED)", False))
|
|
opts.Add(BoolVariable("dev_build", "Developer build with dev-only debugging code (DEV_ENABLED)", False))
|
|
opts.Add(
|
|
opts.Add(
|
|
EnumVariable(
|
|
EnumVariable(
|
|
"optimize",
|
|
"optimize",
|
|
"Optimization level (by default inferred from 'target' and 'dev_build')",
|
|
"Optimization level (by default inferred from 'target' and 'dev_build')",
|
|
"auto",
|
|
"auto",
|
|
- ("auto", "none", "custom", "debug", "speed", "speed_trace", "size", "size_extra"),
|
|
|
|
|
|
+ ["auto", "none", "custom", "debug", "speed", "speed_trace", "size", "size_extra"],
|
|
|
|
+ ignorecase=2,
|
|
)
|
|
)
|
|
)
|
|
)
|
|
opts.Add(BoolVariable("debug_symbols", "Build with debugging symbols", False))
|
|
opts.Add(BoolVariable("debug_symbols", "Build with debugging symbols", False))
|
|
opts.Add(BoolVariable("separate_debug_symbols", "Extract debugging symbols to a separate file", False))
|
|
opts.Add(BoolVariable("separate_debug_symbols", "Extract debugging symbols to a separate file", False))
|
|
opts.Add(BoolVariable("debug_paths_relative", "Make file paths in debug symbols relative (if supported)", False))
|
|
opts.Add(BoolVariable("debug_paths_relative", "Make file paths in debug symbols relative (if supported)", False))
|
|
-opts.Add(EnumVariable("lto", "Link-time optimization (production builds)", "none", ("none", "auto", "thin", "full")))
|
|
|
|
|
|
+opts.Add(
|
|
|
|
+ EnumVariable(
|
|
|
|
+ "lto", "Link-time optimization (production builds)", "none", ["none", "auto", "thin", "full"], ignorecase=2
|
|
|
|
+ )
|
|
|
|
+)
|
|
opts.Add(BoolVariable("production", "Set defaults to build Godot for use in production", False))
|
|
opts.Add(BoolVariable("production", "Set defaults to build Godot for use in production", False))
|
|
opts.Add(BoolVariable("threads", "Enable threading support", True))
|
|
opts.Add(BoolVariable("threads", "Enable threading support", True))
|
|
|
|
|
|
# Components
|
|
# Components
|
|
opts.Add(BoolVariable("deprecated", "Enable compatibility code for deprecated and removed features", True))
|
|
opts.Add(BoolVariable("deprecated", "Enable compatibility code for deprecated and removed features", True))
|
|
-opts.Add(EnumVariable("precision", "Set the floating-point precision level", "single", ("single", "double")))
|
|
|
|
|
|
+opts.Add(
|
|
|
|
+ EnumVariable("precision", "Set the floating-point precision level", "single", ["single", "double"], ignorecase=2)
|
|
|
|
+)
|
|
opts.Add(BoolVariable("minizip", "Enable ZIP archive support using minizip", True))
|
|
opts.Add(BoolVariable("minizip", "Enable ZIP archive support using minizip", True))
|
|
opts.Add(BoolVariable("brotli", "Enable Brotli for decompression and WOFF2 fonts support", True))
|
|
opts.Add(BoolVariable("brotli", "Enable Brotli for decompression and WOFF2 fonts support", True))
|
|
opts.Add(BoolVariable("xaudio2", "Enable the XAudio2 audio driver on supported platforms", False))
|
|
opts.Add(BoolVariable("xaudio2", "Enable the XAudio2 audio driver on supported platforms", False))
|
|
@@ -213,7 +224,9 @@ opts.Add(
|
|
)
|
|
)
|
|
opts.Add(BoolVariable("verbose", "Enable verbose output for the compilation", False))
|
|
opts.Add(BoolVariable("verbose", "Enable verbose output for the compilation", False))
|
|
opts.Add(BoolVariable("progress", "Show a progress indicator during compilation", True))
|
|
opts.Add(BoolVariable("progress", "Show a progress indicator during compilation", True))
|
|
-opts.Add(EnumVariable("warnings", "Level of compilation warnings", "all", ("extra", "all", "moderate", "no")))
|
|
|
|
|
|
+opts.Add(
|
|
|
|
+ EnumVariable("warnings", "Level of compilation warnings", "all", ["extra", "all", "moderate", "no"], ignorecase=2)
|
|
|
|
+)
|
|
opts.Add(BoolVariable("werror", "Treat compiler warnings as errors", False))
|
|
opts.Add(BoolVariable("werror", "Treat compiler warnings as errors", False))
|
|
opts.Add("extra_suffix", "Custom extra suffix added to the base filename of all generated binary files", "")
|
|
opts.Add("extra_suffix", "Custom extra suffix added to the base filename of all generated binary files", "")
|
|
opts.Add("object_prefix", "Custom prefix added to the base filename of all generated object files", "")
|
|
opts.Add("object_prefix", "Custom prefix added to the base filename of all generated object files", "")
|