2023-04-06 02:44:37 +00:00
|
|
|
AddOption(
|
2023-05-03 05:48:49 +00:00
|
|
|
"--extra-define",
|
|
|
|
action="append",
|
|
|
|
dest="extra_defines",
|
|
|
|
default=[],
|
|
|
|
help="Extra global define that will be passed to C/C++ compiler, can be specified multiple times",
|
2023-04-06 02:44:37 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
AddOption(
|
2023-05-03 05:48:49 +00:00
|
|
|
"--proxy-env",
|
2023-04-06 02:44:37 +00:00
|
|
|
action="store",
|
2023-05-03 05:48:49 +00:00
|
|
|
dest="proxy_env",
|
2023-04-06 02:44:37 +00:00
|
|
|
default="",
|
2023-05-03 05:48:49 +00:00
|
|
|
help="Comma-separated list of additional environment variables to pass to "
|
|
|
|
"child SCons processes",
|
2023-04-06 02:44:37 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
vars = Variables("ufbt_options.py", ARGUMENTS)
|
|
|
|
|
|
|
|
vars.AddVariables(
|
|
|
|
BoolVariable(
|
|
|
|
"VERBOSE",
|
|
|
|
help="Print full commands",
|
|
|
|
default=False,
|
|
|
|
),
|
|
|
|
BoolVariable(
|
|
|
|
"FORCE",
|
|
|
|
help="Force target action (for supported targets)",
|
|
|
|
default=False,
|
|
|
|
),
|
|
|
|
# These 2 are inherited from SDK
|
|
|
|
# BoolVariable(
|
|
|
|
# "DEBUG",
|
|
|
|
# help="Enable debug build",
|
|
|
|
# default=True,
|
|
|
|
# ),
|
|
|
|
# BoolVariable(
|
|
|
|
# "COMPACT",
|
|
|
|
# help="Optimize for size",
|
|
|
|
# default=False,
|
|
|
|
# ),
|
|
|
|
PathVariable(
|
|
|
|
"OTHER_ELF",
|
|
|
|
help="Path to prebuilt ELF file to debug",
|
|
|
|
validator=PathVariable.PathAccept,
|
|
|
|
default="",
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"OPENOCD_OPTS",
|
|
|
|
"Options to pass to OpenOCD",
|
|
|
|
"",
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"BLACKMAGIC",
|
|
|
|
"Blackmagic probe location",
|
|
|
|
"auto",
|
|
|
|
),
|
2023-08-22 18:33:10 +00:00
|
|
|
EnumVariable(
|
|
|
|
"SWD_TRANSPORT",
|
|
|
|
help="SWD interface adapter type",
|
|
|
|
default="auto",
|
|
|
|
allowed_values=[
|
|
|
|
"auto",
|
|
|
|
"cmsis-dap",
|
|
|
|
"stlink",
|
|
|
|
"blackmagic_usb",
|
|
|
|
"blackmagic_wifi",
|
|
|
|
],
|
|
|
|
),
|
2023-04-06 02:44:37 +00:00
|
|
|
(
|
2023-08-22 18:33:10 +00:00
|
|
|
"SWD_TRANSPORT_SERIAL",
|
|
|
|
"SWD interface adapter serial number",
|
2023-04-06 02:44:37 +00:00
|
|
|
"auto",
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"APPID",
|
|
|
|
"Application id",
|
|
|
|
"",
|
|
|
|
),
|
|
|
|
PathVariable(
|
|
|
|
"UFBT_APP_DIR",
|
|
|
|
help="Application dir to work with",
|
|
|
|
validator=PathVariable.PathIsDir,
|
|
|
|
default="",
|
|
|
|
),
|
2023-06-08 04:47:27 +00:00
|
|
|
(
|
|
|
|
"FLIP_PORT",
|
|
|
|
"CDC Port of Flipper to use, if multiple are connected",
|
|
|
|
"auto",
|
|
|
|
),
|
2023-10-23 09:55:36 +00:00
|
|
|
BoolVariable(
|
|
|
|
"STRICT_FAP_IMPORT_CHECK",
|
|
|
|
help="Enable strict import check for .faps",
|
|
|
|
default=True,
|
|
|
|
),
|
2023-04-06 02:44:37 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
Return("vars")
|