feat(drivers): add libinput/xkb driver (#5486)

This commit is contained in:
Johannes Marbach
2024-01-29 13:14:37 +01:00
committed by GitHub
parent c835e888b1
commit b45ef5ccf9
14 changed files with 1210 additions and 2 deletions

View File

@@ -253,6 +253,14 @@ include_directories(${PNG_INCLUDE_DIR})
find_package(Freetype REQUIRED)
include_directories(${FREETYPE_INCLUDE_DIRS})
# libinput is required for the libinput device driver test case
find_package(Libinput REQUIRED)
include_directories(${LIBINPUT_INCLUDE_DIRS})
# libxkbcommon is required for the libinput device driver test case
find_package(PkgConfig)
pkg_check_modules(xkbcommon REQUIRED xkbcommon)
# disable test targets for build only tests
if (ENABLE_TESTS)
file( GLOB_RECURSE TEST_CASE_FILES src/test_cases/*.c )
@@ -288,6 +296,7 @@ foreach( test_case_fname ${TEST_CASE_FILES} )
lvgl_thorvg
${PNG_LIBRARIES}
${FREETYPE_LIBRARIES}
${LIBINPUT_LIBRARIES}
${JPEG_LIBRARIES}
m
${TEST_LIBS})

View File

@@ -106,6 +106,8 @@
#define LV_USE_ST7735 1
#define LV_USE_ST7789 1
#define LV_USE_ST7796 1
#define LV_USE_LIBINPUT 1
#define LV_LIBINPUT_XKB 1
#define LV_USE_FREETYPE 1
#define LV_FREETYPE_CACHE_SIZE 768