Skip to content

Commit 08d595c

Browse files
KhoraLeeAniLeo
authored andcommitted
ci: set macOS deployment target to macOS 11.0
1 parent aee03a7 commit 08d595c

File tree

8 files changed

+14
-2
lines changed

8 files changed

+14
-2
lines changed

ffmpeg.patch

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/ports/ffmpeg/portfile.cmake b/ports/ffmpeg/portfile.cmake
2-
index 35bac875b..5137c69be 100644
2+
index 35bac875b..b16d9cb64 100644
33
--- a/ports/ffmpeg/portfile.cmake
44
+++ b/ports/ffmpeg/portfile.cmake
55
@@ -42,7 +42,20 @@ else()
@@ -24,7 +24,7 @@ index 35bac875b..5137c69be 100644
2424

2525
if(VCPKG_TARGET_IS_WINDOWS)
2626
vcpkg_acquire_msys(MSYS_ROOT PACKAGES automake1.16)
27-
@@ -80,7 +92,7 @@ endif()
27+
@@ -80,7 +93,7 @@ endif()
2828
vcpkg_cmake_get_vars(cmake_vars_file)
2929
include("${cmake_vars_file}")
3030
if(VCPKG_DETECTED_MSVC)
@@ -33,3 +33,15 @@ index 35bac875b..5137c69be 100644
3333
set(OPTIONS "--toolchain=msvc ${OPTIONS}")
3434
# This is required because ffmpeg depends upon optimizations to link correctly
3535
string(APPEND VCPKG_COMBINED_C_FLAGS_DEBUG " -O2")
36+
@@ -574,6 +587,11 @@ if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
37+
# We use response files here as the only known way to handle spaces in paths
38+
set(crsp "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/cflags.rsp")
39+
string(REGEX REPLACE "-arch [A-Za-z0-9_]+" "" VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED "${VCPKG_COMBINED_C_FLAGS_RELEASE}")
40+
+ if(VCPKG_TARGET_IS_OSX)
41+
+ # macosx-version-min version is set with current macOS version. So replace them to 11.0
42+
+ string(REGEX REPLACE "-mmacosx-version-min=[0-9]+.[0-9]+" "" VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED "${VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED}")
43+
+ string(APPEND VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED " -mmacosx-version-min=11.0")
44+
+ endif()
45+
file(WRITE "${crsp}" "${VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED}")
46+
set(ldrsp "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/ldflags.rsp")
47+
string(REGEX REPLACE "-arch [A-Za-z0-9_]+" "" VCPKG_COMBINED_SHARED_LINKER_FLAGS_RELEASE_SANITIZED "${VCPKG_COMBINED_SHARED_LINKER_FLAGS_RELEASE}")

lib/macos/libavcodec.a

1.95 KB
Binary file not shown.

lib/macos/libavdevice.a

40 Bytes
Binary file not shown.

lib/macos/libavfilter.a

192 Bytes
Binary file not shown.

lib/macos/libavformat.a

632 Bytes
Binary file not shown.

lib/macos/libavutil.a

960 Bytes
Binary file not shown.

lib/macos/libswresample.a

112 Bytes
Binary file not shown.

lib/macos/libswscale.a

192 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)