mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 07:39:01 +08:00
d31eced872
* New port for mailio. * Formatting the manifest and adding the version. * improve * add version record * add version record * Update versions/m-/mailio.json * Update ports/mailio/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * update version record Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
25 lines
813 B
CMake
25 lines
813 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO karastojko/mailio
|
|
REF 1872f29d88a52f06cd96b611673b2e46c6b9832b # version_0-20-0
|
|
SHA512 1686e49ed2c7163c33f88c820633e772986ecfea5696b78a44b370f44051190b14a1ddcd055bce2a9104324c80e8045cf0441c085eb6f272261da7e80bc4fdb5
|
|
HEAD_REF master
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DMAILIO_BUILD_SHARED_LIBRARY=${BUILD_SHARED}
|
|
-DMAILIO_BUILD_DOCUMENTATION=OFF
|
|
-DMAILIO_BUILD_EXAMPLES=OFF
|
|
)
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|