CovidBracelet/platformio.ini

79 lines
2.4 KiB
INI

; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = pinetime_dk
[env:nrf52840_dk]
platform = nordicnrf52
board = nrf52840_dk
framework = zephyr
monitor_speed = 115200
test_ignore = test_desktop
build_flags =
-Iinclude/tls_config
# For testing: -DUNITY_EXCLUDE_SETJMP_H=1
-DEN_INCLUDE_ZEPHYR_DEPS=1
-DEN_INIT_MBEDTLS_ENTROPY=0
-DCOVID_MEASURE_PERFORMANCE=0 # Used to measure device performance
lib_deps =
prathje/exposure-notification @ ^0.1
lib_ignore =
mbedtls
[env:pinetime_dk]
platform = nordicnrf52
board = pinetime_devkit0
framework = zephyr
monitor_speed = 115200
test_ignore = test_desktop
build_flags =
-Iinclude/tls_config
# For testing: -DUNITY_EXCLUDE_SETJMP_H=1
-DEN_INCLUDE_ZEPHYR_DEPS=1
-DEN_INIT_MBEDTLS_ENTROPY=0
-DCOVID_MEASURE_PERFORMANCE=0 # Used to measure device performance
-DMAX_CONTACTS=100
-DMAX_PERIOD_CONTACTS=5
-DNO_DEPRECATED_BLE_OPTIONS=1
-DPLATFORM_PINETIME=1
lib_deps =
https://github.com/olikraus/u8g2.git
prathje/exposure-notification @ ^0.1
lib_ignore =
mbedtls
platform_packages =
# This is suboptimal at best
# Only zephyr v2.5.0+ release candidates have support for the PineTime
# And there is no official package for that yet
# Thus I provide my own versions here
framework-zephyr @ https://github.com/TobleMiner/framework-zephyr/releases/download/v2.5.0-rc2-bin/zephyr.zip
framework-zephyr-hal-nordic @ https://github.com/TobleMiner/framework-zephyr-hal-nordic/releases/download/v2.5.0-rc2-bin/zephyr-hal-nordic.zip
# Use the following lines to disable APPProtect and unlock the PineTime
# upload_protocol = custom
# upload_command = $PROJECT_PACKAGES_DIR/tool-nrfjprog/nrfjprog -f NRF52 --recover
[env:desktop]
platform = native
test_ignore = test_embedded
lib_compat_mode = off
lib_deps =
mbedtls@~2
prathje/exposure-notification @ ^0.1
build_flags =
-Iinclude/desktop
-Iinclude/tls_config
-Wno-nullability-completeness
-DMBEDTLS_USER_CONFIG_FILE='"user-tls.conf"'
src_filter = --<.src/>
targets = test