1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 04:34:43 +04:00

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

@@ -197,7 +197,7 @@ sources = [apps_c]
# Gather sources only from app folders in current configuration
sources.extend(
itertools.chain.from_iterable(
fwenv.GlobRecursive(source_type, appdir.relpath, exclude=["lib"])
fwenv.GatherSources([source_type, "!lib"], appdir.relpath)
for appdir, source_type in fwenv["APPBUILD"].get_builtin_app_folders()
)
)