[GDNative] better header include paths

The old include paths caused some problems on some compilers, for
example including "string.h" was ambiguous.
This commit is contained in:
Karroffel
2017-08-02 02:46:45 +02:00
parent 3a3915b726
commit 880048377d
39 changed files with 137 additions and 113 deletions

View File

@@ -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