mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-03 11:13:54 +00:00
aa4e494c08
Supersedes #4335. Replaces the Oboe audio backend with SDL3, since we already support it. A few caveats: - SDL defines a JVM OnLoad method already, so we have to instead hijack NativeLibrary for id_cache initialization - This also means some internal fields in Double/Integer/Boolean (namely `value`) can't be accessed, so I switched those to methods for now. - SDL Java sources are pulled in from the CI package. - Since we can't use SDLActivity, `SDL.setupJNI()` handles everything Signed-off-by: crueter <crueter@eden-emu.dev> - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4338 Reviewed-by: Lizzie and Samuel <lizzie@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
38 lines
1.2 KiB
CMake
38 lines
1.2 KiB
CMake
# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
add_library(yuzu-android SHARED
|
|
emu_window/emu_window.cpp
|
|
emu_window/emu_window.h
|
|
native.cpp
|
|
native.h
|
|
native_config.cpp
|
|
native_freedreno.cpp
|
|
android_settings.cpp
|
|
game_metadata.cpp
|
|
native_log.cpp
|
|
android_config.cpp
|
|
android_config.h
|
|
native_input.cpp
|
|
)
|
|
|
|
set_property(TARGET yuzu-android PROPERTY IMPORTED_LOCATION ${FFmpeg_LIBRARY_DIR})
|
|
|
|
target_link_libraries(yuzu-android PRIVATE audio_core common core input_common frontend_common video_core)
|
|
target_link_libraries(yuzu-android PRIVATE android camera2ndk EGL glad jnigraphics log GLESv2)
|
|
if (ARCHITECTURE_arm64)
|
|
target_link_libraries(yuzu-android PRIVATE adrenotools)
|
|
endif()
|
|
|
|
target_link_libraries(yuzu-android PRIVATE ${FFmpeg_LIBRARIES} OpenSSL::SSL cpp-jwt::cpp-jwt)
|
|
if (ENABLE_UPDATE_CHECKER)
|
|
target_compile_definitions(yuzu-android PUBLIC ENABLE_UPDATE_CHECKER)
|
|
endif()
|
|
|
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} yuzu-android)
|
|
|
|
target_link_options(yuzu-android PRIVATE "-Wl,-Bsymbolic")
|