mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[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:
parent
4934cb4099
commit
bff0e8fc31
@ -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)
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3782,7 +3782,7 @@
|
||||
},
|
||||
"libvpx": {
|
||||
"baseline": "1.10.0",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"libwandio": {
|
||||
"baseline": "4.2.1",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "79a7e2cf4e6df063990dc59d1aa221150eb0ce0e",
|
||||
"version-semver": "1.10.0",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "55be5e09000631b1dacd6f86d174eb2cade91bf5",
|
||||
"version-semver": "1.10.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user