diff options
Diffstat (limited to 'vcpkg/ports/trompeloeil')
| -rw-r--r-- | vcpkg/ports/trompeloeil/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/trompeloeil/vcpkg.json | 17 |
2 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/trompeloeil/portfile.cmake b/vcpkg/ports/trompeloeil/portfile.cmake new file mode 100644 index 0000000..dd337ab --- /dev/null +++ b/vcpkg/ports/trompeloeil/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO rollbear/trompeloeil + REF v${VERSION} + SHA512 d6ff22843ac3541eb68bb2a97f5eafc39495704cd13875658aa0dc30a68ddbcc2bcec75848e5529b4bf80f5cc0ad52fb4330e135933c4a47d43d3eed1b3587de + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/trompeloeil) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") + +if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/include/trompeloeil.hpp") + message(FATAL_ERROR "Main includes have moved. Please update the forwarder.") +endif() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE_1_0.txt") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc") diff --git a/vcpkg/ports/trompeloeil/vcpkg.json b/vcpkg/ports/trompeloeil/vcpkg.json new file mode 100644 index 0000000..ba5c0d7 --- /dev/null +++ b/vcpkg/ports/trompeloeil/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "trompeloeil", + "version": "48", + "description": "A thread-safe header-only mocking framework for C++11/14 using the Boost Software License 1.0", + "homepage": "https://github.com/rollbear/trompeloeil", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |