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

@@ -1,5 +1,7 @@
Import("env")
from fbt.util import GLOB_FILE_EXCLUSION
env.Append(
CPPPATH=[
"#/lib/digital_signal",
@@ -39,7 +41,11 @@ libs_plain = [
]
for lib in libs_plain:
sources += Glob(lib + "/*.c*", source=True)
sources += Glob(
lib + "/*.c*",
exclude=GLOB_FILE_EXCLUSION,
source=True,
)
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
libenv.Install("${LIB_DIST_DIR}", lib)