[7zip] Add complete public header files (#27569)

* [7zip] Add complete public header files

* version

* simplify

* version

* add end line

* vdb
This commit is contained in:
Frank 2022-11-23 04:22:57 +08:00 committed by GitHub
parent 4a881774fd
commit 6b49f8300c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 32 deletions

View File

@ -398,29 +398,6 @@ target_include_directories(7zip
$<INSTALL_INTERFACE:include>/7zip/CPP $<INSTALL_INTERFACE:include>/7zip/CPP
) )
set(PUBLIC_HEADERS
C/7zTypes.h
C/Alloc.h
C/LzFind.h
C/LzFindMt.h
C/LzHash.h
C/LzmaDec.h
C/LzmaEnc.h
C/LzmaLib.h
C/Threads.h
CPP/7zip/Archive/IArchive.h
CPP/7zip/ICoder.h
CPP/7zip/IDecl.h
CPP/7zip/IPassword.h
CPP/7zip/IProgress.h
CPP/7zip/IStream.h
CPP/7zip/PropID.h
CPP/Common/Defs.h
CPP/Common/MyTypes.h
CPP/Common/MyUnknown.h
CPP/Common/MyWindows.h
)
install( install(
TARGETS 7zip TARGETS 7zip
EXPORT 7zip-targets EXPORT 7zip-targets
@ -430,14 +407,18 @@ install(
) )
# Headers makes relative includes so directory structure must be kept # Headers makes relative includes so directory structure must be kept
foreach(HEADER ${PUBLIC_HEADERS})
get_filename_component(HEADER_DIR ${HEADER} DIRECTORY) file(GLOB HEADERS "${CMAKE_CURRENT_LIST_DIR}/C/*.h")
install( install(FILES ${HEADERS} DESTINATION "include/7zip/C")
FILES ${HEADER}
CONFIGURATIONS Release file(GLOB HEADERS "${CMAKE_CURRENT_LIST_DIR}/CPP/Common/*.h")
DESTINATION include/7zip/${HEADER_DIR} install(FILES ${HEADERS} DESTINATION "include/7zip/CPP/Common")
)
endforeach() file(GLOB HEADERS "${CMAKE_CURRENT_LIST_DIR}/CPP/7zip/*.h")
install(FILES ${HEADERS} DESTINATION "include/7zip/CPP/7zip")
file(GLOB HEADERS "${CMAKE_CURRENT_LIST_DIR}/CPP/7zip/Archive/*.h")
install (FILES ${HEADERS} DESTINATION "include/7zip/CPP/7zip/Archive")
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)
configure_package_config_file( configure_package_config_file(

View File

@ -28,3 +28,5 @@ file(
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright RENAME copyright
) )
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

View File

@ -1,6 +1,7 @@
{ {
"name": "7zip", "name": "7zip",
"version": "22.0", "version": "22.0",
"port-version": 1,
"description": "Library for archiving file with a high compression ratio.", "description": "Library for archiving file with a high compression ratio.",
"homepage": "https://www.7-zip.org", "homepage": "https://www.7-zip.org",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "3cbbaee3c546a24fc68b37759c9a5fc62b683ff0",
"version": "22.0",
"port-version": 1
},
{ {
"git-tree": "15ce7b0d1812f8640e74075ca9f5e3a08b3bc875", "git-tree": "15ce7b0d1812f8640e74075ca9f5e3a08b3bc875",
"version": "22.0", "version": "22.0",

View File

@ -6,7 +6,7 @@
}, },
"7zip": { "7zip": {
"baseline": "22.0", "baseline": "22.0",
"port-version": 0 "port-version": 1
}, },
"ableton": { "ableton": {
"baseline": "3.0.5", "baseline": "3.0.5",