diff mbox series

[7/8] lvgl: Build shared library

Message ID 20240313045038.90500-8-marex@denx.de
State Accepted
Headers show
Series lvgl: Upgrade to LVGL 9 series | expand

Commit Message

Marek Vasut March 13, 2024, 4:40 a.m. UTC
Build LVGL as shared library instead of static library. In case
there are multiple applications linking against LVGL, this is more
efficient, and it also makes it possible to update only the LVGL
library separately from the applications.

Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Fabio Estevam <festevam@denx.de>
Cc: Khem Raj <raj.khem@gmail.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
---
 meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb b/meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb
index bdd61d891..d147e8920 100644
--- a/meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb
+++ b/meta-oe/recipes-graphics/lvgl/lvgl_9.0.0.bb
@@ -14,7 +14,7 @@  PV .= "+git${SRCPV}"
 
 inherit cmake
 
-EXTRA_OECMAKE = "-DLIB_INSTALL_DIR=${baselib}"
+EXTRA_OECMAKE = "-DLIB_INSTALL_DIR=${baselib} -DBUILD_SHARED_LIBS=ON"
 S = "${WORKDIR}/git"
 
 ALLOW_EMPTY:${PN} = "1"