2017-04-03 22:11:38 +08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2020-03-30 14:28:32 +08:00
|
|
|
Import("env")
|
|
|
|
Import("env_modules")
|
2017-04-03 22:11:38 +08:00
|
|
|
|
2018-09-28 19:29:52 +08: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 18:40:41 +08:00
|
|
|
|
2020-03-30 14:28:32 +08:00
|
|
|
env_gdnative.Prepend(CPPPATH=["#modules/gdnative/include/"])
|
2018-09-28 19:29:52 +08:00
|
|
|
|
2020-03-30 14:28:32 +08:00
|
|
|
Export("env_gdnative")
|
2017-04-03 22:11:38 +08:00
|
|
|
|
2018-06-27 02:26:51 +08:00
|
|
|
SConscript("net/SCsub")
|
2020-04-08 22:47:36 +08:00
|
|
|
SConscript("xr/SCsub")
|
2017-10-09 05:47:38 +08:00
|
|
|
SConscript("pluginscript/SCsub")
|
2018-07-29 04:01:30 +08:00
|
|
|
SConscript("videodecoder/SCsub")
|
2020-08-12 19:07:49 +08:00
|
|
|
SConscript("text/SCsub")
|
2017-10-07 21:51:17 +08:00
|
|
|
|
2018-09-28 19:29:52 +08:00
|
|
|
|
2018-03-18 06:23:55 +08:00
|
|
|
import gdnative_builders
|
2017-10-03 11:23:05 +08:00
|
|
|
|
2020-03-30 14:28:32 +08:00
|
|
|
_, gensource = env_gdnative.CommandNoCache(
|
|
|
|
["include/gdnative_api_struct.gen.h", "gdnative_api_struct.gen.cpp"],
|
|
|
|
"gdnative_api.json",
|
2020-07-28 02:00:26 +08:00
|
|
|
env.Run(gdnative_builders.build_gdnative_api_struct, "Generating GDNative API."),
|
2020-03-30 14:28:32 +08:00
|
|
|
)
|
2018-09-28 19:29:52 +08:00
|
|
|
env_gdnative.add_source_files(env.modules_sources, [gensource])
|