Initial commit
This commit is contained in:
commit
882ffb2726
15 changed files with 382 additions and 0 deletions
22
SConstruct
Normal file
22
SConstruct
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue