diff --git a/src/main/cpp/CMakeLists.txt b/src/main/cpp/CMakeLists.txt index c34871a..e96a1c5 100644 --- a/src/main/cpp/CMakeLists.txt +++ b/src/main/cpp/CMakeLists.txt @@ -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 diff --git a/src/main/cpp/vcpkg.json b/src/main/cpp/vcpkg.json index eed1f70..5144f41 100644 --- a/src/main/cpp/vcpkg.json +++ b/src/main/cpp/vcpkg.json @@ -3,6 +3,8 @@ "version-string": "0.1.0", "dependencies": [ "lua", - "freetype" + "freetype", + "nlohmann-json", + "minizip" ] } \ No newline at end of file