-
Notifications
You must be signed in to change notification settings - Fork 45
/
SCsub
45 lines (38 loc) · 2.14 KB
/
SCsub
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import os
import generate_templates
Import("env")
java_home = os.environ["JAVA_HOME"]
module_env = env.Clone()
# Generate templates when building the engine.
generate_templates.generate_header_from_files("kt/plugins/godot-intellij-plugin/src/main/resources/template", "src/editor/project/templates.h")
# For header includes
module_env.Append(CPPPATH=["src/"])
# Android
if env["platform"] != "android":
java_include_dirs = [
java_home + "/include",
java_home + "/include/linux",
java_home + "/include/win32",
java_home + "/include/darwin"
]
module_env.Append(CPPPATH=[java_include_dirs])
# Common
module_env.add_source_files(module_env.modules_sources, "register_types.cpp")
module_env.add_source_files(module_env.modules_sources, "src/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/editor/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/editor/project/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/editor/build/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/editor/dialog/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/editor/panel/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/jni/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/binding/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/resource_format/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/language/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/script/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/script/language/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/jvm_wrapper/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/jvm_wrapper/registration/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/jvm_wrapper/bridge/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/jvm_wrapper/memory/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/lifecycle/*.cpp")
module_env.add_source_files(module_env.modules_sources, "src/lifecycle/platforms/*.cpp")