2017-04-03 16:11:38 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
Import('env')
|
2017-08-02 02:46:45 +02:00
|
|
|
Import('env_modules')
|
2017-04-03 16:11:38 +02:00
|
|
|
|
2017-08-02 02:46:45 +02:00
|
|
|
mod_env = env_modules.Clone()
|
|
|
|
mod_env.add_source_files(env.modules_sources, "*.cpp")
|
|
|
|
mod_env.add_source_files(env.modules_sources, "godot/*.cpp")
|
2017-04-03 16:11:38 +02:00
|
|
|
|
2017-08-02 02:46:45 +02:00
|
|
|
mod_env.Append(CPPFLAGS=['-DGDAPI_BUILT_IN'])
|
|
|
|
mod_env.Append(CPPPATH=['#modules/gdnative/'])
|
2017-04-03 16:11:38 +02:00
|
|
|
|
|
|
|
if "platform" in env and env["platform"] == "x11": # there has to be a better solution?
|
2017-08-02 02:46:45 +02:00
|
|
|
mod_env.Append(LINKFLAGS=["-rdynamic"])
|
|
|
|
mod_env.use_ptrcall = True
|