mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 19:19:04 +08:00
a6c5c0140d
* fix missing include * update * update to v3.0.4 * update to v3.0.4
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 6275cd9dadfed96e1b21e552657680ea9fce24cb #v3.0.4
|
|
SHA512 7ba326480047b1cfc3cf40114d2793e368d5bc8e90a4e690f17fbac1066e6a89b2c031bef19abab9199b83314dff327651b67f73654e306b17b070b85c50a0f6
|
|
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}")
|