2016-10-17 08:50:25 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2020-03-30 08:28:32 +02:00
|
|
|
Import("env")
|
|
|
|
Import("env_modules")
|
2014-02-24 13:53:33 +01:00
|
|
|
|
2017-12-13 15:45:37 +01:00
|
|
|
env_gdscript = env_modules.Clone()
|
|
|
|
|
|
|
|
env_gdscript.add_source_files(env.modules_sources, "*.cpp")
|
2014-02-24 13:53:33 +01:00
|
|
|
|
2020-03-30 08:28:32 +02:00
|
|
|
if env["tools"]:
|
2019-08-28 13:10:32 +02:00
|
|
|
env_gdscript.add_source_files(env.modules_sources, "./editor/*.cpp")
|
|
|
|
|
|
|
|
# Those two modules are required for the language server protocol
|
2020-03-30 08:28:32 +02:00
|
|
|
if env["module_jsonrpc_enabled"] and env["module_websocket_enabled"]:
|
2019-08-28 13:10:32 +02:00
|
|
|
env_gdscript.add_source_files(env.modules_sources, "./language_server/*.cpp")
|
|
|
|
else:
|
|
|
|
# Using a define in the disabled case, to avoid having an extra define
|
|
|
|
# in regular builds where all modules are enabled.
|
2020-03-30 08:28:32 +02:00
|
|
|
env_gdscript.Append(CPPDEFINES=["GDSCRIPT_NO_LSP"])
|
2020-08-18 16:24:45 +02:00
|
|
|
|
|
|
|
if env["tests"]:
|
|
|
|
env_gdscript.Append(CPPDEFINES=["TESTS_ENABLED"])
|
|
|
|
env_gdscript.add_source_files(env.modules_sources, "./tests/*.cpp")
|
2021-10-11 11:30:59 +02:00
|
|
|
|
|
|
|
SConscript("editor_templates/SCsub")
|