mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 05:38:00 +08:00
[pegtl] Initial port (#3832)
* [pegtl] Initial port * [pegtl] fixup_cmake_targets
This commit is contained in:
parent
4d02322c07
commit
5efa290dd2
3
ports/pegtl/CONTROL
Normal file
3
ports/pegtl/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: pegtl
|
||||
Version: 2.6.0-1
|
||||
Description: The Parsing Expression Grammar Template Library (PEGTL) is a zero-dependency C++11 header-only parser combinator library for creating parsers according to a Parsing Expression Grammar (PEG).
|
25
ports/pegtl/portfile.cmake
Normal file
25
ports/pegtl/portfile.cmake
Normal file
@ -0,0 +1,25 @@
|
||||
include(vcpkg_common_functions)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO taocpp/pegtl
|
||||
REF 2.6.0
|
||||
SHA512 e70aa70961c41d2b3dc4874429b2be491eed12f229a11d83ffe98cb3ee7a2b39061f9f9ec86f3ed02a6c347a875cdc52bd82112c4deb29d46e2002110e256f9f
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DPEGTL_BUILD_TESTS=OFF
|
||||
-DPEGTL_BUILD_EXAMPLES=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/pegtl/cmake)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pegtl RENAME copyright)
|
Loading…
x
Reference in New Issue
Block a user