mirror of
https://github.com/godotengine/godot
synced 2024-11-02 11:59:10 +00:00
14 lines
423 B
Python
14 lines
423 B
Python
#!/usr/bin/env python
|
|
|
|
Import("env")
|
|
Import("env_modules")
|
|
|
|
env_jsonrpc = env_modules.Clone()
|
|
env_jsonrpc.add_source_files(env.modules_sources, "*.cpp")
|
|
|
|
if env["tests"]:
|
|
env_jsonrpc.Append(CPPDEFINES=["TESTS_ENABLED"])
|
|
env_jsonrpc.add_source_files(env.modules_sources, "./tests/*.cpp")
|
|
|
|
if env["disable_exceptions"]:
|
|
env_jsonrpc.Append(CPPDEFINES=["DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS"])
|