update Android to use shared mosis-core library

- Remove duplicate sandbox sources from Android (now in core/)
- Update Android CMakeLists to link mosis-core
- Add OpenSSL crypto support for Android
- Update all includes to use core library headers
- Remove duplicate logger from Android (use core logger)
- Add openssl to Android vcpkg dependencies

This removes ~5,500 lines of duplicate code by sharing
the sandbox implementation between desktop and Android.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-19 12:14:24 +01:00
parent 33841516f1
commit 486c194f08
41 changed files with 160 additions and 5467 deletions

View File

@@ -63,6 +63,17 @@ else()
target_compile_definitions(mosis-core PUBLIC MOSIS_PLATFORM_LINUX)
endif()
# OpenSSL for crypto on non-Windows platforms
if(NOT WIN32)
find_package(OpenSSL QUIET)
if(OpenSSL_FOUND)
target_link_libraries(mosis-core PRIVATE OpenSSL::Crypto)
target_compile_definitions(mosis-core PRIVATE MOSIS_HAS_OPENSSL)
else()
message(WARNING "OpenSSL not found - crypto functions will be stubs")
endif()
endif()
# Lua is required - parent project must provide it
if(TARGET lua_static)
target_link_libraries(mosis-core PUBLIC lua_static)