Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
1000 B
Python
Raw Permalink Normal View History

#!/usr/bin/env python
Import("env")
Import("env_modules")
2014-02-24 09:53:33 -03: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 09:53:33 -03:00
if env.editor_build:
env_gdscript.add_source_files(env.modules_sources, "./editor/*.cpp")
SConscript("editor/script_templates/SCsub")
# Those two modules are required for the language server protocol
if env["module_jsonrpc_enabled"] and env["module_websocket_enabled"]:
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.
env_gdscript.Append(CPPDEFINES=["GDSCRIPT_NO_LSP"])
2023-10-30 15:28:34 +01:00
# Also needed in main env to unexpose --lsp-port option.
env.Append(CPPDEFINES=["GDSCRIPT_NO_LSP"])
if env["tests"]:
env_gdscript.Append(CPPDEFINES=["TESTS_ENABLED"])
env_gdscript.add_source_files(env.modules_sources, "./tests/*.cpp")