Completely replaces vcpkg with CPM for all "system" dependencies. Primarily needed for Android and Windows. Also uses my OpenSSL CI for those two platforms. In theory, improves configure and build time by a LOT and makes things much easier to manage Reviewed-on: #250 Reviewed-by: Lizzie <lizzie@eden-emu.dev>
30 lines
955 B
CMake
30 lines
955 B
CMake
# 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
|
|
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 Vulkan::Headers)
|
|
target_link_libraries(yuzu-android PRIVATE android camera2ndk EGL glad jnigraphics log)
|
|
if (ARCHITECTURE_arm64)
|
|
target_link_libraries(yuzu-android PRIVATE adrenotools)
|
|
endif()
|
|
|
|
if (ENABLE_OPENSSL OR ENABLE_WEB_SERVICE)
|
|
target_link_libraries(yuzu-android PRIVATE OpenSSL::SSL cpp-jwt::cpp-jwt)
|
|
endif()
|
|
|
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} yuzu-android)
|