@@ -159,27 +159,38 @@ opts = Variables(customs, ARGUMENTS)
159159
160160# Target build options
161161opts .Add ((["platform" , "p" ], "Target platform (%s)" % "|" .join (platform_list ), "" ))
162- opts .Add (EnumVariable ("target" , "Compilation target" , "editor" , ("editor" , "template_release" , "template_debug" )))
163- opts .Add (EnumVariable ("arch" , "CPU architecture" , "auto" , ["auto" ] + architectures , architecture_aliases ))
162+ opts .Add (
163+ EnumVariable (
164+ "target" , "Compilation target" , "editor" , ["editor" , "template_release" , "template_debug" ], ignorecase = 2
165+ )
166+ )
167+ opts .Add (EnumVariable ("arch" , "CPU architecture" , "auto" , ["auto" ] + architectures , architecture_aliases , ignorecase = 2 ))
164168opts .Add (BoolVariable ("dev_build" , "Developer build with dev-only debugging code (DEV_ENABLED)" , False ))
165169opts .Add (
166170 EnumVariable (
167171 "optimize" ,
168172 "Optimization level (by default inferred from 'target' and 'dev_build')" ,
169173 "auto" ,
170- ("auto" , "none" , "custom" , "debug" , "speed" , "speed_trace" , "size" , "size_extra" ),
174+ ["auto" , "none" , "custom" , "debug" , "speed" , "speed_trace" , "size" , "size_extra" ],
175+ ignorecase = 2 ,
171176 )
172177)
173178opts .Add (BoolVariable ("debug_symbols" , "Build with debugging symbols" , False ))
174179opts .Add (BoolVariable ("separate_debug_symbols" , "Extract debugging symbols to a separate file" , False ))
175180opts .Add (BoolVariable ("debug_paths_relative" , "Make file paths in debug symbols relative (if supported)" , False ))
176- opts .Add (EnumVariable ("lto" , "Link-time optimization (production builds)" , "none" , ("none" , "auto" , "thin" , "full" )))
181+ opts .Add (
182+ EnumVariable (
183+ "lto" , "Link-time optimization (production builds)" , "none" , ["none" , "auto" , "thin" , "full" ], ignorecase = 2
184+ )
185+ )
177186opts .Add (BoolVariable ("production" , "Set defaults to build Godot for use in production" , False ))
178187opts .Add (BoolVariable ("threads" , "Enable threading support" , True ))
179188
180189# Components
181190opts .Add (BoolVariable ("deprecated" , "Enable compatibility code for deprecated and removed features" , True ))
182- opts .Add (EnumVariable ("precision" , "Set the floating-point precision level" , "single" , ("single" , "double" )))
191+ opts .Add (
192+ EnumVariable ("precision" , "Set the floating-point precision level" , "single" , ["single" , "double" ], ignorecase = 2 )
193+ )
183194opts .Add (BoolVariable ("minizip" , "Enable ZIP archive support using minizip" , True ))
184195opts .Add (BoolVariable ("brotli" , "Enable Brotli for decompression and WOFF2 fonts support" , True ))
185196opts .Add (BoolVariable ("xaudio2" , "Enable the XAudio2 audio driver on supported platforms" , False ))
@@ -213,7 +224,9 @@ opts.Add(
213224)
214225opts .Add (BoolVariable ("verbose" , "Enable verbose output for the compilation" , False ))
215226opts .Add (BoolVariable ("progress" , "Show a progress indicator during compilation" , True ))
216- opts .Add (EnumVariable ("warnings" , "Level of compilation warnings" , "all" , ("extra" , "all" , "moderate" , "no" )))
227+ opts .Add (
228+ EnumVariable ("warnings" , "Level of compilation warnings" , "all" , ["extra" , "all" , "moderate" , "no" ], ignorecase = 2 )
229+ )
217230opts .Add (BoolVariable ("werror" , "Treat compiler warnings as errors" , False ))
218231opts .Add ("extra_suffix" , "Custom extra suffix added to the base filename of all generated binary files" , "" )
219232opts .Add ("object_prefix" , "Custom prefix added to the base filename of all generated object files" , "" )
0 commit comments