From 2dd2e623455c79f53914f403280071b40a0bb2c8 Mon Sep 17 00:00:00 2001 From: Luca Schlecker Date: Wed, 13 Jan 2021 04:57:22 +0100 Subject: [PATCH] [palsigslot] New port (#15558) Signed-off-by: Luca Schlecker --- ports/palsigslot/portfile.cmake | 26 ++++++++++++++++++++++++++ ports/palsigslot/usage | 4 ++++ ports/palsigslot/vcpkg.json | 6 ++++++ 3 files changed, 36 insertions(+) create mode 100644 ports/palsigslot/portfile.cmake create mode 100644 ports/palsigslot/usage create mode 100644 ports/palsigslot/vcpkg.json diff --git a/ports/palsigslot/portfile.cmake b/ports/palsigslot/portfile.cmake new file mode 100644 index 0000000000..0ec2944920 --- /dev/null +++ b/ports/palsigslot/portfile.cmake @@ -0,0 +1,26 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO palacaze/sigslot + REF v1.2.0 + SHA512 6a6fb862a9eeea78732f2191916c7384a4bcb65e42c948f726459ee3cb446f90c4bd18c7c94ee4f9b15c81c5aa729094013805161d532c2284d9e77cdffaa468 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DSIGSLOT_COMPILE_EXAMPLES=OFF + -DSIGSLOT_COMPILE_TESTS=OFF +) + +vcpkg_install_cmake() + +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/PalSigslot TARGET_PATH share/PalSigslot) + +file(REMOVE_RECURSE + ${CURRENT_PACKAGES_DIR}/debug + ${CURRENT_PACKAGES_DIR}/lib +) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/ports/palsigslot/usage b/ports/palsigslot/usage new file mode 100644 index 0000000000..6242d2829b --- /dev/null +++ b/ports/palsigslot/usage @@ -0,0 +1,4 @@ +The package palsigslot is compatible with built-in CMake targets: + + find_package(PalSigslot CONFIG REQUIRED) + target_link_libraries(main PRIVATE Pal::Sigslot) diff --git a/ports/palsigslot/vcpkg.json b/ports/palsigslot/vcpkg.json new file mode 100644 index 0000000000..d3b7e9f898 --- /dev/null +++ b/ports/palsigslot/vcpkg.json @@ -0,0 +1,6 @@ +{ + "name": "palsigslot", + "version-string": "1.2.0", + "description": "A header-only, thread safe implementation of signal-slots for C++.", + "homepage": "https://github.com/palacaze/sigslot" +}