diff options
author | Karroffel <therzog@mail.de> | 2017-09-03 12:40:41 +0200 |
---|---|---|
committer | Karroffel <therzog@mail.de> | 2017-09-03 15:28:43 +0200 |
commit | 7878329e6fc828dc7ca0a8300ebdbaa0674a769c (patch) | |
tree | d999d27bc21468571be421d307caae562a3201a6 /modules/gdnative/SCsub | |
parent | 6a08f8288ee53456820817fea70598fa846cea3e (diff) |
merged gdnative and nativescript module
Diffstat (limited to 'modules/gdnative/SCsub')
-rw-r--r-- | modules/gdnative/SCsub | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/gdnative/SCsub b/modules/gdnative/SCsub index 65970d48c1..f386f2b542 100644 --- a/modules/gdnative/SCsub +++ b/modules/gdnative/SCsub @@ -2,12 +2,16 @@ Import('env') -env.add_source_files(env.modules_sources, "*.cpp") -env.add_source_files(env.modules_sources, "godot/*.cpp") +gdn_env = env.Clone() -env.Append(CPPFLAGS=['-DGDAPI_BUILT_IN']) -env.Append(CPPPATH=['#modules/gdnative/']) +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/']) if "platform" in env and env["platform"] == "x11": # there has to be a better solution? env.Append(LINKFLAGS=["-rdynamic"]) + env.use_ptrcall = True |