2018-10-24 01:38:27 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO webmproject/libwebm
|
2021-11-06 05:27:59 +08:00
|
|
|
REF 82a1d2330e113a14e545d806eb5419f09374255f #1.0.0.28
|
|
|
|
SHA512 7baf6f702f0e4498c9b0affebeba3ff28192c5f3dadfa5a17db2306816b3a9e31ce7a474e4d344ba136e5acf097c32d4ff61ce99861d427cdfb2f20e317d7e15
|
2018-10-24 01:38:27 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2021-11-06 05:27:59 +08:00
|
|
|
Fix-cmake.patch
|
2017-03-15 06:20:39 +08:00
|
|
|
)
|
|
|
|
|
2018-10-24 01:38:27 +08:00
|
|
|
if(VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
2017-03-15 06:20:39 +08:00
|
|
|
set(LIBWEBM_CRT_LINKAGE -DMSVC_RUNTIME=dll)
|
|
|
|
else()
|
|
|
|
set(LIBWEBM_CRT_LINKAGE -DMSVC_RUNTIME=static)
|
|
|
|
endif()
|
|
|
|
|
2021-11-06 05:27:59 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
${LIBWEBM_CRT_LINKAGE}
|
|
|
|
-DENABLE_SAMPLES=OFF
|
|
|
|
-DENABLE_TOOLS=OFF
|
|
|
|
-DENABLE_WEBMTS=OFF
|
|
|
|
-DENABLE_WEBMINFO=OFF
|
2018-10-24 01:38:27 +08:00
|
|
|
)
|
2017-03-15 06:20:39 +08:00
|
|
|
|
2021-11-06 05:27:59 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-03-05 15:52:07 +08:00
|
|
|
|
2017-03-15 06:20:39 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-11-06 05:27:59 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-03-15 06:20:39 +08:00
|
|
|
|
2021-11-06 05:27:59 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|