blob: 923567b138890c4a0f6ff78530ed04fb025d0395 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/env python
from misc.utility.scons_hints import *
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"])
|