Added support for "shared_dir"

This commit is contained in:
Ivan Kravets committed 2019-05-31 21:18:37 +03:00
1 parent 33d16bfcf0
commit 5011e47709
4 files changed
+12 -1

No files matched your search

+5
View File
@@ -157,6 +157,11 @@ def get_project_data_dir():
"data"))
def get_project_shared_dir():
return get_project_optional_dir("shared_dir",
join(get_project_dir(), "shared"))
def calculate_project_hash():
check_suffixes = (".c", ".cc", ".cpp", ".h", ".hpp", ".s", ".S")
chunks = [__version__]
+2
View File
@@ -81,6 +81,8 @@ ProjectOptions = OrderedDict([
sysenvvar="PLATFORMIO_BOARDS_DIR"),
ConfigPlatformioOption(name="data_dir",
sysenvvar="PLATFORMIO_DATA_DIR"),
ConfigPlatformioOption(name="shared_dir",
sysenvvar="PLATFORMIO_SHARED_DIR"),
#
# [env]