SCsub 686 B

1234567891011121314151617181920
  1. #!/usr/bin/env python
  2. Import("env")
  3. Import("env_modules")
  4. env_gdscript = env_modules.Clone()
  5. env_gdscript.add_source_files(env.modules_sources, "*.cpp")
  6. if env["tools"]:
  7. env_gdscript.add_source_files(env.modules_sources, "./editor/*.cpp")
  8. # Those two modules are required for the language server protocol
  9. if env["module_jsonrpc_enabled"] and env["module_websocket_enabled"]:
  10. env_gdscript.add_source_files(env.modules_sources, "./language_server/*.cpp")
  11. else:
  12. # Using a define in the disabled case, to avoid having an extra define
  13. # in regular builds where all modules are enabled.
  14. env_gdscript.Append(CPPDEFINES=["GDSCRIPT_NO_LSP"])