mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
cleanup
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user