early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

View File

@@ -0,0 +1,12 @@
diff --git a/src/xmessage.cpp b/src/xmessage.cpp
index 1ab9544..5a14ba0 100644
--- a/src/xmessage.cpp
+++ b/src/xmessage.cpp
@@ -13,6 +13,7 @@
#include <sstream>
#include <string>
#include <utility>
+#include <ciso646>
#include "nlohmann/json.hpp"

48
externals/vcpkg/ports/xeus/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,48 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO QuantStack/xeus
REF 0f6327a2782181e7ded9729abb32b7d8eb690aea # 0.24.3
SHA512 2c0ccd1bebf487a9a73e73ecfb74b7605756652b2a84c71e739d7b2d8923960594c025e36d75cec850c5f0e38614a20299feccea6cfbe9ea0f66bdf315af02b4
HEAD_REF master
PATCHES
Fix-Compile-nlohmann-json.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC_LIBS)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED_LIBS)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_EXAMPLES=OFF
-DXEUS_BUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
-DXEUS_BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
-DBUILD_TESTS=OFF
-DDOWNLOAD_GTEST=OFF
-DDISABLE_ARCH_NATIVE=OFF
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/xeus/xeus.hpp
"#ifdef XEUS_STATIC_LIB"
"#if 1 // #ifdef XEUS_STATIC_LIB"
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
# Install usage
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
externals/vcpkg/ports/xeus/usage vendored Executable file
View File

@@ -0,0 +1,4 @@
The package xeus provides CMake targets:
find_package(xeus CONFIG REQUIRED)
target_link_libraries(main PRIVATE xeus xeus_static)

View File

@@ -0,0 +1,9 @@
_find_package(${ARGS})
if(TARGET xeus AND NOT TARGET xeus_static)
add_library(xeus_static INTERFACE IMPORTED)
set_target_properties(xeus_static PROPERTIES INTERFACE_LINK_LIBRARIES xeus)
elseif(TARGET xeus_static AND NOT TARGET xeus)
add_library(xeus INTERFACE IMPORTED)
set_target_properties(xeus PROPERTIES INTERFACE_LINK_LIBRARIES xeus_static)
endif()

18
externals/vcpkg/ports/xeus/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,18 @@
{
"name": "xeus",
"version-string": "0.24.3",
"port-version": 1,
"description": "C++ implementation of the Jupyter kernel protocol",
"homepage": "https://github.com/jupyter-xeus/xeus",
"dependencies": [
"cppzmq",
{
"name": "libuuid",
"platform": "linux"
},
"nlohmann-json",
"openssl",
"xtl",
"zeromq"
]
}