mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 20:23:02 +08:00
[pprint] Add new port (#6678)
* [pprint] Add new port * [pprint] Rerun tests
This commit is contained in:
parent
db9e1af47b
commit
a260c2dafb
3
ports/pprint/CONTROL
Normal file
3
ports/pprint/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: pprint
|
||||
Version: 2019-06-01
|
||||
Description: Pretty Printer for Modern C++
|
27
ports/pprint/portfile.cmake
Normal file
27
ports/pprint/portfile.cmake
Normal file
@ -0,0 +1,27 @@
|
||||
# header-only library
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO p-ranav/pprint
|
||||
REF 71d85f0cd4ec2012c9cf19bfa741e094fcecfa3e
|
||||
SHA512 6b0ff7a75a09226f775fa01fd9753d0f69c4838b40253fe9fc824eeee3c2efa1884e711188858f185f9c765f1dadace0bb72227d71e4d2218c493ddfb60224fa
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DPPRINT_BUILD_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
||||
|
||||
# Handle copyright
|
||||
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
Loading…
Reference in New Issue
Block a user