-
Notifications
You must be signed in to change notification settings - Fork 0
/
SCsub
40 lines (30 loc) · 1.04 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
#!/usr/bin/env python
Import("env")
Import("env_modules")
env_daslang = env_modules.Clone()
import subprocess
import os
DASLANG_PATH = "daScript" # if changing this, be sure to disable downloading submodule
DASLANG_LIB_PATH = "lib/liblibDaScript.a"
DASLANG_INCLUDE_PATH = f"{DASLANG_PATH}/include"
src_list = [
"register_types.cpp",
"src/godot_types_gen.cpp",
"src/godot_types_aliases.cpp",
"src/godot_types_extra.cpp",
"src/godot_functions_gen.cpp",
"src/godot_functions_extra.cpp",
"src/godot_utils.cpp",
"src/init_daslang.cpp",
"src/das_script.cpp",
"src/das_script_language.cpp",
"src/das_script_instance.cpp",
"src/das_resource_io.cpp",
]
if "DEV_ENABLED" in env["CPPDEFINES"]:
src_list.append("src/generate_bindings.cpp")
env_daslang.Append(CCFLAGS=["-w"]) # TODO suspend only warnings in Daslang headers
env_daslang.Append(CPPPATH=["src", DASLANG_INCLUDE_PATH])
env_daslang.add_source_files(env.modules_sources, src_list)
daslang_lib = File(DASLANG_LIB_PATH)
env.Append(LIBS=[daslang_lib])