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