early-access version 2853
This commit is contained in:
40
externals/vcpkg/ports/daw-json-link/portfile.cmake
vendored
Executable file
40
externals/vcpkg/ports/daw-json-link/portfile.cmake
vendored
Executable file
@@ -0,0 +1,40 @@
|
||||
# Header-only library
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO beached/daw_json_link
|
||||
REF b90116a13ca3e2ce37e6890b309d1fd2c1979ae3 #v2.14.0
|
||||
SHA512 d185e0849592d5a871d453a8a27a265c51d5aafb6284b03c64400a9e316afa3f502bd9a1983aed5cfd58509a212e2eb1293887dd672523e71c89c2ec089235ce
|
||||
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}")
|
||||
18
externals/vcpkg/ports/daw-json-link/vcpkg.json
vendored
Executable file
18
externals/vcpkg/ports/daw-json-link/vcpkg.json
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "daw-json-link",
|
||||
"version": "2.14.0",
|
||||
"description": "Perhaps the fastest JSON deserializer/serializer posssible or at least close to it.",
|
||||
"homepage": "https://github.com/beached/daw_json_link",
|
||||
"license": "BSL-1.0",
|
||||
"dependencies": [
|
||||
"daw-utf-range",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user