Skip to content

Commit

Permalink
Add s7 submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
bamboo committed Nov 18, 2024
1 parent 70938ff commit d88ceec
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
path = godot-cpp
url = https://github.com/godotengine/godot-cpp.git
branch = 4.0
[submodule "s7"]
path = s7
url = https://github.com/bamboo/s7.git
15 changes: 13 additions & 2 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,19 @@ Run the following command to download godot-cpp:

env = SConscript("godot-cpp/SConstruct", {"env": env, "customs": customs})

env.Append(CPPPATH=["src/"])
sources = Glob("src/*.cpp")
env.Append(
CPPPATH=["src/", "s7/"],
CPPDEFINES={
"DISABLE_DEPRECATED": "1",
"DISABLE_AUTOLOAD": "1",
"WITH_C_LOADER": "0",
"WITH_MULTITHREAD_CHECKS": "0"
}
)
sources = [
Glob("src/*.cpp"),
Glob("s7/s7.c")
]

if env["target"] in ["editor", "template_debug"]:
try:
Expand Down
1 change: 1 addition & 0 deletions s7
Submodule s7 added at 8521f2

0 comments on commit d88ceec

Please sign in to comment.