mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-17 03:47:03 +02:00
fix ffmpeg
This commit is contained in:
parent
0777ac2982
commit
65c576efa2
3 changed files with 24 additions and 6 deletions
|
|
@ -486,7 +486,12 @@ endfunction()
|
||||||
# =============================================
|
# =============================================
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
foreach(fw Carbon Metal Cocoa IOKit CoreVideo CoreMedia)
|
set(_libs Carbon Metal Cocoa IOKit CoreVideo CoreMedia)
|
||||||
|
if (IOS)
|
||||||
|
list(APPEND _libs objc)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
foreach(fw ${_libs})
|
||||||
find_library(${fw}_LIBRARY ${fw} REQUIRED)
|
find_library(${fw}_LIBRARY ${fw} REQUIRED)
|
||||||
list(APPEND PLATFORM_LIBRARIES ${${fw}_LIBRARY})
|
list(APPEND PLATFORM_LIBRARIES ${${fw}_LIBRARY})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
|
||||||
21
externals/ffmpeg/CMakeLists.txt
vendored
21
externals/ffmpeg/CMakeLists.txt
vendored
|
|
@ -182,6 +182,10 @@ else()
|
||||||
find_program(BASH_PROGRAM bash REQUIRED)
|
find_program(BASH_PROGRAM bash REQUIRED)
|
||||||
|
|
||||||
set(FFmpeg_CROSS_COMPILE_FLAGS "")
|
set(FFmpeg_CROSS_COMPILE_FLAGS "")
|
||||||
|
# `configure` parameters builds only exactly what yuzu needs from FFmpeg
|
||||||
|
# `--disable-vdpau` is needed to avoid linking issues
|
||||||
|
set(FFmpeg_CC ${CMAKE_C_COMPILER_LAUNCHER} ${CMAKE_C_COMPILER})
|
||||||
|
set(FFmpeg_CXX ${CMAKE_CXX_COMPILER_LAUNCHER} ${CMAKE_CXX_COMPILER})
|
||||||
if (ANDROID)
|
if (ANDROID)
|
||||||
string(TOLOWER "${CMAKE_HOST_SYSTEM_NAME}" FFmpeg_HOST_SYSTEM_NAME)
|
string(TOLOWER "${CMAKE_HOST_SYSTEM_NAME}" FFmpeg_HOST_SYSTEM_NAME)
|
||||||
set(TOOLCHAIN "${ANDROID_NDK}/toolchains/llvm/prebuilt/${FFmpeg_HOST_SYSTEM_NAME}-${CMAKE_HOST_SYSTEM_PROCESSOR}")
|
set(TOOLCHAIN "${ANDROID_NDK}/toolchains/llvm/prebuilt/${FFmpeg_HOST_SYSTEM_NAME}-${CMAKE_HOST_SYSTEM_PROCESSOR}")
|
||||||
|
|
@ -197,12 +201,21 @@ else()
|
||||||
--extra-ldflags="--ld-path=${TOOLCHAIN}/bin/ld.lld"
|
--extra-ldflags="--ld-path=${TOOLCHAIN}/bin/ld.lld"
|
||||||
--extra-ldflags="-nostdlib"
|
--extra-ldflags="-nostdlib"
|
||||||
)
|
)
|
||||||
|
elseif(IOS)
|
||||||
|
execute_process(COMMAND xcrun --sdk iphoneos --show-sdk-path OUTPUT_VARIABLE SYSROOT)
|
||||||
|
set(FFmpeg_CC "xcrun --sdk iphoneos clang -arch arm64")
|
||||||
|
set(FFmpeg_CXX "xcrun --sdk iphoneos clang++ -arch arm64")
|
||||||
|
list(APPEND FFmpeg_CROSS_COMPILE_FLAGS
|
||||||
|
--arch=arm64
|
||||||
|
--enable-cross-compile
|
||||||
|
--sysroot=${SYSROOT}
|
||||||
|
--target-os=darwin
|
||||||
|
--extra-ldflags="-miphoneos-version-min=16.0"
|
||||||
|
--install-name-dir="@rpath"
|
||||||
|
--disable-audiotoolbox
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# `configure` parameters builds only exactly what yuzu needs from FFmpeg
|
|
||||||
# `--disable-vdpau` is needed to avoid linking issues
|
|
||||||
set(FFmpeg_CC ${CMAKE_C_COMPILER_LAUNCHER} ${CMAKE_C_COMPILER})
|
|
||||||
set(FFmpeg_CXX ${CMAKE_CXX_COMPILER_LAUNCHER} ${CMAKE_CXX_COMPILER})
|
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT
|
OUTPUT
|
||||||
${FFmpeg_MAKEFILE}
|
${FFmpeg_MAKEFILE}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
enable_language(Swift OBJC)
|
enable_language(Swift OBJCXX)
|
||||||
|
|
||||||
add_executable(eden-ios
|
add_executable(eden-ios
|
||||||
AppUI-Bridging-Header.h
|
AppUI-Bridging-Header.h
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue