Files
archived-ffmpeg-core/triplets/x64-win-llvm-static-release.cmake
Macdu e30b7d7fe2 FFMPEG setup
Contains the following squashed commits from the old branch:

Initial commit

Fix link order

Add option to link against system ffmpeg, disable precompiled binaries for mingw

Update macOS files for XCode 12

Update ffmpeg to 5.1.2

Add mjpeg encoder (#7)

Add mjpeg2jpeg bitstream filter

Add macOS-arm64 builds

Add macOS arm64 to CMakeLists

Add arm64-osx-release to build.yml

dummy commit to trigger workflow

Properly split macOS builds in build.yml

Try to fix actions uploads

Rename the builds

Fix build.yml

Fix typo in build.yml

Amend CMakeLists using the correct check

ci: change upload path to directly upload libraries

ci: build and use universal binary on macOS

ci: set macOS deployment target to macOS 11.0

ci: build FFMPEG prebuilt for each OS/architecture

Add linux arm64 prebuilt.
Add both x86_64 and arm64 prebuilts for macOS.

ci: create release for pre-built FFMPEG

cmake: download and use only necessary prebuilt FFMPEG

Add arm64 windows prebuilt

Co-authored-by: Seungyun Lee <khora.lee.0@gmail.com>
Co-authored-by: shinra-electric <50119606+shinra-electric@users.noreply.github.com>
Co-authored-by: SaturnSky <ikadro@gmail.com>
2024-03-12 21:44:17 +01:00

27 lines
1.0 KiB
CMake

# This triplet is tested in vcpkg ci via https://github.com/microsoft/vcpkg/pull/25897
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_BUILD_TYPE release)
## Toolchain setup
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE "${CMAKE_CURRENT_LIST_DIR}/x64-win-llvm/x64-win-llvm.toolchain.cmake")
set(VCPKG_LOAD_VCVARS_ENV ON) # Setting VCPKG_CHAINLOAD_TOOLCHAIN_FILE deactivates automatic vcvars setup so reenable it!
if(DEFINED VCPKG_PLATFORM_TOOLSET)
set(VCPKG_PLATFORM_TOOLSET ClangCL)
endif()
set(VCPKG_ENV_PASSTHROUGH_UNTRACKED "LLVMInstallDir;LLVMToolsVersion") # For the ClangCL toolset
set(VCPKG_QT_TARGET_MKSPEC win32-clang-msvc) # For Qt5
## Policy settings
set(VCPKG_POLICY_SKIP_ARCHITECTURE_CHECK enabled)
set(VCPKG_POLICY_SKIP_DUMPBIN_CHECKS enabled)
set(VCPKG_CMAKE_CONFIGURE_OPTIONS
"-DCMAKE_TRY_COMPILE_CONFIGURATION=Release"
)
include("${CMAKE_CURRENT_LIST_DIR}/x64-win-llvm/extra_setup.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/x64-win-llvm/port_specialization.cmake")