vcpkg/ports/libwebm/portfile.cmake

33 lines
876 B
CMake
Raw Normal View History

2018-10-24 01:38:27 +08:00
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
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()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
2018-10-24 01:38:27 +08:00
OPTIONS ${LIBWEBM_CRT_LINKAGE}
-DCMAKE_DEBUG_POSTFIX=d
2018-10-24 01:38:27 +08:00
)
2017-03-15 06:20:39 +08:00
vcpkg_install_cmake()
2017-03-15 06:20:39 +08:00
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)