mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-11-01 11:58:19 +00:00
fix ffmpeg
This commit is contained in:
@@ -519,6 +519,10 @@ if (APPLE)
|
|||||||
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()
|
||||||
|
if (IOS)
|
||||||
|
find_library(objc_LIBRARY objc REQUIRED)
|
||||||
|
list(APPEND PLATFORM_LIBRARIES ${objc_LIBRARY})
|
||||||
|
endif()
|
||||||
elseif (WIN32)
|
elseif (WIN32)
|
||||||
# Target Windows 10
|
# Target Windows 10
|
||||||
add_compile_definitions(_WIN32_WINNT=0x0A00 WINVER=0x0A00)
|
add_compile_definitions(_WIN32_WINNT=0x0A00 WINVER=0x0A00)
|
||||||
|
|||||||
Vendored
+14
@@ -31,6 +31,20 @@ if (NOT YUZU_USE_BUNDLED_FFMPEG)
|
|||||||
--extra-ldflags="-nostdlib"
|
--extra-ldflags="-nostdlib"
|
||||||
)
|
)
|
||||||
set(FFmpeg_IS_CROSS_COMPILING TRUE)
|
set(FFmpeg_IS_CROSS_COMPILING TRUE)
|
||||||
|
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
|
||||||
|
)
|
||||||
|
set(FFmpeg_IS_CROSS_COMPILING TRUE)
|
||||||
# User attempts to do a FFmpeg cross compilation because...
|
# User attempts to do a FFmpeg cross compilation because...
|
||||||
# Here we just quickly test against host/system processors not matching
|
# Here we just quickly test against host/system processors not matching
|
||||||
# TODO: Test for versions not matching as well?
|
# TODO: Test for versions not matching as well?
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user