mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
82034dbd5f
* [libwebm] upstream changes for Android NDK r15b This applies upstream changes from master to libwebm 1.0.0.27 to support building with Android NDK r15b and later up through Android NDK r23 beta. Commits taken from https://chromium.googlesource.com/webm/libwebm master branch: 0ae757087f5e6eb01dfea16cc09205b2425cfb74 Fix android build failure with NDK r15b. 90967863b2f67962f52595a26abb8e4fa4105d44 mkvparser: fix float conversion warning * [libwebm] update control file * [libwebm] update versions * Update ports/libwebm/CONTROL Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update versions/baseline.json Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update versions/l-/libwebm.json Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update versions/baseline.json Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [libpx] use file INSTALL instead of COPY & RENAME * [libvpx] update versions Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
33 lines
876 B
CMake
33 lines
876 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO webmproject/libwebm
|
|
REF libwebm-1.0.0.27
|
|
SHA512 15650b8b121b226654a5abed45a3586ddaf785dee8dac7c72df3f3f9aef76af4e561b75a2ef05328af8dfcfde21948b2edb59cd884dad08b8919cab4ee5a8596
|
|
HEAD_REF master
|
|
PATCHES
|
|
0001-fix-cmake.patch
|
|
no-samples.patch
|
|
0003-fix-android-ndk-r22.patch
|
|
)
|
|
|
|
if(VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
|
set(LIBWEBM_CRT_LINKAGE -DMSVC_RUNTIME=dll)
|
|
else()
|
|
set(LIBWEBM_CRT_LINKAGE -DMSVC_RUNTIME=static)
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS ${LIBWEBM_CRT_LINKAGE}
|
|
-DCMAKE_DEBUG_POSTFIX=d
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|