mirror of
https://git.citron-emu.org/citron/emulator
synced 2026-01-11 04:04:16 +00:00
build: update Android build system and platform compatibility
1. Gradle ecosystem upgrades: - Update Gradle from 8.1 to 8.12 - Update Android Gradle plugin from 8.1.2 to 8.10.0 - Upgrade Java compatibility from 17 to 21 2. Build configuration changes: - Make release build the default instead of relWithDebInfo - Enable premium features 3. Platform compatibility fixes: - Properly exclude boost-process on Android - Add workarounds for missing features on Android - Fix socket operations in SSL backend - Update Boost.Asio naming (io_service → io_context) Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
#include <thread>
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
#ifndef __ANDROID__
|
||||
#include <boost/process/async_pipe.hpp>
|
||||
#endif
|
||||
|
||||
#include "common/logging/log.h"
|
||||
#include "common/polyfill_thread.h"
|
||||
@@ -159,7 +161,12 @@ private:
|
||||
// Set the new state. This will tear down any existing state.
|
||||
state = ConnectionState{
|
||||
.client_socket{std::move(peer)},
|
||||
#ifndef __ANDROID__
|
||||
.signal_pipe{io_context},
|
||||
#else
|
||||
// Use a regular socket pair for Android
|
||||
.signal_pipe{io_context},
|
||||
#endif
|
||||
.info{},
|
||||
.active_thread{},
|
||||
.client_data{},
|
||||
@@ -326,7 +333,12 @@ private:
|
||||
|
||||
struct ConnectionState {
|
||||
boost::asio::ip::tcp::socket client_socket;
|
||||
#ifndef __ANDROID__
|
||||
boost::process::async_pipe signal_pipe;
|
||||
#else
|
||||
// Use a regular socket pair for Android
|
||||
boost::asio::ip::tcp::socket signal_pipe;
|
||||
#endif
|
||||
|
||||
SignalInfo info;
|
||||
Kernel::KScopedAutoObject<Kernel::KThread> active_thread;
|
||||
|
||||
Reference in New Issue
Block a user