Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nanopb/nanopb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Duchesne <joseph@avidbots.com>2023-07-12 16:24:42 +0300
committerPetteri Aimonen <jpa@github.mail.kapsi.fi>2023-07-12 22:25:31 +0300
commit09a356071fb9c2a31671ad1cf982dc52d5fae1d2 (patch)
treeb6cc1fc562aa635b5631ed543f30bff6be0f36e9
parent2c3611b8a422cf0c57b94598d0d8ffb629bb83a1 (diff)
Allow substitutions in custom_nanopb_protos
Allows building protos found in libraries by using ${PIOENV} substitutions like so: `custom_nanopb_protos = +<.pio/libdeps/${PIOENV}/some_library/proto/*.proto>`
-rw-r--r--generator/platformio_generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/platformio_generator.py b/generator/platformio_generator.py
index 1c3eeeb..82210b8 100644
--- a/generator/platformio_generator.py
+++ b/generator/platformio_generator.py
@@ -39,7 +39,7 @@ generated_src_dir = os.path.join(build_dir, 'nanopb', 'generated-src')
generated_build_dir = os.path.join(build_dir, 'nanopb', 'generated-build')
md5_dir = os.path.join(build_dir, 'nanopb', 'md5')
-nanopb_protos = env.GetProjectOption("custom_nanopb_protos", "")
+nanopb_protos = env.subst(env.GetProjectOption("custom_nanopb_protos", ""))
nanopb_plugin_options = env.GetProjectOption("custom_nanopb_options", "")
if not nanopb_protos: