aboutsummaryrefslogtreecommitdiff
path: root/modules/gdnative/SCsub
diff options
context:
space:
mode:
authorThomas Herzog2017-08-02 04:16:45 +0200
committerGitHub2017-08-02 04:16:45 +0200
commit66a7763b0ef242f2c2a93b5e974e57bbd793408a (patch)
tree57451c98109968920a84666554ec7eaae216d916 /modules/gdnative/SCsub
parentee3530bdc29c5015f276e3c44a68fbf4db5daf6e (diff)
parent880048377de06c7e34cbfadd68bad2eb3ca17b3d (diff)
downloadgodot-66a7763.tar.gz
godot-66a7763.tar.zst
godot-66a7763.zip
Merge pull request #10032 from karroffel/gdnative-header-include-paths
[GDNative] better header include paths
Diffstat (limited to 'modules/gdnative/SCsub')
-rw-r--r--modules/gdnative/SCsub15
1 files changed, 8 insertions, 7 deletions
diff --git a/modules/gdnative/SCsub b/modules/gdnative/SCsub
index ac13319a1..014c988bd 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