GDExtensionTemplate/gdextension/SConstruct

16 lines
363 B
Python
Raw Normal View History

env = SConscript("godot-cpp/SConstruct")
env.Append(CPPPATH="src/")
src = Glob("src/*.cpp")
if env["platform"] == "linux":
libpath = "../build/libtest{}{}".format( env["suffix"], env["SHLIBSUFFIX"] )
sharedlib = env.SharedLibrary(libpath, src)
elif env["platform"] == "windows":
pass
elif env["platform"] == "android":
pass
Default(sharedlib)