update the find_apps.py, now it will generate build and preserve keys

This commit is contained in:
Fu Hanxi
2020-04-23 18:29:37 +08:00
parent b26d42afe3
commit ba12a549bb
2 changed files with 42 additions and 36 deletions

View File

@@ -71,6 +71,8 @@ class BuildItem(object):
sdkconfig_path,
config_name,
build_system,
build_or_not,
preserve_artifacts,
):
# These internal variables store the paths with environment variables and placeholders;
# Public properties with similar names use the _expand method to get the actual paths.
@@ -84,6 +86,9 @@ class BuildItem(object):
self.target = target
self.build_system = build_system
self.build = build_or_not
self.preserve = preserve_artifacts
self._app_name = os.path.basename(os.path.normpath(app_path))
# Some miscellaneous build properties which are set later, at the build stage
@@ -155,6 +160,8 @@ class BuildItem(object):
"config": self.config_name,
"target": self.target,
"verbose": self.verbose,
"build": self.build,
"preserve": self.preserve,
})
@staticmethod
@@ -172,6 +179,8 @@ class BuildItem(object):
config_name=d["config"],
target=d["target"],
build_system=d["build_system"],
build_or_not=d["build"],
preserve_artifacts=d["preserve"]
)
result.verbose = d["verbose"]
return result