feat(drivers): add libinput/xkb driver (#5486)
This commit is contained in:
@@ -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})
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user