2017-10-02 23:24:00 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2019-07-03 09:44:53 +02:00
|
|
|
import build_scripts.mono_configure as mono_configure
|
|
|
|
|
2020-03-30 08:28:32 +02:00
|
|
|
Import("env")
|
|
|
|
Import("env_modules")
|
2017-12-12 16:18:55 +01:00
|
|
|
|
|
|
|
env_mono = env_modules.Clone()
|
2017-10-02 23:24:00 +02:00
|
|
|
|
2019-03-01 21:51:20 +01:00
|
|
|
# Configure Mono
|
2017-10-02 23:24:00 +02:00
|
|
|
|
2019-03-01 22:00:39 +01:00
|
|
|
mono_configure.configure(env, env_mono)
|
2017-10-24 22:47:27 +02:00
|
|
|
|
2019-08-26 17:46:57 +02:00
|
|
|
# Add sources
|
|
|
|
|
2020-03-30 08:28:32 +02:00
|
|
|
env_mono.add_source_files(env.modules_sources, "*.cpp")
|
|
|
|
env_mono.add_source_files(env.modules_sources, "glue/*.cpp")
|
|
|
|
env_mono.add_source_files(env.modules_sources, "mono_gd/*.cpp")
|
|
|
|
env_mono.add_source_files(env.modules_sources, "utils/*.cpp")
|
2019-08-26 17:46:57 +02:00
|
|
|
|
2020-03-18 17:40:04 +01:00
|
|
|
env_mono.add_source_files(env.modules_sources, "mono_gd/support/*.cpp")
|
|
|
|
|
2022-07-20 08:28:22 +02:00
|
|
|
if env["platform"] in ["macos", "ios"]:
|
2020-03-18 17:40:04 +01:00
|
|
|
env_mono.add_source_files(env.modules_sources, "mono_gd/support/*.mm")
|
|
|
|
env_mono.add_source_files(env.modules_sources, "mono_gd/support/*.m")
|
2021-10-16 15:53:08 +02:00
|
|
|
elif env["platform"] == "android":
|
|
|
|
env_mono.add_source_files(env.modules_sources, "mono_gd/android_mono_config.gen.cpp")
|
2020-03-18 17:40:04 +01:00
|
|
|
|
2020-03-30 08:28:32 +02:00
|
|
|
if env["tools"]:
|
|
|
|
env_mono.add_source_files(env.modules_sources, "editor/*.cpp")
|
2022-03-28 15:48:38 +02:00
|
|
|
SConscript("editor/script_templates/SCsub")
|