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
|
2022-02-19 06:39:34 +08:00
|
|
|
REF 9e0c13564e17362aad8a32c1344a2214f71952c6 #v3.2.0
|
|
|
|
SHA512 4579ae02196a2722cbce2888a404d026d62523256aa5f726c4b46aa25aa76d3caaf653848afb88939aac697049afc8968ddecda8a093520b392c9f963559a992
|
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
|
|
|
|
2022-02-19 06:39:34 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-05-28 20:28:34 +08:00
|
|
|
)
|
|
|
|
|
2022-02-19 06:39:34 +08:00
|
|
|
vcpkg_cmake_install()
|
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
|
2022-02-19 06:39:34 +08:00
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/${PORT}")
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2018-03-22 02:34:24 +08:00
|
|
|
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
|
|
|
|
2022-02-19 06:39:34 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2016-10-11 20:45:43 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-02-19 06:39:34 +08:00
|
|
|
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|