mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-22 18:47:09 +01:00
parent
3367e55463
commit
3135a31be7
@ -1,4 +1,4 @@
|
|||||||
Source: xlnt
|
Source: xlnt
|
||||||
Version: 1.3.0-2
|
Version: 1.4.0
|
||||||
Homepage: https://github.com/tfussell/xlnt
|
Homepage: https://github.com/tfussell/xlnt
|
||||||
Description: Cross-platform user-friendly xlsx library for C++14
|
Description: Cross-platform user-friendly xlsx library for C++14
|
||||||
|
@ -1,30 +1,38 @@
|
|||||||
include(vcpkg_common_functions)
|
if(VCPKG_TARGET_IS_WINDOWS)
|
||||||
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||||
vcpkg_from_github(
|
set(win_patch "static-linking-for-windows.patch")
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
endif()
|
||||||
REPO tfussell/xlnt
|
endif()
|
||||||
REF v1.3.0
|
|
||||||
SHA512 716b93a6138daf1e293980a3c26801bfd00aa713afdd9cbe9be672ccff8c86b69b26eb0f3e8259bd0844e04d0e6148b64467d7db6815c76ecf412715d506786f
|
vcpkg_from_github(
|
||||||
HEAD_REF master
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
)
|
REPO tfussell/xlnt
|
||||||
|
REF v1.4.0
|
||||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
SHA512 74abbee97994098fb7d8fd0839929db74fe01b8428f8bdb8edd28340d3b3ed04d4c7d6dd5d886ae766054ff1b0fe9a8275098a1462e7a5146ff09f1cdb063360
|
||||||
set(STATIC OFF)
|
HEAD_REF master
|
||||||
else()
|
PATCHES
|
||||||
set(STATIC ON)
|
${win_patch}
|
||||||
endif()
|
)
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
set(STATIC OFF)
|
||||||
PREFER_NINJA
|
else()
|
||||||
OPTIONS -DTESTS=OFF -DSAMPLES=OFF -DBENCHMARKS=OFF -DSTATIC=${STATIC}
|
set(STATIC ON)
|
||||||
)
|
endif()
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_configure_cmake(
|
||||||
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
PREFER_NINJA
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
OPTIONS -DTESTS=OFF -DSAMPLES=OFF -DBENCHMARKS=OFF -DSTATIC=${STATIC}
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/man)
|
)
|
||||||
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/xlnt RENAME copyright)
|
|
||||||
|
vcpkg_install_cmake()
|
||||||
vcpkg_copy_pdbs()
|
|
||||||
|
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()
|
||||||
|
13
ports/xlnt/static-linking-for-windows.patch
Normal file
13
ports/xlnt/static-linking-for-windows.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/include/xlnt/xlnt.hpp b/include/xlnt/xlnt.hpp
|
||||||
|
index 01fe4981..9cefa6e0 100644
|
||||||
|
--- a/include/xlnt/xlnt.hpp
|
||||||
|
+++ b/include/xlnt/xlnt.hpp
|
||||||
|
@@ -22,7 +22,7 @@
|
||||||
|
// @author: see AUTHORS file
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
-
|
||||||
|
+#define XLNT_STATIC
|
||||||
|
#include <xlnt/xlnt_config.hpp>
|
||||||
|
|
||||||
|
// cell
|
Loading…
x
Reference in New Issue
Block a user