SCons: do not include backup files in build (#2221)

* SCons: do not include backup files in build
* fbt: now GlobRecursive by default excludes backup files
* fbt: added backup file exclusion to plain libs

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: hedger <hedger@nanode.su>
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Michal Suchánek
2023-02-08 10:35:38 +01:00
committed by GitHub
parent 23ecc186c2
commit 00076deece
6 changed files with 23 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ Import("ENV", "fw_build_meta")
from SCons.Errors import UserError
from SCons.Node import FS
import itertools
from fbt_extra.util import (
@@ -171,7 +172,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.GlobRecursive(source_type, appdir.relpath, exclude=["lib"])
for appdir, source_type in fwenv["APPBUILD"].get_builtin_app_folders()
)
)