@@ -51,8 +51,6 @@ if JS_ENGINE == "quickjs":
51
51
quickjs_env .Append (CPPPATH = ["thirdparty/quickjs/quickjs" ])
52
52
quickjs_env .Append (CPPPATH = ["thirdparty/quickjs" ])
53
53
quickjs_env .disable_warnings ()
54
- if TOOLS :
55
- quickjs_env .add_source_files (env .modules_sources , "tools/editor_tools.cpp" )
56
54
quickjs_env .add_source_files (env .modules_sources , "thirdparty/quickjs/quickjs_builtin_binder.gen.cpp" )
57
55
quickjs_env .add_source_files (env .modules_sources , "thirdparty/quickjs/*.cpp" )
58
56
@@ -83,19 +81,19 @@ if TOOLS:
83
81
'/* THIS FILE IS GENERATED DO NOT EDIT */\n #include "editor_tools.h"\n String JavaScriptPlugin::{} = \n {};'
84
82
)
85
83
tool_fns = {
86
- "tools /godot.d.ts.gen.cpp" : (
84
+ "editor /godot.d.ts.gen.cpp" : (
87
85
"BUILTIN_DECLARATION_TEXT" ,
88
86
dump_text_file_to_cpp ("misc/godot.d.ts" ),
89
87
),
90
- "tools /tsconfig.json.gen.cpp" : (
88
+ "editor /tsconfig.json.gen.cpp" : (
91
89
"TSCONFIG_CONTENT" ,
92
90
dump_text_file_to_cpp ("misc/tsconfig.json" ),
93
91
),
94
- "tools /decorators.ts.gen.cpp" : (
92
+ "editor /decorators.ts.gen.cpp" : (
95
93
"TS_DECORATORS_CONTENT" ,
96
94
dump_text_file_to_cpp ("misc/decorators.ts" ),
97
95
),
98
- "tools /package.json.gen.cpp" : (
96
+ "editor /package.json.gen.cpp" : (
99
97
"PACKAGE_JSON_CONTENT" ,
100
98
dump_text_file_to_cpp ("misc/package.json" ),
101
99
),
@@ -108,3 +106,6 @@ if TOOLS:
108
106
109
107
env_module .Append (CPPPATH = ["#modules/javascript" ])
110
108
env_module .add_source_files (env .modules_sources , sources )
109
+
110
+ if env .editor_build :
111
+ env_module .add_source_files (env .modules_sources , "editor/*.cpp" )
0 commit comments