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