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

@@ -8,6 +8,11 @@ App(
stack_size=5 * 1024,
order=30,
resources="resources",
sources=[
"*.c",
"!plugins",
"!nfc_cli.c",
],
fap_libs=["assets"],
fap_icon="icon.png",
fap_category="NFC",
@@ -21,6 +26,7 @@ App(
entry_point="all_in_one_plugin_ep",
targets=["f7"],
requires=["nfc"],
sources=["plugins/supported_cards/all_in_one.c"],
)
App(
@@ -29,6 +35,7 @@ App(
entry_point="opal_plugin_ep",
targets=["f7"],
requires=["nfc"],
sources=["plugins/supported_cards/opal.c"],
)
App(
@@ -37,6 +44,7 @@ App(
entry_point="myki_plugin_ep",
targets=["f7"],
requires=["nfc"],
sources=["plugins/supported_cards/myki.c"],
)
App(
@@ -45,6 +53,7 @@ App(
entry_point="troika_plugin_ep",
targets=["f7"],
requires=["nfc"],
sources=["plugins/supported_cards/troika.c"],
)
App(
@@ -53,6 +62,7 @@ App(
entry_point="plantain_plugin_ep",
targets=["f7"],
requires=["nfc"],
sources=["plugins/supported_cards/plantain.c"],
)
App(
@@ -61,6 +71,7 @@ App(
entry_point="two_cities_plugin_ep",
targets=["f7"],
requires=["nfc"],
sources=["plugins/supported_cards/two_cities.c"],
)
App(
@@ -68,5 +79,6 @@ App(
targets=["f7"],
apptype=FlipperAppType.STARTUP,
entry_point="nfc_on_system_start",
sources=["nfc_cli.c"],
order=30,
)