2024-01-09 12:34:24 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
env = SConscript("godot-cpp/SConstruct")
|
|
|
|
|
|
|
|
# For reference:
|
|
|
|
# - CCFLAGS are compilation flags shared between C and C++
|
|
|
|
# - CFLAGS are for C-specific compilation flags
|
|
|
|
# - CXXFLAGS are for C++-specific compilation flags
|
|
|
|
# - CPPFLAGS are for pre-processor flags
|
|
|
|
# - CPPDEFINES are for pre-processor defines
|
|
|
|
# - LINKFLAGS are for linking flags
|
|
|
|
|
2024-05-30 13:55:49 +00:00
|
|
|
# Generate version header.
|
|
|
|
sys.path.append("./limboai")
|
|
|
|
import limboai_version
|
|
|
|
os.chdir("./limboai")
|
|
|
|
limboai_version.generate_module_version_header()
|
|
|
|
os.chdir("..")
|
|
|
|
sys.path.remove("./limboai")
|
|
|
|
|
|
|
|
# Tweak this if you want to use different folders, or more folders, to store your source code in.
|
2024-01-09 12:34:24 +00:00
|
|
|
env.Append(CPPPATH=["limboai/"])
|
2024-05-02 22:21:51 +00:00
|
|
|
env.Append(CPPDEFINES=["LIMBOAI_GDEXTENSION"])
|
2024-01-09 12:34:24 +00:00
|
|
|
sources = Glob("limboai/*.cpp")
|
2024-05-02 22:21:51 +00:00
|
|
|
sources += Glob("limboai/blackboard/*.cpp")
|
|
|
|
sources += Glob("limboai/blackboard/bb_param/*.cpp")
|
|
|
|
sources += Glob("limboai/bt/*.cpp")
|
|
|
|
sources += Glob("limboai/bt/tasks/*.cpp")
|
|
|
|
sources += Glob("limboai/bt/tasks/blackboard/*.cpp")
|
|
|
|
sources += Glob("limboai/bt/tasks/composites/*.cpp")
|
|
|
|
sources += Glob("limboai/bt/tasks/decorators/*.cpp")
|
|
|
|
sources += Glob("limboai/bt/tasks/scene/*.cpp")
|
|
|
|
sources += Glob("limboai/bt/tasks/utility/*.cpp")
|
|
|
|
sources += Glob("limboai/gdextension/*.cpp")
|
|
|
|
sources += Glob("limboai/editor/debugger/*.cpp")
|
|
|
|
sources += Glob("limboai/editor/*.cpp")
|
|
|
|
sources += Glob("limboai/hsm/*.cpp")
|
|
|
|
sources += Glob("limboai/util/*.cpp")
|
2024-01-09 12:34:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
if env["platform"] == "macos":
|
|
|
|
library = env.SharedLibrary(
|
2024-01-11 19:16:00 +00:00
|
|
|
"demo/addons/limboai/bin/liblimboai.{}.{}.framework/liblimboai.{}.{}".format(
|
2024-01-09 12:34:24 +00:00
|
|
|
env["platform"], env["target"], env["platform"], env["target"]
|
|
|
|
),
|
|
|
|
source=sources,
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
library = env.SharedLibrary(
|
2024-01-09 21:58:22 +00:00
|
|
|
"demo/addons/limboai/bin/liblimboai{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),
|
2024-01-09 12:34:24 +00:00
|
|
|
source=sources,
|
|
|
|
)
|
|
|
|
|
|
|
|
Default(library)
|