mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 09:09:05 +08:00
87854cb16c
* [libslirp] add port * [libslirp] prevent install on Windows targets except MinGW * [libslirp] change `version` to `version-semver` * [libslirp] add `license` * [libslirp] quote paths in the portfile * [libslirp] add version * add libslirp.json * udpate evrsion Co-authored-by: Jonliu1993 <13720414433@163.com>
26 lines
681 B
CMake
26 lines
681 B
CMake
vcpkg_from_gitlab(
|
|
GITLAB_URL https://gitlab.freedesktop.org/
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO slirp/libslirp
|
|
REF v4.6.1
|
|
SHA512 04a9dd88cd58c849a24b9cff405d951952760d99ea2bef0b070463dff088d79f44557a13c9427ba0043f58d4b9e06b68ff64a4f23a7b0d66df594e32e1521cae
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_acquire_msys(MSYS_ROOT)
|
|
vcpkg_add_to_path("${MSYS_ROOT}/usr/bin")
|
|
|
|
vcpkg_configure_meson(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${OPTIONS}
|
|
)
|
|
|
|
vcpkg_install_meson(ADD_BIN_TO_PATH)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libslirp" RENAME copyright)
|