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')
|
|
|
|
|
2023-10-31 02:43:56 +08:00
|
|
|
AddOption('--coverage',
|
2023-10-26 13:01:01 +08:00
|
|
|
action='store_true',
|
2023-10-31 02:43:56 +08:00
|
|
|
help='build with test coverage options')
|
2023-10-26 13:01:01 +08:00
|
|
|
|
2024-01-22 08:16:53 +08:00
|
|
|
AddOption('--compile_db',
|
|
|
|
action='store_true',
|
|
|
|
help='build clang compilation database')
|
|
|
|
|
|
|
|
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')
|