| 1 | #!/usr/bin/env python |
| 2 | from misc.utility.scons_hints import * |
| 3 | |
| 4 | Import("env") |
| 5 | Import("env_modules") |
| 6 | |
| 7 | env_jsonrpc = env_modules.Clone() |
| 8 | env_jsonrpc.add_source_files(env.modules_sources, "*.cpp") |
| 9 | |
| 10 | if env["tests"]: |
| 11 | env_jsonrpc.Append(CPPDEFINES=["TESTS_ENABLED"]) |
| 12 | env_jsonrpc.add_source_files(env.modules_sources, "./tests/*.cpp") |
| 13 | |
| 14 | if env["disable_exceptions"]: |
| 15 | env_jsonrpc.Append(CPPDEFINES=["DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS"]) |