-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[openxlsx] Add new port #41150
base: master
Are you sure you want to change the base?
[openxlsx] Add new port #41150
Changes from 16 commits
ea61266
711e46d
0472204
55563e9
e43fb14
dd2833d
1e24e15
664e690
85b17ad
4340fa5
c7a19b7
35c16e7
47fee1d
b250091
0de260f
2e33e06
5612e8b
8cd999c
8a3debe
ebf9f13
a0ead3b
9fc3458
5052147
e7ebe60
fba6097
f9d16ac
57fe05a
c3f6335
95143b6
47e8d65
10da30b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -0,0 +1,27 @@ | ||||
# Header-only library | ||||
vcpkg_from_github( | ||||
OUT_SOURCE_PATH SOURCE_PATH | ||||
REPO troldal/OpenXLSX | ||||
REF master | ||||
SHA512 429215a961cfcfe8fcb49ee48970dd10dccad09a5c80db2eea2413120a51a2529c9a650584a079756c3b463d53f1fcdec46fdc158ffbc680592896867f60d3ea | ||||
motazmuhammad marked this conversation as resolved.
Show resolved
Hide resolved
|
||||
HEAD_REF master | ||||
) | ||||
vcpkg_cmake_configure( | ||||
SOURCE_PATH ${SOURCE_PATH} | ||||
PREFER_NINJA | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Default. |
||||
OPTIONS | ||||
-DOPENXLSX_BUILD_TESTS=OFF | ||||
motazmuhammad marked this conversation as resolved.
Show resolved
Hide resolved
|
||||
) | ||||
vcpkg_cmake_install() | ||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/OpenXLSX) | ||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||||
file(COPY "${SOURCE_PATH}/OpenXLSX/external" DESTINATION "${CURRENT_PACKAGES_DIR}/include") | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. External? It looks like this is vending There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @JavierMatosD one of the dependencies (zippy) is not in vcpkg, should it be added to vcpkg, in a separate port as a requirement for this port? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. Please open another PR adding |
||||
file(COPY "${SOURCE_PATH}/OpenXLSX/headers/XLException.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include") | ||||
|
||||
|
||||
vcpkg_copy_pdbs() | ||||
|
||||
|
||||
# Handle copyright | ||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md") | ||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
find_package(OpenXLSX CONFIG REQUIRED) | ||
target_link_libraries(main PRIVATE OpenXLSX::OpenXLSX) | ||
|
||
motazmuhammad marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "openxlsx", | ||
"version": "0.3.2", | ||
"description": "OpenXLSX is a C++ library for reading, writing, creating and modifying Microsoft Excel® files, with the .xlsx format.", | ||
"homepage": "https://github.com/troldal/OpenXLSX", | ||
"license": "BSD-3-Clause", | ||
"dependencies": [ | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"versions": [ | ||
{ | ||
"git-tree": "fec0b77e7b174435eb3b15c10e973bdb6a6dd604", | ||
"version": "0.3.2", | ||
"port-version": 0 | ||
} | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.