xref: /OK3568_Linux_fs/buildroot/package/lvgl/lvgl/0008-env_support-cmake-support-sdl.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From bba4e7de4f10b1ac5c251d85ed32d55354f74938 Mon Sep 17 00:00:00 2001
2From: Jiajian Wu <jair.wu@rock-chips.com>
3Date: Wed, 21 Dec 2022 15:19:53 +0800
4Subject: [PATCH 08/11] env_support: cmake: support sdl
5
6Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
7---
8 env_support/cmake/custom.cmake | 3 +++
9 1 file changed, 3 insertions(+)
10
11diff --git a/env_support/cmake/custom.cmake b/env_support/cmake/custom.cmake
12index fe04cf215..4909f9837 100644
13--- a/env_support/cmake/custom.cmake
14+++ b/env_support/cmake/custom.cmake
15@@ -52,6 +52,9 @@ if (LV_USE_DEMO_MUSIC)
16     add_definitions(-DLV_USE_DEMO_MUSIC)
17     set(INSTALL_LVGL_DEMOS ON)
18 endif()
19+if (LV_USE_GPU_SDL)
20+    add_definitions(-DLV_USE_GPU_SDL)
21+endif()
22
23 target_compile_definitions(
24   lvgl PUBLIC $<$<BOOL:${LV_LVGL_H_INCLUDE_SIMPLE}>:LV_LVGL_H_INCLUDE_SIMPLE>
25--
262.25.1
27
28