-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
61 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,29 +4,34 @@ | |
[platformio] | ||
|
||
[env] | ||
build_flags =-Wall -Wextra -Wreturn-local-addr -Werror=format -Werror=return-local-addr | ||
build_flags = -Wall -Wextra -Wreturn-local-addr -Werror=format -Werror=return-local-addr | ||
-I"./src" | ||
|
||
lib_ldf_mode = deep | ||
test_framework = googletest | ||
test_build_src = true | ||
lib_deps=m5stack/M5Unified | ||
https://github.com/m5stack/M5Utility#develop | ||
https://github.com/m5stack/M5HAL#develop | ||
https://github.com/boschsensortec/Bosch-BME68x-Library.git | ||
|
||
extra_scripts = pre:custom_script.py | ||
custom_exclude_src_files=bme68xLibrary.cpp bsec2.cpp | ||
https://github.com/m5stack/M5Unit-ENV/#develop | ||
https://github.com/m5stack/M5Unit-METER/#develop | ||
https://github.com/m5stack/M5Unit-HEART/#develop | ||
https://github.com/m5stack/M5Unit-HUB/#develop | ||
https://github.com/m5stack/M5Unit-GESTURE/#develop | ||
https://github.com/m5stack/M5Unit-KMeterISO/#develop | ||
https://github.com/m5stack/M5Unit-TVOC/#develop | ||
https://github.com/m5stack/M5Unit-RFID/#develop | ||
|
||
; -------------------------------- | ||
[m5base] | ||
monitor_speed = 115200 | ||
monitor_filters = esp32_exception_decoder, time | ||
upload_speed = 1500000 | ||
test_speed = 115200 | ||
test_filter= embedded/* | ||
test_filter= embedded/test_update | ||
test_ignore= native/* | ||
|
||
;Arduino-esp 2.0.4 (Changed Wire) at 5.1.0 | ||
platform = espressif32 @6.6.0 | ||
platform = espressif32 @6.8.0 | ||
;platform = espressif32 @ 5.0.0 | ||
framework = arduino | ||
|
||
|
@@ -104,7 +109,7 @@ build_flags = -O3 -xc++ -std=c++14 -lSDL2 | |
platform = native | ||
test_filter= native/* | ||
test_ignore= embedded/* | ||
lib_deps = ${env.lib_deps} | ||
lib_deps = ${env.lib_deps} | ||
|
||
; -------------------------------- | ||
;Choose build options | ||
|
@@ -147,59 +152,70 @@ lib_deps = google/[email protected] | |
; -------------------------------- | ||
[env:test_native] | ||
extends = sdl, option_release | ||
build_flags = ${sdl.build_flags} ${option_release.build_flags} | ||
build_flags = ${sdl.build_flags} ${option_release.build_flags} -I${PROJECT_DIR}/.pio/libdeps/test_CoreS3/M5HAL/src | ||
lib_deps = ${sdl.lib_deps} | ||
${test_fw.lib_deps} | ||
lib_ignore=https://github.com/boschsensortec/Bosch-BSEC2-Library.git | ||
lib_compat_mode= off | ||
extra_scripts = pre:custom_script.py | ||
custom_exclude_src_files=bme68xLibrary.cpp bsec2.cpp BMP280.cpp DHT12.cpp I2C_Class.cpp SCD4X.cpp SHT3X.cpp QMP6988.cpp SHT4X.cpp utility.cpp /M5UnitKmeterISO.cpp | ||
|
||
[env:test_Core] | ||
extends=Core, option_release | ||
build_flags = ${env.build_flags} ${option_release.build_flags} -I${PROJECT_DIR}/.pio/libdeps/test_CoreS3/M5HAL/src | ||
lib_deps = ${Core.lib_deps} | ||
${test_fw.lib_deps} | ||
|
||
[env:test_Core2] | ||
extends=Core2, option_release | ||
build_flags = ${env.build_flags} ${option_release.build_flags} -I${PROJECT_DIR}/.pio/libdeps/test_CoreS3/M5HAL/src | ||
lib_deps = ${Core2.lib_deps} | ||
${test_fw.lib_deps} | ||
|
||
[env:test_CoreS3] | ||
extends=CoreS3, option_release | ||
build_flags = ${env.build_flags} ${option_release.build_flags} -I${PROJECT_DIR}/.pio/libdeps/test_CoreS3/M5HAL/src | ||
lib_deps = ${CoreS3.lib_deps} | ||
${test_fw.lib_deps} | ||
|
||
[env:test_Fire] | ||
extends=Fire, option_release | ||
build_flags = ${env.build_flags} ${option_release.build_flags} -I${PROJECT_DIR}/.pio/libdeps/test_CoreS3/M5HAL/src | ||
lib_deps = ${Fire.lib_deps} | ||
${test_fw.lib_deps} | ||
|
||
[env:test_StampS3] | ||
extends=StampS3, option_release | ||
build_flags = ${env.build_flags} ${option_release.build_flags} -I${PROJECT_DIR}/.pio/libdeps/test_CoreS3/M5HAL/src | ||
lib_deps = ${StampS3.lib_deps} | ||
${test_fw.lib_deps} | ||
|
||
[env:test_Dial] | ||
extends=StampS3, option_release | ||
build_flags = ${env.build_flags} ${option_release.build_flags} -I${PROJECT_DIR}/.pio/libdeps/test_CoreS3/M5HAL/src | ||
lib_deps = ${StampS3.lib_deps} | ||
${test_fw.lib_deps} | ||
m5stack/M5Dial | ||
|
||
[env:test_AtomS3] | ||
extends=AtomS3, option_release | ||
build_flags = ${env.build_flags} ${option_release.build_flags} -I${PROJECT_DIR}/.pio/libdeps/test_CoreS3/M5HAL/src | ||
lib_deps = ${AtomS3.lib_deps} | ||
${test_fw.lib_deps} | ||
|
||
[env:test_NanoC6] | ||
extends=NanoC6, option_release | ||
build_flags = ${env.build_flags} ${option_release.build_flags} -I${PROJECT_DIR}/.pio/libdeps/test_CoreS3/M5HAL/src | ||
lib_deps = ${NanoC6.lib_deps} | ||
${test_fw.lib_deps} | ||
|
||
[env:test_StickCPlus] | ||
extends=StickCPlus, option_release | ||
build_flags = ${env.build_flags} ${option_release.build_flags} -I${PROJECT_DIR}/.pio/libdeps/test_CoreS3/M5HAL/src | ||
lib_deps = ${StickCPlus.lib_deps} | ||
${test_fw.lib_deps} | ||
|
||
[env:test_Paper] | ||
extends=Paper, option_release | ||
build_flags = ${env.build_flags} ${option_release.build_flags} -I${PROJECT_DIR}/.pio/libdeps/test_CoreS3/M5HAL/src | ||
lib_deps = ${Paper.lib_deps} | ||
${test_fw.lib_deps} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.