add app management sources and dependencies to build system
This commit is contained in:
@@ -11,6 +11,10 @@ set(AIDL_EXE "${ANDROID_SDK}/build-tools/36.1.0/aidl.exe")
|
|||||||
# Find Lua from vcpkg
|
# Find Lua from vcpkg
|
||||||
find_package(Lua REQUIRED)
|
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
|
# Fetch RmlUi from GitHub with Lua bindings enabled
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
@@ -63,6 +67,9 @@ add_library(mosis-service SHARED
|
|||||||
glad/src/egl.c
|
glad/src/egl.c
|
||||||
glad/src/gles2.c
|
glad/src/gles2.c
|
||||||
RmlUi_Renderer_GL3.cpp
|
RmlUi_Renderer_GL3.cpp
|
||||||
|
apps/app_manager.cpp
|
||||||
|
apps/app_api.cpp
|
||||||
|
apps/update_service.cpp
|
||||||
)
|
)
|
||||||
target_compile_definitions(mosis-service PUBLIC
|
target_compile_definitions(mosis-service PUBLIC
|
||||||
RMLUI_NUM_MSAA_SAMPLES=2
|
RMLUI_NUM_MSAA_SAMPLES=2
|
||||||
@@ -77,6 +84,8 @@ target_include_directories(mosis-service PUBLIC
|
|||||||
target_link_libraries(mosis-service
|
target_link_libraries(mosis-service
|
||||||
android log binder_ndk EGL GLESv2 nativewindow
|
android log binder_ndk EGL GLESv2 nativewindow
|
||||||
rmlui rmlui_lua
|
rmlui rmlui_lua
|
||||||
|
nlohmann_json::nlohmann_json
|
||||||
|
minizip::minizip
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(mosis-test SHARED
|
add_library(mosis-test SHARED
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
"version-string": "0.1.0",
|
"version-string": "0.1.0",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"lua",
|
"lua",
|
||||||
"freetype"
|
"freetype",
|
||||||
|
"nlohmann-json",
|
||||||
|
"minizip"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user