This repository was archived by the owner on Jan 6, 2025. It is now read-only.
File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,9 @@ case ${ARCH} in
65
65
ARCH_OPTIONS=" -DARCH_X86_64=1 -DENABLE_SSE4_1=1 -DHAVE_SSE4_2=1"
66
66
;;
67
67
x86-64-mac-catalyst)
68
- cp /Users/taner/Projects/mobile-ffmpeg /tools/cmake/libaom.x86_64-mac-catalyst.cmake ${BASEDIR} /src/${LIB_NAME} /build/cmake/toolchains/x86_64-mac-catalyst.cmake
68
+ cp ${BASEDIR} /tools/cmake/libaom.x86_64-mac-catalyst.cmake ${BASEDIR} /src/${LIB_NAME} /build/cmake/toolchains/x86_64-mac-catalyst.cmake
69
69
TOOLCHAIN_FILE=" ${BASEDIR} /src/${LIB_NAME} /build/cmake/toolchains/x86_64-mac-catalyst.cmake"
70
- ARCH_OPTIONS=" -DARCH_X86_64=0 -DENABLE_SSE=0 -DENABLE_SSE2=0 -DHAVE_SSE3 =0 -DHAVE_SSE4_1 =0 -DHAVE_SSE4_2 =0 -DENABLE_MMX=0"
70
+ ARCH_OPTIONS=" -DARCH_X86_64=0 -DENABLE_SSE=0 -DENABLE_SSE2=0 -DENABLE_SSE3 =0 -DENABLE_SSE4_1 =0 -DENABLE_SSE4_2 =0 -DENABLE_MMX=0 -DCONFIG_OS_SUPPORT=0 -DCONFIG_RUNTIME_CPU_DETECT =0"
71
71
;;
72
72
esac
73
73
@@ -82,9 +82,11 @@ cd cmake-build
82
82
83
83
# Workaround to disable asm on mac catalyst
84
84
if [ ${ARCH} == " x86-64-mac-catalyst" ]; then
85
+ ${SED_INLINE} ' s/define aom_clear_system_state() aom_reset_mmx_state()/define aom_clear_system_state()/g' ${BASEDIR} /src/${LIB_NAME} /aom_ports/system_state.h
85
86
${SED_INLINE} ' s/ add_asm_library("aom_ports/#add_asm_library("aom_ports/g' ${BASEDIR} /src/${LIB_NAME} /aom_ports/aom_ports.cmake
86
87
${SED_INLINE} ' s/ target_sources(aom_ports/#target_sources(aom_ports/g' ${BASEDIR} /src/${LIB_NAME} /aom_ports/aom_ports.cmake
87
88
else
89
+ ${SED_INLINE} ' s/define aom_clear_system_state()/define aom_clear_system_state() aom_reset_mmx_state()/g' ${BASEDIR} /src/${LIB_NAME} /aom_ports/system_state.h
88
90
${SED_INLINE} ' s/#add_asm_library("aom_ports/ add_asm_library("aom_ports/g' ${BASEDIR} /src/${LIB_NAME} /aom_ports/aom_ports.cmake
89
91
${SED_INLINE} ' s/#target_sources(aom_ports/ target_sources(aom_ports/g' ${BASEDIR} /src/${LIB_NAME} /aom_ports/aom_ports.cmake
90
92
fi
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ set(CMAKE_SYSTEM_PROCESSOR "x86_64")
21
21
set (CMAKE_OSX_ARCHITECTURES "x86_64" )
22
22
23
23
set (CMAKE_SYSTEM_NAME "Darwin" )
24
- set (CMAKE_OSX_SYSROOT macosx )
24
+ set (CMAKE_OSX_SYSROOT ${SDK_PATH} )
25
25
set (CMAKE_C_COMPILER clang)
26
26
set (CMAKE_C_COMPILER_ARG1 "-arch ${CMAKE_SYSTEM_PROCESSOR} " )
27
27
set (CMAKE_CXX_COMPILER clang++)
You can’t perform that action at this time.
0 commit comments