2023-08-25 05:01:27 +08:00
|
|
|
AddOption('--minimal',
|
|
|
|
action='store_false',
|
|
|
|
dest='extras',
|
2022-12-01 12:22:09 +08:00
|
|
|
default=True,
|
2023-08-25 05:01:27 +08:00
|
|
|
help='the minimum build. no tests, tools, etc.')
|
2021-04-01 09:35:47 +08:00
|
|
|
|
2023-04-27 13:59:58 +08:00
|
|
|
AddOption('--ubsan',
|
|
|
|
action='store_true',
|
|
|
|
help='turn on UBSan')
|
|
|
|
|
2024-09-27 03:35:45 +08:00
|
|
|
AddOption('--coverage',
|
|
|
|
action='store_true',
|
|
|
|
help='build with test coverage options')
|
|
|
|
|
2024-01-22 08:16:53 +08:00
|
|
|
AddOption('--compile_db',
|
|
|
|
action='store_true',
|
|
|
|
help='build clang compilation database')
|
|
|
|
|
2024-09-26 12:56:09 +08:00
|
|
|
AddOption('--mutation',
|
|
|
|
action='store_true',
|
|
|
|
help='generate mutation-ready code')
|
|
|
|
|
2024-01-22 08:16:53 +08:00
|
|
|
env = Environment(
|
|
|
|
COMPILATIONDB_USE_ABSPATH=True,
|
|
|
|
tools=["default", "compilation_db"],
|
|
|
|
)
|
|
|
|
|
|
|
|
if GetOption('compile_db'):
|
|
|
|
env.CompilationDatabase("compile_commands.json")
|
|
|
|
|
2022-12-01 12:22:09 +08:00
|
|
|
# panda fw & test files
|
|
|
|
SConscript('SConscript')
|