Skip to content

Commit cf3e016

Browse files
committed
[libxlsxwriter] port tweak
1 parent 6094311 commit cf3e016

File tree

4 files changed

+83
-0
lines changed

4 files changed

+83
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff -Naur a/CMakeLists.txt b/CMakeLists.txt
2+
--- a/CMakeLists.txt 2025-07-01 01:12:54.000000000 +0200
3+
+++ b/CMakeLists.txt 2025-10-16 15:16:13.387344300 +0200
4+
@@ -244,7 +244,7 @@
5+
"${CMAKE_C_FLAGS} -static -static-libgcc -Wno-char-subscripts -Wno-long-long"
6+
)
7+
list(APPEND LXW_PRIVATE_COMPILE_DEFINITIONS USE_FILE32API)
8+
- elseif(MSVC)
9+
+ elseif(FALSE)
10+
set(CMAKE_C_FLAGS_DEBUG
11+
"${CMAKE_C_FLAGS_DEBUG} /Fd\"${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pdb\""
12+
)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO jmcnamara/libxlsxwriter
4+
REF "v${VERSION}"
5+
SHA512 5934521b0ef913a304dee282ed6914387fb9f330368eec29fa6dadb320e9d44b87840266399e4685df70f3e63de404a4acc01369fd26930e81e8f62ff6993a9d
6+
HEAD_REF main
7+
PATCHES
8+
pdb.patch
9+
)
10+
file(REMOVE_RECURSE "${SOURCE_PATH}/third_party/minizip")
11+
12+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
13+
FEATURES
14+
"dtoa" USE_DTOA_LIBRARY
15+
"openssl-md5" USE_OPENSSL_MD5
16+
"mem-file" USE_MEM_FILE
17+
)
18+
19+
set(USE_WINDOWSSTORE OFF)
20+
if (VCPKG_TARGET_IS_UWP)
21+
set(USE_WINDOWSSTORE ON)
22+
endif()
23+
24+
vcpkg_cmake_configure(
25+
SOURCE_PATH "${SOURCE_PATH}"
26+
OPTIONS
27+
-DUSE_SYSTEM_MINIZIP=1
28+
-DWINDOWSSTORE=${USE_WINDOWSSTORE}
29+
${FEATURE_OPTIONS}
30+
)
31+
32+
vcpkg_cmake_install()
33+
vcpkg_fixup_pkgconfig()
34+
vcpkg_copy_pdbs()
35+
36+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
37+
38+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License.txt")
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Overlay reason:
2+
- Invalid hardcoded pdb compiler flags on windows
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "libxlsxwriter",
3+
"version": "1.2.3",
4+
"description": "Libxlsxwriter is a C library that can be used to write text, numbers, formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file.",
5+
"homepage": "https://github.com/jmcnamara/libxlsxwriter",
6+
"documentation": "https://libxlsxwriter.github.io",
7+
"license": "BSD-2-Clause",
8+
"dependencies": [
9+
"minizip",
10+
{
11+
"name": "vcpkg-cmake",
12+
"host": true
13+
},
14+
"zlib"
15+
],
16+
"features": {
17+
"dtoa": {
18+
"description": "Use the Milo Yip DTOA library"
19+
},
20+
"mem-file": {
21+
"description": "Use memory files instead of temp files",
22+
"supports": "!windows"
23+
},
24+
"openssl-md5": {
25+
"description": "Use Openssl MD5",
26+
"dependencies": [
27+
"openssl"
28+
]
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)