2017-04-03 14:11:38 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
Import('env')
|
2018-09-28 11:29:52 +00:00
|
|
|
Import('env_modules')
|
2017-04-03 14:11:38 +00:00
|
|
|
|
2018-09-28 11:29:52 +00:00
|
|
|
env_gdnative = env_modules.Clone()
|
|
|
|
env_gdnative.add_source_files(env.modules_sources, "gdnative.cpp")
|
|
|
|
env_gdnative.add_source_files(env.modules_sources, "register_types.cpp")
|
|
|
|
env_gdnative.add_source_files(env.modules_sources, "android/*.cpp")
|
|
|
|
env_gdnative.add_source_files(env.modules_sources, "gdnative/*.cpp")
|
|
|
|
env_gdnative.add_source_files(env.modules_sources, "nativescript/*.cpp")
|
|
|
|
env_gdnative.add_source_files(env.modules_sources, "gdnative_library_singleton_editor.cpp")
|
|
|
|
env_gdnative.add_source_files(env.modules_sources, "gdnative_library_editor_plugin.cpp")
|
2017-09-03 10:40:41 +00:00
|
|
|
|
2019-04-30 11:12:02 +00:00
|
|
|
env_gdnative.Prepend(CPPPATH=['#modules/gdnative/include/'])
|
2018-09-28 11:29:52 +00:00
|
|
|
|
|
|
|
Export('env_gdnative')
|
2017-04-03 14:11:38 +00:00
|
|
|
|
2018-06-26 18:26:51 +00:00
|
|
|
SConscript("net/SCsub")
|
2017-11-10 11:36:50 +00:00
|
|
|
SConscript("arvr/SCsub")
|
2017-10-08 21:47:38 +00:00
|
|
|
SConscript("pluginscript/SCsub")
|
2018-07-28 20:01:30 +00:00
|
|
|
SConscript("videodecoder/SCsub")
|
2017-10-07 13:51:17 +00:00
|
|
|
|
2018-09-28 11:29:52 +00:00
|
|
|
|
2018-03-17 22:23:55 +00:00
|
|
|
from platform_methods import run_in_subprocess
|
|
|
|
import gdnative_builders
|
2017-10-03 03:23:05 +00:00
|
|
|
|
2018-09-28 11:29:52 +00:00
|
|
|
_, gensource = env_gdnative.CommandNoCache(['include/gdnative_api_struct.gen.h', 'gdnative_api_struct.gen.cpp'],
|
2018-03-17 22:23:55 +00:00
|
|
|
'gdnative_api.json', run_in_subprocess(gdnative_builders.build_gdnative_api_struct))
|
2018-09-28 11:29:52 +00:00
|
|
|
env_gdnative.add_source_files(env.modules_sources, [gensource])
|
2017-10-03 03:23:05 +00:00
|
|
|
|
2017-08-02 12:21:12 +00:00
|
|
|
env.use_ptrcall = True
|