Rename "use_libs" env option to "lib_use"

This commit is contained in:
Ivan Kravets
2015-06-28 19:44:35 +03:00
parent 776a2027fb
commit ebdbf79868
5 changed files with 17 additions and 16 deletions
+6 -4
View File
@@ -40,9 +40,9 @@ commonvars.AddVariables(
("BUILD_FLAGS",),
("SRCBUILD_FLAGS",),
("SRC_FILTER",),
("LIB_IGNORE",),
("USE_LIBS",),
("LIB_DFCYCLIC",),
("LIB_IGNORE",),
("LIB_USE",),
# board options
("BOARD",),
@@ -118,8 +118,10 @@ if "BOARD" in env:
env.get("BOARD_OPTIONS", {}).get("platform")))
if "LIB_IGNORE" in env:
env['LIB_IGNORE'] = [l.strip() for l in env['LIB_IGNORE'].split(",")]
for opt in ("LIB_IGNORE", "LIB_USE"):
if opt not in env:
continue
env[opt] = [l.strip() for l in env[opt].split(",") if l.strip()]
env.PrependENVPath(
"PATH",
+1 -3
View File
@@ -186,8 +186,6 @@ def BuildDependentLibraries(env, src_dir): # pylint: disable=R0914
INCLUDES_RE = re.compile(
r"^\s*#include\s+(\<|\")([^\>\"\']+)(?:\>|\")", re.M)
LIBSOURCE_DIRS = [env.subst(d) for d in env.get("LIBSOURCE_DIRS", [])]
USE_LIBS = [l.strip() for l in env.get("USE_LIBS", "").split(",")
if l.strip()]
# start internal prototypes
@@ -228,7 +226,7 @@ def BuildDependentLibraries(env, src_dir): # pylint: disable=R0914
if not isdir(lsd_dir):
continue
for ld in USE_LIBS + sorted(listdir(lsd_dir)):
for ld in env.get("LIB_USE", []) + sorted(listdir(lsd_dir)):
if not isdir(join(lsd_dir, ld)):
continue