From 5778da765dea67f613876d13df54fd9d241bc06d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 25 Sep 2022 12:09:36 +0200 Subject: [PATCH] Lagom: Build a tiny slice of LibGUI We now build Model, ModelIndex and Icon from LibGUI. These will be used in Ladybird to view the DOM tree model. --- Meta/Lagom/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index 66d76f1b59..22f6be3baa 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -397,6 +397,14 @@ if (BUILD_LAGOM) SOURCES ${LIBGL_SOURCES} ${LIBGL_TEX_SOURCES} LIBS m LibGfx LibGPU) + # GUI + list(APPEND LIBGUI_SOURCES "../../Userland/Libraries/LibGUI/ModelIndex.cpp") + list(APPEND LIBGUI_SOURCES "../../Userland/Libraries/LibGUI/Model.cpp") + list(APPEND LIBGUI_SOURCES "../../Userland/Libraries/LibGUI/Icon.cpp") + lagom_lib(GUI gui + SOURCES ${LIBGUI_SOURCES} + LIBS LibGfx) + # GUI-GML file(GLOB LIBGUI_GML_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibGUI/GML/*.cpp") list(REMOVE_ITEM LIBGUI_GML_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/../../Userland/Libraries/LibGUI/GML/AutocompleteProvider.cpp")