2017-04-03 16:11:38 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
|
2017-09-03 12:40:41 +02:00
|
|
|
gdn_env = env.Clone()
|
2017-04-03 16:11:38 +02:00
|
|
|
|
2017-09-03 12:40:41 +02: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 16:11:38 +02:00
|
|
|
|
|
|
|
if "platform" in env and env["platform"] == "x11": # there has to be a better solution?
|
2017-08-02 14:21:12 +02:00
|
|
|
env.Append(LINKFLAGS=["-rdynamic"])
|
2017-09-03 12:40:41 +02:00
|
|
|
|
2017-08-02 14:21:12 +02:00
|
|
|
env.use_ptrcall = True
|