2016-10-17 06:50:25 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2014-02-24 12:53:33 +00:00
|
|
|
Import('env')
|
2017-12-13 14:45:37 +00:00
|
|
|
Import('env_modules')
|
2014-02-24 12:53:33 +00:00
|
|
|
|
2017-12-13 14:45:37 +00:00
|
|
|
env_gdscript = env_modules.Clone()
|
|
|
|
|
|
|
|
env_gdscript.add_source_files(env.modules_sources, "*.cpp")
|
2014-02-24 12:53:33 +00:00
|
|
|
|
2018-04-20 19:44:07 +00:00
|
|
|
if env['tools']:
|
2019-08-28 11:10:32 +00:00
|
|
|
env_gdscript.add_source_files(env.modules_sources, "./editor/*.cpp")
|
|
|
|
|
|
|
|
# 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'])
|