| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + ArduinoJson=5.13.4 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -74,6 +74,12 @@ for EXAMPLE in "$EXAMPLEDIR"/*; do | |||
| 74 | 74 | echo "#include <Arduino.h>" > "$MAINCPP" | |
| 75 | 75 | cat "$INOFILE" >> "$MAINCPP" | |
| 76 | 76 | rm "$INOFILE" | |
| 77 | + # If the example has dependencies, rewrite platformio.ini | ||
| 78 | + if [[ -f "$EXAMPLEDIR/$EXAMPLENAME/.ci_lib_deps" ]]; then | ||
| 79 | + LIB_DEPS=$(head -n1 "$EXAMPLEDIR/$EXAMPLENAME/.ci_lib_deps") | ||
| 80 | + sed "s#\\#lib_deps#lib_deps = $LIB_DEPS#" "$PROJECTDIR/platformio.ini" > "$PROJECTDIR/platformio.ini.tmp" | ||
| 81 | + mv "$PROJECTDIR/platformio.ini.tmp" "$PROJECTDIR/platformio.ini" | ||
| 82 | + fi | ||
| 77 | 83 | # Try building the application (+e as we want to test every example and get a | |
| 78 | 84 | # summary on what is working) | |
| 79 | 85 | set +e | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,7 @@ default_envs = wrover, wroom | |||
| 5 | 5 | platform = espressif32 | |
| 6 | 6 | board = esp32dev | |
| 7 | 7 | framework = arduino | |
| 8 | + #lib_deps # do not remove, the build script uses this as marker to insert example-specific dependencies | ||
| 8 | 9 | ||
| 9 | 10 | [env:wrover] | |
| 10 | 11 | board_build.partitions = partitions_wrover.csv | |
| Back | FazBrowse Home | New Git URL |
0 commit comments