File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Import('env')
5
5
Import ('env_modules' )
6
6
env_module = env_modules .Clone ()
7
7
JS_ENGINE = 'quickjs'
8
+ TOOLS = env .get ('TOOLS' );
8
9
9
10
def open_file (path , mode ):
10
11
if platform .python_version () > '3' :
@@ -41,7 +42,7 @@ if JS_ENGINE == 'quickjs':
41
42
env_module .Append (CPPPATH = ["quickjs/quickjs" ])
42
43
# env_module.Append(CXXFLAGS=["-std=c++20"])
43
44
# env_module.Append(CCFLAGS=["-std=c++20"])
44
- if env [ 'tools' ] :
45
+ if TOOLS :
45
46
env_module .add_source_files (env .modules_sources , 'tools/editor_tools.cpp' )
46
47
env_module .add_source_files (env .modules_sources , 'quickjs/quickjs_builtin_binder.gen.cpp' )
47
48
env_module .add_source_files (env .modules_sources , 'quickjs/*.cpp' )
@@ -60,7 +61,7 @@ sources = [
60
61
'misc/godot.binding_script.gen.cpp' ,
61
62
]
62
63
63
- if env [ 'tools' ] :
64
+ if TOOLS :
64
65
base_text = '/* THIS FILE IS GENERATED DO NOT EDIT */\n #include "editor_tools.h"\n String JavaScriptPlugin::{} = \n {};'
65
66
tool_fns = {"tools/godot.d.ts.gen.cpp" : ("BUILTIN_DECLARATION_TEXT" , dump_text_file_to_cpp ("misc/godot.d.ts" )),
66
67
"tools/tsconfig.json.gen.cpp" : ("TSCONFIG_CONTENT" , dump_text_file_to_cpp ("misc/tsconfig.json" )),
You can’t perform that action at this time.
0 commit comments