2017-12-09 16:00:06 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
|
|
|
set(VCPKG_LIBRARY_LINKAGE static)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ARMmbed/mbedtls
|
2019-08-07 04:24:24 +08:00
|
|
|
REF mbedtls-2.16.2
|
|
|
|
SHA512 55af897ea3a1455ec4c16980a504a542333e8465bdf89d77b756e6d9893c394166ec880734ecdb10ec0643ddc828bf21e2dd8891b1b4a431e9c57e63a07915aa
|
2017-12-09 16:00:06 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DENABLE_TESTING=OFF
|
|
|
|
-DENABLE_PROGRAMS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/mbedtls RENAME copyright)
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|