mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
ab567f88a4
* [cppp-reiconv] New port * [cppp-reiconv] Add Python required. * [cppp-reiconv] Fix a bug. * [cppp-reiconv] Avoid create binary directory when static build. * [cppp-reiconv] Update version database. * [cppp-reiconv] Update SHA of `git-tree` in version database. * [cppp-reiconv] Update SHA512. * [cppp-reiconv] Update version db SHA info. * [cppp-reiconv] Use `v${VERSION}` for version. * [cppp-reiconv] Use `vcpkg_extract_source_archive` instead of `vcpkg_extract_source_archive_ex`. * [cppp-reiconv] Update SHA of git-tree in version database.
29 lines
934 B
CMake
29 lines
934 B
CMake
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://github.com/cppp-project/cppp-reiconv/releases/download/v${VERSION}/cppp-reiconv-v${VERSION}.zip"
|
|
FILENAME "cppp-reiconv-v${VERSION}.zip"
|
|
SHA512 56294d63a71818842ec3f4a513bdc022ea3f472b582e16d377ec61282005965e7a08d619b9620cc036feb391e5b2eab3bfb4a1a21dcc860df89234e847048678
|
|
)
|
|
|
|
vcpkg_extract_source_archive(
|
|
SOURCE_PATH
|
|
ARCHIVE "${ARCHIVE}"
|
|
)
|
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
get_filename_component(PYTHON3_DIR ${PYTHON3} DIRECTORY)
|
|
vcpkg_add_to_path("${PYTHON3_DIR}")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS -DENABLE_TEST=OFF -DENABLE_EXTRA=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|