early-access version 2853
This commit is contained in:
12
externals/vcpkg/ports/libavif/disable-source-utf8.patch
vendored
Executable file
12
externals/vcpkg/ports/libavif/disable-source-utf8.patch
vendored
Executable file
@@ -0,0 +1,12 @@
|
||||
diff -pruN v0.9.0-92388ab3ad.clean.o/CMakeLists.txt v0.9.0-92388ab3ad.clean/CMakeLists.txt
|
||||
--- a/CMakeLists.txt 2021-02-23 04:51:41.000000000 +0300
|
||||
+++ b/CMakeLists.txt 2021-04-14 23:35:50.866487600 +0300
|
||||
@@ -165,7 +165,7 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC
|
||||
# A C4556 warning will be generated on violation.
|
||||
# Commonly used /utf-8 flag assumes UTF-8 for both source and console, which is usually not the case.
|
||||
# Warnings can be suppressed but there will still be random characters printed to the console.
|
||||
- /source-charset:utf-8 /execution-charset:us-ascii
|
||||
+ #/source-charset:utf-8 /execution-charset:us-ascii
|
||||
)
|
||||
else()
|
||||
MESSAGE(FATAL_ERROR "libavif: Unknown compiler, bailing out")
|
||||
33
externals/vcpkg/ports/libavif/portfile.cmake
vendored
Executable file
33
externals/vcpkg/ports/libavif/portfile.cmake
vendored
Executable file
@@ -0,0 +1,33 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO AOMediaCodec/libavif
|
||||
REF v0.9.2
|
||||
SHA512 04400ae76214d2f0361a14897d6ee97be675375865bb96c8d237e9a4a1152ac1a966db903c11df82da71b0bc68599a5857e038cc90d63c5d3bc77b13169a3e75
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
disable-source-utf8.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DAVIF_CODEC_AOM=ON
|
||||
-DAVIF_BUILD_APPS=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
# Move cmake configs
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
||||
|
||||
# Fix pkg-config files
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
# Remove duplicate files
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
19
externals/vcpkg/ports/libavif/vcpkg.json
vendored
Executable file
19
externals/vcpkg/ports/libavif/vcpkg.json
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "libavif",
|
||||
"version-semver": "0.9.2",
|
||||
"port-version": 1,
|
||||
"description": "Library for encoding and decoding AVIF files",
|
||||
"homepage": "https://github.com/AOMediaCodec/libavif",
|
||||
"dependencies": [
|
||||
"aom",
|
||||
"libyuv",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user