diff options
Diffstat (limited to 'modules/gdnative/nativescript/SCsub')
| -rw-r--r-- | modules/gdnative/nativescript/SCsub | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/gdnative/nativescript/SCsub b/modules/gdnative/nativescript/SCsub new file mode 100644 index 0000000000..ee3b9c351d --- /dev/null +++ b/modules/gdnative/nativescript/SCsub @@ -0,0 +1,12 @@ +#!/usr/bin/env python + +Import('env') + +mod_env = env.Clone() +mod_env.add_source_files(env.modules_sources, "*.cpp") +mod_env.Append(CPPFLAGS=['-DGDAPI_BUILT_IN']) + +if "platform" in env and env["platform"] in ["x11", "iphone"]: + env.Append(LINKFLAGS=["-rdynamic"]) + +Export('mod_env') |