add app management sources and dependencies to build system

This commit is contained in:
2026-01-18 22:36:14 +01:00
parent 5ea0cdde63
commit 3ab586956e
2 changed files with 12 additions and 1 deletions

View File

@@ -11,6 +11,10 @@ set(AIDL_EXE "${ANDROID_SDK}/build-tools/36.1.0/aidl.exe")
# Find Lua from vcpkg
find_package(Lua REQUIRED)
# Find nlohmann_json and minizip for app management
find_package(nlohmann_json CONFIG REQUIRED)
find_package(minizip CONFIG REQUIRED)
# Fetch RmlUi from GitHub with Lua bindings enabled
include(FetchContent)
FetchContent_Declare(
@@ -63,6 +67,9 @@ add_library(mosis-service SHARED
glad/src/egl.c
glad/src/gles2.c
RmlUi_Renderer_GL3.cpp
apps/app_manager.cpp
apps/app_api.cpp
apps/update_service.cpp
)
target_compile_definitions(mosis-service PUBLIC
RMLUI_NUM_MSAA_SAMPLES=2
@@ -77,6 +84,8 @@ target_include_directories(mosis-service PUBLIC
target_link_libraries(mosis-service
android log binder_ndk EGL GLESv2 nativewindow
rmlui rmlui_lua
nlohmann_json::nlohmann_json
minizip::minizip
)
add_library(mosis-test SHARED

View File

@@ -3,6 +3,8 @@
"version-string": "0.1.0",
"dependencies": [
"lua",
"freetype"
"freetype",
"nlohmann-json",
"minizip"
]
}