mirror of https://github.com/microsoft/vcpkg.git
[libxlsxwriter] Install public 3rd-party headers (#53753)
This commit is contained in:
parent
3cab406c07
commit
0f281a654b
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
@ -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)
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#include <xlsxwriter.h>
|
||||
|
||||
int main() {
|
||||
printf("libxlsxwriter version %s\n", lxw_version());
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"name": "vcpkg-ci-libxlsxwriter",
|
||||
"version-string": "ci",
|
||||
"description": "Validates libxlsxwriter",
|
||||
"dependencies": [
|
||||
"libxlsxwriter",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -6062,7 +6062,7 @@
|
|||
},
|
||||
"libxlsxwriter": {
|
||||
"baseline": "1.2.4",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"libxml2": {
|
||||
"baseline": "2.15.3",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "e33185b8ff2924cd731a8519f4c79e5ba8a4e5ce",
|
||||
"version": "1.2.4",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "07519de687f98f868abf9a259d6ac96b6ec8880e",
|
||||
"version": "1.2.4",
|
||||
|
|
|
|||
Loading…
Reference in New Issue