[libxlsxwriter] Install public 3rd-party headers (#53753)

This commit is contained in:
Kai Pastor 2026-09-04 08:23:48 +02:00 committed by GitHub
parent 3cab406c07
commit 0f281a654b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 49 additions and 4 deletions

View File

@ -38,6 +38,13 @@ vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/xlsxwriter/third_party")
set(public_third_party_files # used by include/xlsxwriter/common.h
"${CURRENT_PACKAGES_DIR}/include/xlsxwriter/third_party/queue.h"
"${CURRENT_PACKAGES_DIR}/include/xlsxwriter/third_party/tree.h"
)
file(GLOB third_party_files "${CURRENT_PACKAGES_DIR}/include/xlsxwriter/third_party/*")
list(REMOVE_ITEM third_party_files ${public_third_party_files})
file(REMOVE_RECURSE ${third_party_files})
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License.txt")

View File

@ -1,11 +1,11 @@
{
"name": "libxlsxwriter",
"version": "1.2.4",
"port-version": 1,
"port-version": 2,
"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.",
"homepage": "https://github.com/jmcnamara/libxlsxwriter",
"documentation": "https://libxlsxwriter.github.io",
"license": "BSD-2-Clause",
"license": null,
"dependencies": [
"minizip",
{

View File

@ -0,0 +1,7 @@
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
vcpkg_find_acquire_program(PKGCONFIG)
set(ENV{PKG_CONFIG} "${PKGCONFIG}")
vcpkg_cmake_configure(SOURCE_PATH "${CURRENT_PORT_DIR}/project")
vcpkg_cmake_build()

View File

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.16)
project(libxlsxwriter-test C)
add_executable(main main.c)
find_package(PkgConfig REQUIRED)
pkg_check_modules(libxlsxwriter xlsxwriter REQUIRED IMPORTED_TARGET)
target_link_libraries(main PRIVATE PkgConfig::libxlsxwriter)

View File

@ -0,0 +1,6 @@
#include <xlsxwriter.h>
int main() {
printf("libxlsxwriter version %s\n", lxw_version());
return 0;
}

View File

@ -0,0 +1,12 @@
{
"name": "vcpkg-ci-libxlsxwriter",
"version-string": "ci",
"description": "Validates libxlsxwriter",
"dependencies": [
"libxlsxwriter",
{
"name": "vcpkg-cmake",
"host": true
}
]
}

View File

@ -6062,7 +6062,7 @@
},
"libxlsxwriter": {
"baseline": "1.2.4",
"port-version": 1
"port-version": 2
},
"libxml2": {
"baseline": "2.15.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e33185b8ff2924cd731a8519f4c79e5ba8a4e5ce",
"version": "1.2.4",
"port-version": 2
},
{
"git-tree": "07519de687f98f868abf9a259d6ac96b6ec8880e",
"version": "1.2.4",