2019-06-14 12:11:40 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2020-03-30 06:28:32 +00:00
|
|
|
Import("env")
|
|
|
|
Import("env_modules")
|
2019-06-14 12:11:40 +00:00
|
|
|
|
|
|
|
env_jsonrpc = env_modules.Clone()
|
|
|
|
env_jsonrpc.add_source_files(env.modules_sources, "*.cpp")
|
2024-04-10 17:27:08 +00:00
|
|
|
|
|
|
|
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"])
|