diff options
Diffstat (limited to 'modules/gdnative/SCsub')
-rw-r--r-- | modules/gdnative/SCsub | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/modules/gdnative/SCsub b/modules/gdnative/SCsub index ac13319a1d..014c988bd7 100644 --- a/modules/gdnative/SCsub +++ b/modules/gdnative/SCsub @@ -1,14 +1,15 @@ #!/usr/bin/env python Import('env') +Import('env_modules') -env.add_source_files(env.modules_sources, "*.cpp") -env.add_source_files(env.modules_sources, "godot/*.cpp") +mod_env = env_modules.Clone() +mod_env.add_source_files(env.modules_sources, "*.cpp") +mod_env.add_source_files(env.modules_sources, "godot/*.cpp") -env.Append(CPPFLAGS=['-DGDAPI_BUILT_IN']) +mod_env.Append(CPPFLAGS=['-DGDAPI_BUILT_IN']) +mod_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 - -Export('env') + mod_env.Append(LINKFLAGS=["-rdynamic"]) +mod_env.use_ptrcall = True |