2016-10-11 20:45:43 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-05-28 20:28:34 +08:00
|
|
|
|
2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-05-28 20:28:34 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/double-conversion
|
2019-05-22 12:00:24 +08:00
|
|
|
REF v3.1.4
|
|
|
|
SHA512 715a34ace2ff74b79d80a8c003c16cfbf958ebc92264e28cc572e1a12a786e1df9678abb46f032c2be387495e1a3d02957b12fa4a245ec6cfe19ca637519ac3c
|
2017-05-28 20:28:34 +08:00
|
|
|
HEAD_REF master
|
2016-10-11 20:45:43 +08:00
|
|
|
)
|
2017-05-23 17:31:09 +08:00
|
|
|
|
2017-05-28 20:28:34 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-08-06 07:10:48 +08:00
|
|
|
PREFER_NINJA
|
2017-05-28 20:28:34 +08:00
|
|
|
)
|
|
|
|
|
2016-11-02 05:37:15 +08:00
|
|
|
vcpkg_install_cmake()
|
2017-05-28 20:28:34 +08:00
|
|
|
|
2017-08-06 07:10:48 +08:00
|
|
|
# Rename exported target files into something vcpkg_fixup_cmake_targets expects
|
2018-03-22 02:34:24 +08:00
|
|
|
if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/cmake/double-conversion)
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/double-conversion)
|
|
|
|
endif()
|
2016-10-11 20:45:43 +08:00
|
|
|
|
2017-05-28 20:28:34 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2016-10-11 20:45:43 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Handle copyright
|
2018-10-26 06:53:48 +08:00
|
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/double-conversion/copyright COPYONLY)
|