From b56fec95de2b7c0b1e84a89f7f27f1a8a6a2337b Mon Sep 17 00:00:00 2001 From: mverch67 Date: Thu, 18 Apr 2024 15:16:09 +0100 Subject: [PATCH] added release build for performance --- variants/portduino/platformio.ini | 49 ++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/variants/portduino/platformio.ini b/variants/portduino/platformio.ini index 05fc01f9a..a2beeb019 100644 --- a/variants/portduino/platformio.ini +++ b/variants/portduino/platformio.ini @@ -9,8 +9,9 @@ board = cross_platform lib_deps = ${portduino_base.lib_deps} build_src_filter = ${portduino_base.build_src_filter} -[env:native-tft-320x240] +[env:native-tft-320x240-debug] extends = portduino_base +build_type = debug build_flags = ${portduino_base.build_flags} -O0 -fno-omit-frame-pointer -fsanitize=address -lX11 -I variants/portduino -I /usr/include @@ -23,6 +24,48 @@ build_flags = ${portduino_base.build_flags} -O0 -fno-omit-frame-pointer -fsaniti -D DISP_VER_RES=240 -D LV_BUILD_TEST=0 -D CALIBRATE_TOUCH=0 + -D LV_USE_PERF_MONITOR=1 + -D LV_USE_MEM_MONITOR=1 + -D LV_LVGL_H_INCLUDE_SIMPLE + -D LV_CONF_INCLUDE_SIMPLE + -D LV_COMP_CONF_INCLUDE_SIMPLE + -D USE_LOG_DEBUG + -D LOG_DEBUG_INC=\"DebugConfiguration.h\" + -D USE_PACKET_API + -I lib/device-ui/generated/ui_320x240 +; The pkg-config commands below optionally add link flags. +; the || : is just a "or run the null command" to avoid returning an error code + !pkg-config --libs libulfius --silence-errors || : + !pkg-config --libs openssl --silence-errors || : +board = cross_platform +lib_deps = ${portduino_base.lib_deps} + ; x11 is currently only supported in master branch, not in 6.1.1 + https://github.com/lvgl/lv_drivers.git#110089d7f4be4df34aa7efc17c8cdd911e562846 +build_src_filter = ${portduino_base.build_src_filter} + - + +<../lib/device-ui/generated/ui_320x240> + +<../lib/device-ui/generated/ui_320x240/fonts> + +<../lib/device-ui/resources> + +<../lib/device-ui/portduino> + +<../lib/device-ui/source> + + +[env:native-tft-320x240-release] +extends = portduino_base +build_type = release +build_flags = ${portduino_base.build_flags} -Ofast -lX11 + -I variants/portduino + -I /usr/include + -D RAM_SIZE=4096 + -D USE_X11=1 ; enables usage of X11 + -D HAS_TFT=1 + -D HAS_SCREEN=0 + -D DISP_HOR_RES=320 + -D DISP_VER_RES=240 + -D LV_BUILD_TEST=0 + -D CALIBRATE_TOUCH=0 + -D LV_USE_PERF_MONITOR=0 + -D LV_USE_MEM_MONITOR=0 -D LV_LVGL_H_INCLUDE_SIMPLE -D LV_CONF_INCLUDE_SIMPLE -D LV_COMP_CONF_INCLUDE_SIMPLE @@ -66,6 +109,10 @@ build_flags = ${portduino_base.build_flags} -O0 -fno-omit-frame-pointer -fsaniti -D LOG_DEBUG_INC=\"DebugConfiguration.h\" -D USE_PACKET_API -I lib/device-ui/generated/ui_320x240 +; The pkg-config commands below optionally add link flags. +; the || : is just a "or run the null command" to avoid returning an error code + !pkg-config --libs libulfius --silence-errors || : + !pkg-config --libs openssl --silence-errors || : board = cross_platform lib_deps = ${portduino_base.lib_deps} ; x11 is currently only supported in master branch, not in 6.1.1