File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -7,22 +7,21 @@ options: list = [
77 name = "FTS5" ,
88 help = "Enable SQLite's FTS5 extension which provides full-test search functionality to database applications" ,
99 define = "SQLITE_ENABLE_FTS5" ,
10- default = False ,
1110 ),
1211 CompileTimeOption (
1312 key = "enable_math_functions" ,
1413 name = "MATH_FUNCTIONS" ,
1514 help = "Enable SQLite's Built-in Mathematical SQL Functions" ,
1615 define = "SQLITE_ENABLE_MATH_FUNCTIONS" ,
17- default = False ,
1816 ),
1917]
2018
2119target_path = ARGUMENTS .pop ("target_path" , "demo/addons/godot-sqlite/bin/" )
2220target_name = ARGUMENTS .pop ("target_name" , "libgdsqlite" )
23- parsed_options = {x .key : ARGUMENTS .pop (x .key , x .default ) for x in options }
2421
22+ parsed_options = {x .key : ARGUMENTS .pop (x .key ) for x in options if x .key in ARGUMENTS }
2523env = SConscript ("godot-cpp/SConstruct" )
24+ ARGUMENTS .update (parsed_options )
2625
2726env_vars = Variables ()
2827option : CompileTimeOption
@@ -52,7 +51,7 @@ if env["target"] in ["editor", "template_debug"]:
5251
5352option : CompileTimeOption
5453for option in options :
55- if parsed_options [option .key ]:
54+ if env [option .key ]:
5655 print (f"{ option .name } is enabled." )
5756 env .Append (CPPDEFINES = [option .define ])
5857 else :
Original file line number Diff line number Diff line change 44class CompileTimeOption :
55 key : str
66 name : str
7- default : bool
87 help : str
98 define : str
You can’t perform that action at this time.
0 commit comments