[x264] check exists before rename (#21501)

* [x264] Use conditional for renaming debug lib

* update version database
This commit is contained in:
itsmattkc 2021-11-26 01:15:47 -08:00 committed by GitHub
parent 18c9639021
commit cb4c366fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 2 deletions

View File

@ -71,7 +71,10 @@ endif()
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic" AND VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
file(RENAME ${CURRENT_PACKAGES_DIR}/lib/libx264.dll.lib ${CURRENT_PACKAGES_DIR}/lib/libx264.lib)
if (NOT VCPKG_BUILD_TYPE)
file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/libx264.dll.lib ${CURRENT_PACKAGES_DIR}/debug/lib/libx264.lib)
endif()
elseif(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
# force U_STATIC_IMPLEMENTATION macro
file(READ ${CURRENT_PACKAGES_DIR}/include/x264.h HEADER_CONTENTS)

View File

@ -1,6 +1,7 @@
{
"name": "x264",
"version-string": "164-5db6aa6cab1b146",
"port-version": 1,
"description": "x264 is a free software library and application for encoding video streams into the H.264/MPEG-4 AVC compression format",
"homepage": "https://github.com/mirror/x264",
"supports": "!arm",

View File

@ -7242,7 +7242,7 @@
},
"x264": {
"baseline": "164-5db6aa6cab1b146",
"port-version": 0
"port-version": 1
},
"x265": {
"baseline": "3.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8d6c7ba5815a0683a2915df5f95de5d06e938781",
"version-string": "164-5db6aa6cab1b146",
"port-version": 1
},
{
"git-tree": "2280334f1235046e20f80586b7d83893f52b23b7",
"version-string": "164-5db6aa6cab1b146",