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/cmake/XlntConfig.cmake.in b/cmake/XlntConfig.cmake.in
index 01fe4981..9cefa6e0 100644
--- a/cmake/XlntConfig.cmake.in
+++ b/cmake/XlntConfig.cmake.in
@@ -7,7 +7,6 @@
get_filename_component(XLNT_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
-set_and_check(XLNT_INCLUDE_DIR "@XLNT_INCLUDE_INSTALL_DIR@")
check_required_components(xlnt)
if(NOT TARGET xlnt::xlnt)

42
externals/vcpkg/ports/xlnt/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,42 @@
if(VCPKG_TARGET_IS_WINDOWS)
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
set(win_patch "static-linking-for-windows.patch")
endif()
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO tfussell/xlnt
REF 568ac85346bc37757b0cd16464e7e1ea7656df91 # v1.5.0
SHA512 414d691b372934326dc0da134eb7752c27c3223b6e92b433494d0758ca657f43b66894ad54ac97a8410387a2531a573c81572daa6a0434fa023e8e29ca74331c
HEAD_REF master
PATCHES
"fix-not-found-include.patch"
${win_patch}
)
file(REMOVE "${SOURCE_PATH}/third-party/libstudxml/version")
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
set(STATIC OFF)
else()
set(STATIC ON)
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS -DTESTS=OFF -DSAMPLES=OFF -DBENCHMARKS=OFF -DSTATIC=${STATIC}
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/xlnt)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/man)
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()

View File

@@ -0,0 +1,16 @@
diff --git a/include/xlnt/xlnt.hpp b/include/xlnt/xlnt.hpp
index fdd33c38..0d21128f 100644
--- a/include/xlnt/xlnt.hpp
+++ b/include/xlnt/xlnt.hpp
@@ -23,6 +23,11 @@
#pragma once
+// Patched by vcpkg to handle static non-cmake builds
+#ifndef XLNT_STATIC
+#define XLNT_STATIC
+#endif
+
#include <xlnt/xlnt_config.hpp>
// cell

7
externals/vcpkg/ports/xlnt/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,7 @@
{
"name": "xlnt",
"version": "1.5.0",
"port-version": 3,
"description": "Cross-platform user-friendly xlsx library for C++14",
"homepage": "https://github.com/tfussell/xlnt"
}