Implement posix app loading (#643)
- Added POSIX desktop support for SDK builds, application packaging, and integration testing. - Added POSIX filesystem partitions and improved application path handling. - Added simulator support for loading and running applications dynamically. - Improved simulator task stack handling and display startup reliability. - Improved simulator display scaling, resizing, high-DPI support, and pointer accuracy. - Fixed LVGL timers and input polling on POSIX. (fixes simulator with Linux on some Intel graphics platforms) - Standardized data paths across platforms. - Logging now works via separate task: this allows apps to write to log without it affecting their stdout (for apps that output text as relevant date for other apps, like the File Selection app) - Fixes for app stdio
This commit is contained in:
committed by
GitHub
parent
d3656bcd3d
commit
643cbc3806
@@ -1,7 +1,7 @@
|
||||
file(GLOB_RECURSE SOURCE_FILES Source/*.c)
|
||||
if (NOT DEFINED TACTILITY_SDK_PATH)
|
||||
get_filename_component(TACTILITY_SDK_PATH "$ENV{TACTILITY_SDK_PATH}" ABSOLUTE BASE_DIR "${CMAKE_CURRENT_LIST_DIR}/..")
|
||||
endif ()
|
||||
include("${TACTILITY_SDK_PATH}/TactilitySDK.cmake")
|
||||
|
||||
idf_component_register(
|
||||
SRCS ${SOURCE_FILES}
|
||||
REQUIRES TactilitySDK
|
||||
app-module crypt-module gps-module lvgl-module lvgl-window-manager-module service-module
|
||||
)
|
||||
file(GLOB_RECURSE SOURCE_FILES Source/*.c)
|
||||
tactility_component_register(SRCS ${SOURCE_FILES} INCLUDE_DIRS include)
|
||||
@@ -9,6 +9,8 @@
|
||||
#include <lvgl.h>
|
||||
#include <lvgl/widgets/toolbar.h>
|
||||
|
||||
#include <greeting.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
static void create_widgets(lv_obj_t* parent, void* userData) {
|
||||
@@ -16,7 +18,7 @@ static void create_widgets(lv_obj_t* parent, void* userData) {
|
||||
lv_obj_align(toolbar, LV_ALIGN_TOP_MID, 0, 0);
|
||||
|
||||
lv_obj_t* label = lv_label_create(parent);
|
||||
lv_label_set_text(label, "Hello, world!");
|
||||
lv_label_set_text(label, SDK_TEST_GREETING);
|
||||
lv_obj_align(label, LV_ALIGN_CENTER, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
// Only exists to prove tactility_component_register()'s INCLUDE_DIRS parameter resolves this
|
||||
// directory on both platforms - see main/CMakeLists.txt.
|
||||
#define SDK_TEST_GREETING "Hello, world!"
|
||||
Reference in New Issue
Block a user