Browse Source
[cmake] fix yuzu_cmd, bundled overrides (#381 )
Fixes yuzu_cmd not linking to vma (just link to vma for now, but should
be linked to video_core maybe?)
also fixes the weird precedence of bundled packages esp w.r.t json where
an effectively garbage value was passed into the BUNDLED_PACKAGE
argument (was forced to on)
Signed-off-by: crueter <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/381
release/0.0.3
crueter
4 months ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
3 changed files with
5 additions and
4 deletions
CMakeModules/CPMUtil.cmake
src/android/app/build.gradle.kts
src/yuzu_cmd/CMakeLists.txt
@ -184,8 +184,6 @@ function(AddJsonPackage)
# s y s t e m / b u n d l e d
if ( bundled STREQUAL "unset" AND DEFINED JSON_BUNDLED_PACKAGE )
set ( bundled ${ JSON_BUNDLED_PACKAGE } )
else ( )
set ( bundled ON )
endif ( )
AddPackage (
@ -259,6 +257,7 @@ function(AddPackage)
K E Y
B U N D L E D _ P A C K A G E
F I N D _ P A C K A G E _ A R G U M E N T S
)
set ( multiValueArgs OPTIONS PATCHES )
@ -409,9 +408,9 @@ function(AddPackage)
set_precedence ( OFF OFF )
elseif ( CPMUTIL_FORCE_SYSTEM )
set_precedence ( ON ON )
elseif ( NOT CPMUTIL_FORCE_BUNDLED )
elseif ( CPMUTIL_FORCE_BUNDLED )
set_precedence ( OFF OFF )
elseif ( DEFINED PKG_ARGS_BUNDLED_PACKAGE )
elseif ( DEFINED PKG_ARGS_BUNDLED_PACKAGE AND NOT PKG_ARGS_BUNDLED_PACKAGE STREQUAL "unset" )
if ( PKG_ARGS_BUNDLED_PACKAGE )
set ( local OFF )
else ( )
@ -173,6 +173,7 @@ android {
"-DENABLE_OPENSSL=ON",
"-DANDROID_ARM_NEON=true", // cryptopp requires Neon to work
"-DYUZU_USE_CPM=ON",
"-DCPMUTIL_FORCE_BUNDLED=ON",
"-DYUZU_USE_BUNDLED_FFMPEG=ON",
"-DYUZU_ENABLE_LTO=ON",
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
@ -39,6 +39,7 @@ create_resource("../../dist/yuzu.bmp" "yuzu_cmd/yuzu_icon.h" "yuzu_icon")
target_include_directories ( yuzu-cmd PRIVATE ${ RESOURCES_DIR } )
target_link_libraries ( yuzu-cmd PRIVATE SDL2::SDL2 Vulkan::Headers )
target_link_libraries ( yuzu-cmd PRIVATE GPUOpen::VulkanMemoryAllocator )
if ( UNIX AND NOT APPLE )
install ( TARGETS yuzu-cmd )