mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 13:37:58 +08:00
940b33e52d
* mbedtls: init port * add VCPKG_LIBRARY_LINKAGE for static libs only * [mbedtls] Slight cleanup
28 lines
680 B
CMake
28 lines
680 B
CMake
include(vcpkg_common_functions)
|
|
|
|
set(VCPKG_LIBRARY_LINKAGE static)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO ARMmbed/mbedtls
|
|
REF mbedtls-2.6.1
|
|
SHA512 06f8ba2a453164bac01d20ca6f5c80e691857977ef501d56685e81a0e90dddae1bedeab46c18c22f9a3b72894d45d7466f76a5c404417b6613ddae0ee4a881c8
|
|
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()
|