50 lines
1.7 KiB
Python
50 lines
1.7 KiB
Python
|
#!/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
|
||
|
|
||
|
# tweak this if you want to use different folders, or more folders, to store your source code in.
|
||
|
env.Append(CPPPATH=["limboai/"])
|
||
|
env.Append(CPPDEFINES = ['LIMBOAI_GDEXTENSION'])
|
||
|
sources = Glob("limboai/*.cpp")
|
||
|
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/editor/*.cpp"))
|
||
|
sources += (Glob("limboai/editor/debugger/behavior_tree_data.cpp"))
|
||
|
sources += (Glob("limboai/editor/debugger/behavior_tree_view.cpp"))
|
||
|
sources += (Glob("limboai/editor/debugger/limbo_debugger.cpp"))
|
||
|
sources += (Glob("limboai/hsm/*.cpp"))
|
||
|
sources += (Glob("limboai/util/*.cpp"))
|
||
|
|
||
|
|
||
|
if env["platform"] == "macos":
|
||
|
library = env.SharedLibrary(
|
||
|
"demo/bin/liblimboai.{}.{}.framework/liblimboai.{}.{}".format(
|
||
|
env["platform"], env["target"], env["platform"], env["target"]
|
||
|
),
|
||
|
source=sources,
|
||
|
)
|
||
|
else:
|
||
|
library = env.SharedLibrary(
|
||
|
"demo/bin/liblimboai{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),
|
||
|
source=sources,
|
||
|
)
|
||
|
|
||
|
Default(library)
|