mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 04:41:26 +04:00
assets: checking limits on image size; ufbt: cdb target (#3359)
* scripts: assets: checking limits on image size * ufbt: added "cdb" target for regenerating; also generating cdb on "vscode_dist" * fbt: now also creating cdb for vscode_dist Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -275,15 +275,16 @@ Default(install_and_check)
|
||||
|
||||
# Compilation database
|
||||
|
||||
fwcdb = appenv.CompilationDatabase(
|
||||
app_cdb = appenv.CompilationDatabase(
|
||||
original_app_dir.Dir(".vscode").File("compile_commands.json")
|
||||
)
|
||||
|
||||
AlwaysBuild(fwcdb)
|
||||
Precious(fwcdb)
|
||||
NoClean(fwcdb)
|
||||
AlwaysBuild(app_cdb)
|
||||
Precious(app_cdb)
|
||||
NoClean(app_cdb)
|
||||
if len(apps_artifacts):
|
||||
Default(fwcdb)
|
||||
Default(app_cdb)
|
||||
Alias("cdb", app_cdb)
|
||||
|
||||
|
||||
# launch handler
|
||||
@@ -381,7 +382,7 @@ for config_file in project_template_dir.glob(".*"):
|
||||
|
||||
dist_env.Precious(vscode_dist)
|
||||
dist_env.NoClean(vscode_dist)
|
||||
dist_env.Alias("vscode_dist", vscode_dist)
|
||||
dist_env.Alias("vscode_dist", (vscode_dist, app_cdb))
|
||||
|
||||
|
||||
# Creating app from base template
|
||||
|
||||
@@ -18,6 +18,8 @@ Building:
|
||||
Build all FAP apps
|
||||
fap_{APPID}, launch APPSRC={APPID}:
|
||||
Build FAP app with appid={APPID}; upload & start it over USB
|
||||
cdb:
|
||||
regenerate "compile_commands.json" file (for IDE integration)
|
||||
|
||||
Flashing & debugging:
|
||||
flash, *jflash:
|
||||
|
||||
Reference in New Issue
Block a user