From b896a0da5a8e2d5b831b98d647d1602efbdf259a Mon Sep 17 00:00:00 2001 From: Odysseas Georgoudis Date: Fri, 24 Apr 2020 05:40:56 +0100 Subject: [Quill] Add new port (#10902) * [Quill] Add new port * Mark port as unsupported for uwp/arm/arm64 and update ci.baseline * Mark uwp, arm and arm64 as ignored in ci.baseline * fix alphabetical order in ci.baseline * Remove duplicate from ci.baseline * Invert supports expression in CONTROL * Mark as skip in ci.baseline * Address review comments * Bump version to 1.2.1 * add vcpkg_fail_port_install * use vcpkg_from_github and simplify feature options * fix file alignment * Always depend on fmt --- ports/quill/CONTROL | 7 +++++++ ports/quill/portfile.cmake | 28 ++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 ports/quill/CONTROL create mode 100644 ports/quill/portfile.cmake (limited to 'ports') diff --git a/ports/quill/CONTROL b/ports/quill/CONTROL new file mode 100644 index 000000000..2a6acd757 --- /dev/null +++ b/ports/quill/CONTROL @@ -0,0 +1,7 @@ +Source: quill +Version: 1.2.1 +Homepage: https://github.com/odygrd/quill/ +Description: C++14 Asynchronous Low Latency Logging Library +Supports: !(arm|arm64|uwp|android) +Build-Depends: fmt + diff --git a/ports/quill/portfile.cmake b/ports/quill/portfile.cmake new file mode 100644 index 000000000..6a868113f --- /dev/null +++ b/ports/quill/portfile.cmake @@ -0,0 +1,28 @@ +vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "uwp") + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO odygrd/quill + REF 18271f251ccd5244c0052ed0565a1ada517f5c25 #v1.2.1 + SHA512 87e3ff15a5033f3a76702e42403490e6fc4417712f166756c1e8a179451a0cb46a9d58555bf71d3cd87905a0befa027b6f26a28c2656e6589382879c4ca28ea5 + HEAD_REF master +) + +# remove bundled fmt +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/quill/quill/include/quill/bundled/fmt) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/quill/quill/src/bundled/fmt) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DQUILL_FMT_EXTERNAL=ON +) + +vcpkg_install_cmake() + +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/quill) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) -- cgit v1.2.3