[libvpx] Add realtime and highbitdepth features. (#19532)

* added features for vpx to enable realtime, highbitdepth and pic

* output of vcpkg format-manifest

* added port version

* ran format-manifest again

* changed to port version 1 as implicit version is 0

* added updated version files

* removed pic feature and instead set --enable-pic as default option

* updated version database

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
sslivins 2021-09-02 13:11:17 -07:00 committed by GitHub
parent 4934cb4099
commit bff0e8fc31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 7 deletions

View File

@ -70,6 +70,16 @@ if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
set(LIBVPX_TARGET_VS "vs15")
endif()
set(OPTIONS "--disable-examples --disable-tools --disable-docs --enable-pic")
if("realtime" IN_LIST FEATURES)
set(OPTIONS "${OPTIONS} --enable-realtime-only")
endif()
if("highbitdepth" IN_LIST FEATURES)
set(OPTIONS "${OPTIONS} --enable-vp9-highbitdepth")
endif()
message(STATUS "Generating makefile")
file(MAKE_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}")
vcpkg_execute_required_process(
@ -78,9 +88,7 @@ if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
"${SOURCE_PATH}/configure"
--target=${LIBVPX_TARGET_ARCH}-${LIBVPX_TARGET_VS}
${LIBVPX_CRT_LINKAGE}
--disable-examples
--disable-tools
--disable-docs
${OPTIONS}
--as=nasm
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}"
LOGNAME configure-${TARGET_TRIPLET})
@ -143,7 +151,7 @@ if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
else()
set(OPTIONS "--disable-examples --disable-tools --disable-docs --disable-unit-tests")
set(OPTIONS "--disable-examples --disable-tools --disable-docs --disable-unit-tests --enable-pic")
set(OPTIONS_DEBUG "--enable-debug-libs --enable-debug --prefix=${CURRENT_PACKAGES_DIR}/debug")
set(OPTIONS_RELEASE "--prefix=${CURRENT_PACKAGES_DIR}")
@ -154,6 +162,14 @@ else()
set(OPTIONS "${OPTIONS} --enable-static --disable-shared")
endif()
if("realtime" IN_LIST FEATURES)
set(OPTIONS "${OPTIONS} --enable-realtime-only")
endif()
if("highbitdepth" IN_LIST FEATURES)
set(OPTIONS "${OPTIONS} --enable-vp9-highbitdepth")
endif()
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
set(LIBVPX_TARGET_ARCH "x86")
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)

View File

@ -1,7 +1,15 @@
{
"name": "libvpx",
"version-semver": "1.10.0",
"port-version": 1,
"port-version": 2,
"description": "The reference software implementation for the video coding formats VP8 and VP9.",
"homepage": "https://github.com/webmproject/libvpx"
"homepage": "https://github.com/webmproject/libvpx",
"features": {
"highbitdepth": {
"description": "use VP9 high bit depth (10/12) profiles"
},
"realtime": {
"description": "enable this option while building for real-time encoding"
}
}
}

View File

@ -3782,7 +3782,7 @@
},
"libvpx": {
"baseline": "1.10.0",
"port-version": 1
"port-version": 2
},
"libwandio": {
"baseline": "4.2.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "79a7e2cf4e6df063990dc59d1aa221150eb0ce0e",
"version-semver": "1.10.0",
"port-version": 2
},
{
"git-tree": "55be5e09000631b1dacd6f86d174eb2cade91bf5",
"version-semver": "1.10.0",