mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 10:05:19 +08:00
116ce79d70
* update many ports * update version * Update ports/daw-header-libraries/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/daw-json-link/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/daw-utf-range/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/daw-json-link/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/daw-json-link/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/daw-utf-range/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * update version Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
41 lines
1.7 KiB
CMake
41 lines
1.7 KiB
CMake
# Header-only library
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO beached/daw_json_link
|
|
REF 828565f48bd077e776fcef322457186d8f01e7eb #v2.10.2
|
|
SHA512 8c870d778c9abb295d323ae913d9e2bb0255f176c7e4f1d8cdf424af9bbe4c5eb650436065bb47e3e8745ff1c12234959526c8dcdf2c169ab55af4b150e6b477
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DDAW_USE_PACKAGE_MANAGEMENT=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/${PORT}/cmake)
|
|
|
|
# remove empty lib and debug/lib directories (and duplicate files from debug/include)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
# Append the json-link and dragonbox license information into a single
|
|
# copyright file (they are both Boost v1.0 but it is good to be clear).
|
|
file(APPEND "${SOURCE_PATH}/copyright" [=[+----------------------------------------------------------------------------+
|
|
| json-link copywrite |
|
|
+----------------------------------------------------------------------------+
|
|
]=])
|
|
file(READ "${SOURCE_PATH}/LICENSE" json_link_copywrite)
|
|
file(APPEND "${SOURCE_PATH}/copyright" ${json_link_copywrite})
|
|
file(APPEND "${SOURCE_PATH}/copyright" [=[
|
|
|
|
|
|
+----------------------------------------------------------------------------+
|
|
| dragonbox copywrite |
|
|
+----------------------------------------------------------------------------+
|
|
]=])
|
|
|
|
file(READ "${SOURCE_PATH}/LICENSE_Dragonbox" dragonbox_copywrite)
|
|
file(APPEND "${SOURCE_PATH}/copyright" ${dragonbox_copywrite})
|
|
file(INSTALL "${SOURCE_PATH}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|