[ffmpeg] Fix build static error (#10368)

* [ffmpeg] Fix build static error

* Remove additional condition
This commit is contained in:
NancyLi1013 2020-03-19 15:28:10 +08:00 committed by GitHub
parent b5e59140cb
commit 3d82def504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
Source: ffmpeg Source: ffmpeg
Version: 4.2-5 Version: 4.2-6
Build-Depends: zlib Build-Depends: zlib
Homepage: https://ffmpeg.org Homepage: https://ffmpeg.org
Description: a library to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. Description: a library to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created.

View File

@ -1,5 +1,3 @@
include(vcpkg_common_functions)
vcpkg_from_github( vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH OUT_SOURCE_PATH SOURCE_PATH
REPO ffmpeg/ffmpeg REPO ffmpeg/ffmpeg
@ -258,6 +256,10 @@ if(FILES_TO_REMOVE_LEN GREATER 0)
endif() endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
# Handle copyright # Handle copyright