2017-04-03 14:11:38 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
|
2017-09-03 10:40:41 +00:00
|
|
|
gdn_env = env.Clone()
|
2017-04-03 14:11:38 +00:00
|
|
|
|
2017-09-03 10:40:41 +00:00
|
|
|
gdn_env.add_source_files(env.modules_sources, "*.cpp")
|
|
|
|
gdn_env.add_source_files(env.modules_sources, "gdnative/*.cpp")
|
|
|
|
gdn_env.add_source_files(env.modules_sources, "nativescript/*.cpp")
|
|
|
|
|
|
|
|
gdn_env.Append(CPPFLAGS=['-DGDAPI_BUILT_IN'])
|
|
|
|
gdn_env.Append(CPPPATH=['#modules/gdnative/include/'])
|
2017-04-03 14:11:38 +00:00
|
|
|
|
2017-09-04 13:10:03 +00:00
|
|
|
if "platform" in env and env["platform"] in ["x11", "iphone"]:
|
2017-08-02 12:21:12 +00:00
|
|
|
env.Append(LINKFLAGS=["-rdynamic"])
|
2017-09-03 10:40:41 +00:00
|
|
|
|
2017-08-02 12:21:12 +00:00
|
|
|
env.use_ptrcall = True
|