mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 02:03:39 +08:00
[jsonnet] Update to 0.17.0 (#20627)
* Update jsonnet to 0.17.0 * Update CI baseline * add supports * update version * revert portfile.cmake * update version Co-authored-by: chausner <chausner@users.noreply.github.com> Co-authored-by: Jonliu1993 <13720414433@163.com>
This commit is contained in:
parent
cec4e710f7
commit
514f2debfc
@ -1,5 +1,4 @@
|
||||
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
|
||||
index d4e77a8..5d36314 100644
|
||||
--- a/core/CMakeLists.txt
|
||||
+++ b/core/CMakeLists.txt
|
||||
@@ -15,7 +15,8 @@ set(LIBJSONNET_HEADERS
|
||||
@ -39,4 +38,4 @@ index d4e77a8..5d36314 100644
|
||||
+ target_link_libraries(libjsonnet_static nlohmann_json::nlohmann_json)
|
||||
set_target_properties(libjsonnet_static PROPERTIES OUTPUT_NAME jsonnet)
|
||||
install(TARGETS libjsonnet_static DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
||||
endif()
|
||||
target_include_directories(libjsonnet_static INTERFACE
|
||||
|
@ -40,7 +40,6 @@ index c032f02..d80d2a0 100644
|
||||
+ install(TARGETS jsonnetfmt DESTINATION tools/jsonnet)
|
||||
endif()
|
||||
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
|
||||
index d277872..bbf67f7 100644
|
||||
--- a/core/CMakeLists.txt
|
||||
+++ b/core/CMakeLists.txt
|
||||
@@ -28,7 +28,7 @@ set(LIBJSONNET_SOURCE
|
||||
@ -59,8 +58,8 @@ index d277872..bbf67f7 100644
|
||||
- ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
|
||||
if (BUILD_STATIC_LIBS)
|
||||
target_include_directories(libjsonnet INTERFACE
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>)
|
||||
diff --git a/stdlib/CMakeLists.txt b/stdlib/CMakeLists.txt
|
||||
index a481d9f..2f58d2f 100644
|
||||
--- a/stdlib/CMakeLists.txt
|
||||
|
@ -1,5 +1,4 @@
|
||||
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
|
||||
index bbf67f7..7238a59 100644
|
||||
--- a/core/CMakeLists.txt
|
||||
+++ b/core/CMakeLists.txt
|
||||
@@ -28,6 +28,7 @@ set(LIBJSONNET_SOURCE
|
||||
@ -11,9 +10,9 @@ index bbf67f7..7238a59 100644
|
||||
add_dependencies(libjsonnet md5 stdlib)
|
||||
target_link_libraries(libjsonnet md5 nlohmann_json::nlohmann_json)
|
||||
@@ -48,6 +49,7 @@ install(TARGETS libjsonnet
|
||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
target_include_directories(libjsonnet INTERFACE
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>)
|
||||
+endif()
|
||||
|
||||
if (BUILD_STATIC_LIBS)
|
||||
@ -25,7 +24,6 @@ index bbf67f7..7238a59 100644
|
||||
+
|
||||
+install(FILES ${LIB_HEADER} DESTINATION include)
|
||||
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
|
||||
index 6b7b8c3..6dfa1fa 100644
|
||||
--- a/cpp/CMakeLists.txt
|
||||
+++ b/cpp/CMakeLists.txt
|
||||
@@ -8,9 +8,9 @@ set(LIBJSONNETPP_SOURCE
|
||||
@ -40,10 +38,10 @@ index 6b7b8c3..6dfa1fa 100644
|
||||
|
||||
# CMake prepends CMAKE_SHARED_LIBRARY_PREFIX to shared libraries, so without
|
||||
# this step the output would be |liblibjsonnet|.
|
||||
@@ -22,6 +22,7 @@ install(TARGETS libjsonnet++
|
||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||
@@ -24,6 +24,7 @@ install(TARGETS libjsonnet++
|
||||
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
target_include_directories(libjsonnet++ INTERFACE
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>)
|
||||
+endif()
|
||||
|
||||
if (BUILD_STATIC_LIBS)
|
||||
|
@ -5,8 +5,8 @@ endif()
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO google/jsonnet
|
||||
REF 3f58aa551c917d6a7a2c6d042ee27f93d895ac0b # v0.16.0
|
||||
SHA512 448f4ff433a43ec21c3b67ea508d624e03dac420878e453e908a465cd517c79ae657f107c92e28a4ae2d2527baaf9a3ae1c6ea4c7e7e4f5062d3fad4e76e668c
|
||||
REF v0.17.0
|
||||
SHA512 D3EE6947163D8ABCED504FF37ECF365C0311164CBF243D4C635D34944F0831CA9FCE2470ACF00EB9A218F82A2E553B3F885DB9BD21BB9DCEFBD707FA0202925D
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
001-enable-msvc.patch
|
||||
@ -15,6 +15,7 @@ vcpkg_from_github(
|
||||
0004-incorporate-md5.patch
|
||||
)
|
||||
|
||||
# see https://github.com/google/jsonnet/blob/v0.17.0/Makefile#L214
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
find_program(PWSH_PATH pwsh)
|
||||
vcpkg_execute_required_process(
|
||||
@ -38,9 +39,8 @@ else()
|
||||
set(BUILD_STATIC ON)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_SHARED_BINARIES=${BUILD_SHARED}
|
||||
-DBUILD_STATIC_LIBS=${BUILD_STATIC}
|
||||
@ -50,10 +50,10 @@ vcpkg_configure_cmake(
|
||||
-DUSE_SYSTEM_JSON=ON
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/jsonnet)
|
||||
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/jsonnet")
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
@ -1,10 +1,14 @@
|
||||
{
|
||||
"name": "jsonnet",
|
||||
"version-string": "0.16.0",
|
||||
"port-version": 3,
|
||||
"version": "0.17.0",
|
||||
"description": "Jsonnet - The data templating language",
|
||||
"homepage": "https://github.com/google/jsonnet",
|
||||
"supports": "!(windows & !static)",
|
||||
"dependencies": [
|
||||
"nlohmann-json"
|
||||
"nlohmann-json",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -2941,8 +2941,8 @@
|
||||
"port-version": 1
|
||||
},
|
||||
"jsonnet": {
|
||||
"baseline": "0.16.0",
|
||||
"port-version": 3
|
||||
"baseline": "0.17.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"jwt-cpp": {
|
||||
"baseline": "0.5.1",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "24a514c5bcece6b71ac13744ec40f92f285fc689",
|
||||
"version": "0.17.0",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "c6d19c002863644237c3ac276db26c576664f56d",
|
||||
"version-string": "0.16.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user