Initial commit

This commit is contained in:
Patrick 2023-08-06 00:42:21 +02:00
commit 882ffb2726
15 changed files with 382 additions and 0 deletions

22
SConstruct Normal file
View file

@ -0,0 +1,22 @@
#!/usr/bin/env python
libname = "EXTENSION-NAME"
env = SConscript("godot-cpp/SConstruct")
env.Append(CPPPATH=["src/"])
sources = Glob("src/*.cpp")
if env["platform"] == "macos":
platlibname = "{}.{}.{}".format(libname, env["platform"], env["target"])
library = env.SharedLibrary(
"bin/{}.framework/{}".format(platlibname, platlibname),
source=sources,
)
else:
library = env.SharedLibrary(
"bin/{}{}{}".format(libname, env["suffix"], env["SHLIBSUFFIX"]),
source=sources,
)
Default(library)