[FL-2627] Flipper applications: SDK, build and debug system (#1387)
* Added support for running applications from SD card (FAPs - Flipper Application Packages) * Added plugin_dist target for fbt to build FAPs * All apps of type FlipperAppType.EXTERNAL and FlipperAppType.PLUGIN are built as FAPs by default * Updated VSCode configuration for new fbt features - re-deploy stock configuration to use them * Added debugging support for FAPs with fbt debug & VSCode * Added public firmware API with automated versioning Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: SG <who.just.the.doctor@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -68,6 +68,11 @@ vars.AddVariables(
|
||||
"7",
|
||||
],
|
||||
),
|
||||
BoolVariable(
|
||||
"DEBUG_TOOLS",
|
||||
help="Enable debug tools to be built",
|
||||
default=False,
|
||||
),
|
||||
)
|
||||
|
||||
vars.Add(
|
||||
@@ -186,21 +191,17 @@ vars.Add(
|
||||
help="Map of (configuration_name->application_list)",
|
||||
default={
|
||||
"default": (
|
||||
"crypto_start",
|
||||
# Svc
|
||||
"basic_services",
|
||||
# Apps
|
||||
"basic_apps",
|
||||
"updater_app",
|
||||
"archive",
|
||||
"main_apps",
|
||||
"system_apps",
|
||||
# Settings
|
||||
"passport",
|
||||
"system_settings",
|
||||
"about",
|
||||
"settings_apps",
|
||||
# Plugins
|
||||
"basic_plugins",
|
||||
# "basic_plugins",
|
||||
# Debug
|
||||
"debug_apps",
|
||||
# "debug_apps",
|
||||
)
|
||||
},
|
||||
)
|
||||
@@ -211,4 +212,26 @@ vars.Add(
|
||||
default="default",
|
||||
)
|
||||
|
||||
vars.Add(
|
||||
"APPSRC",
|
||||
help="Application source directory for app to build & upload",
|
||||
default="",
|
||||
)
|
||||
|
||||
# List of tuples (directory, add_to_global_include_path)
|
||||
vars.Add(
|
||||
"APPDIRS",
|
||||
help="Directories to search for firmware components & external apps",
|
||||
default=[
|
||||
("applications", False),
|
||||
("applications/services", True),
|
||||
("applications/main", True),
|
||||
("applications/settings", False),
|
||||
("applications/system", False),
|
||||
("applications/debug", False),
|
||||
("applications/plugins", False),
|
||||
("applications_user", False),
|
||||
],
|
||||
)
|
||||
|
||||
Return("vars")
|
||||
|
||||
Reference in New Issue
Block a user