fbt: source collection improvements (#3181)

* fbt: reduced amount of redundant compilation units
* fbt: added GatherSources() method which can reject source paths starting with "!" in sources list; optimized apps' source lists
* docs: updated on path exclusion for `sources`
* apps: examples: fixed example_advanced_plugins source list
* docs: more details on `sources`; apps: narrower sources lists
This commit is contained in:
hedger
2023-11-01 08:21:31 +04:00
committed by GitHub
parent bf8984a225
commit 7bd3bd7ea4
11 changed files with 61 additions and 12 deletions

View File

@@ -5,6 +5,7 @@ App(
entry_point="example_plugins_app",
stack_size=2 * 1024,
fap_category="Examples",
sources=["*.c", "!plugin*.c"],
)
App(
@@ -21,6 +22,7 @@ App(
apptype=FlipperAppType.PLUGIN,
entry_point="example_plugin1_ep",
requires=["example_plugins", "example_plugins_multi"],
sources=["plugin1.c"],
)
App(
@@ -28,4 +30,5 @@ App(
apptype=FlipperAppType.PLUGIN,
entry_point="example_plugin2_ep",
requires=["example_plugins_multi"],
sources=["plugin2.c"],
)