25 lines
917 B
Python
25 lines
917 B
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=["src/"])
|
|
sources = Glob("src/*.cpp")
|
|
|
|
try:
|
|
Documentation = env.GodotCPPDocData("src/gen/doc_data.gen.cpp", source=Glob("docs/*.xml"))
|
|
sources.append(Documentation)
|
|
except AttributeError:
|
|
print("Dear friends! Make sure to have Godot Engine be 4.4 or higher for integrated documentation!")
|
|
|
|
Default(env.SharedLibrary("demo/bin/TwinStick2DShootEmUp{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),source=sources,))
|