early-access version 2853
This commit is contained in:
23
externals/vcpkg/ports/chmlib/CMakeLists.txt
vendored
Executable file
23
externals/vcpkg/ports/chmlib/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
project(chm C)
|
||||
|
||||
add_library(chm src/lzx.c src/chm_lib.c)
|
||||
|
||||
if(BUILD_TOOLS)
|
||||
link_libraries(chm)
|
||||
add_executable(enum_chmLib src/enum_chmLib.c)
|
||||
add_executable(enumdir_chmLib src/enumdir_chmLib.c)
|
||||
add_executable(extract_chmLib src/extract_chmLib.c)
|
||||
|
||||
install(TARGETS enum_chmLib extract_chmLib enumdir_chmLib
|
||||
RUNTIME DESTINATION tools/chmlib
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
endif()
|
||||
|
||||
install(TARGETS chm
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
33
externals/vcpkg/ports/chmlib/portfile.cmake
vendored
Executable file
33
externals/vcpkg/ports/chmlib/portfile.cmake
vendored
Executable file
@@ -0,0 +1,33 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
set(CHMLIB_VERSION chmlib-0.40)
|
||||
set(CHMLIB_FILENAME ${CHMLIB_VERSION}.zip)
|
||||
set(CHMLIB_URL http://www.jedrea.com/chmlib/${CHMLIB_FILENAME})
|
||||
|
||||
vcpkg_download_distfile(
|
||||
ARCHIVE
|
||||
URLS ${CHMLIB_URL}
|
||||
FILENAME ${CHMLIB_FILENAME}
|
||||
SHA512 ad3b0d49fcf99e724c0c38b9c842bae9508d0e4ad47122b0f489c113160f5344223d311abb79f25cbb0b662bb00e2925d338d60dd20a0c309bda2822cda4cd24
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_RELEASE -DBUILD_TOOLS=ON
|
||||
OPTIONS_DEBUG -DBUILD_TOOLS=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/src/chm_lib.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/chmlib)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/chmlib/COPYING ${CURRENT_PACKAGES_DIR}/share/chmlib/copyright)
|
||||
7
externals/vcpkg/ports/chmlib/vcpkg.json
vendored
Executable file
7
externals/vcpkg/ports/chmlib/vcpkg.json
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "chmlib",
|
||||
"version-string": "0.40",
|
||||
"port-version": 5,
|
||||
"description": "CHMLIB is a library for dealing with Microsoft ITSS/CHM format files. Right now, it is a very simple library, but sufficient for dealing with all of the .chm files I've come across. Due to the fairly well-designed indexing built into this particular file format, even a small library is able to gain reasonably good performance indexing into ITSS archives.",
|
||||
"homepage": "https://www.jedrea.com/chmlib/"
|
||||
}
|
||||
Reference in New Issue
Block a user