This commit is contained in:
Paul
2019-06-09 22:13:49 +02:00
parent 4ee2cc0f6c
commit d4df10c7d9

View File

@@ -1,17 +1,20 @@
; ;
; PlatformIO Project Configuration File for EMS-ESP ; PlatformIO Project Configuration File for EMS-ESP
; Uses PlatformIO 4.0 (pio upgrade --dev) ; Uses PlatformIO 4.0
; ;
[platformio] [platformio]
default_envs = debug
;default_envs = release ;default_envs = release
default_envs = debug
[common] [common]
; hard code if you prefer. Recommendation is to set from within the app when in Serial or AP mode ; hard code if you prefer. Recommendation is to set from within the app when in Serial or AP mode
; wifi_settings = '-DWIFI_SSID="XXXX"' '-DWIFI_PASSWORD="XXXX"' ; wifi_settings = '-DWIFI_SSID="XXXX"' '-DWIFI_PASSWORD="XXXX"'
wifi_settings = wifi_settings =
debug_flags = -Wall -Wextra -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-variable -DTESTS
general_flags = -g -w -DNO_GLOBAL_EEPROM ${common.wifi_settings}
[env] [env]
board = d1_mini board = d1_mini
; board = nodemcuv2 ; board = nodemcuv2
@@ -32,15 +35,16 @@ upload_protocol = espota
upload_port = ems-esp.local upload_port = ems-esp.local
[env:debug] [env:debug]
build_flags = -g -Wall -Wextra -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-variable -DTESTS -DNO_GLOBAL_EEPROM ${common.wifi_settings} build_flags = ${common.general_flags} ${common.debug_flags}
extra_scripts = pre:scripts/rename_fw.py
[env:clean] [env:clean]
extra_scripts = pre:scripts/clean_fw.py extra_scripts = pre:scripts/clean_fw.py
[env:release] [env:release]
build_flags = -g -w build_flags = ${common.general_flags}
extra_scripts = pre:scripts/rename_fw.py extra_scripts = pre:scripts/rename_fw.py
[env:checkcode] [env:checkcode]
build_flags = -g -w build_flags = ${common.general_flags}
extra_scripts = scripts/checkcode.py extra_scripts = scripts/checkcode.py