mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
c143f86968
The _init call was buggy anyway and in the end shouldn't be a
thing that's called via ClassDB, it should be something that's
language specific, so we leave this out for the bindings.
In the commit 66a7763
the SCsub file for GDNative was changed to
use a cloned environment, that bricked -rdynamic which needs to be
passed down to the linker, which didn't happen with the new env.
14 lines
384 B
Python
14 lines
384 B
Python
#!/usr/bin/env python
|
|
|
|
Import('env')
|
|
|
|
env.add_source_files(env.modules_sources, "*.cpp")
|
|
env.add_source_files(env.modules_sources, "godot/*.cpp")
|
|
|
|
env.Append(CPPFLAGS=['-DGDAPI_BUILT_IN'])
|
|
env.Append(CPPPATH=['#modules/gdnative/'])
|
|
|
|
if "platform" in env and env["platform"] == "x11": # there has to be a better solution?
|
|
env.Append(LINKFLAGS=["-rdynamic"])
|
|
env.use_ptrcall = True
|