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:
@@ -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()
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user