diff options
Diffstat (limited to 'vcpkg/ports/kvasir-mpl')
| -rw-r--r-- | vcpkg/ports/kvasir-mpl/portfile.cmake | 27 | ||||
| -rw-r--r-- | vcpkg/ports/kvasir-mpl/vcpkg.json | 22 |
2 files changed, 49 insertions, 0 deletions
diff --git a/vcpkg/ports/kvasir-mpl/portfile.cmake b/vcpkg/ports/kvasir-mpl/portfile.cmake new file mode 100644 index 0000000..f41ef5c --- /dev/null +++ b/vcpkg/ports/kvasir-mpl/portfile.cmake @@ -0,0 +1,27 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO kvasir-io/mpl + REF a9060b46c37c769e5517e0116b060fec923b6fdb + SHA512 bbe7267d288eda9ded81ce82e428d237cb5a9d686cd1b68a334b1ae53db4bf25e37fb86d991e7cf61542ee91ccae8db7498efde91a07332fd68594a229ff35ca + HEAD_REF development +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES + test BUILD_WITH_TEST +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS -DBUILD_TESTING=${BUILD_WITH_TEST} +) + +vcpkg_cmake_install() + +# Move CMake config files to the right place +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/kvasir_mpl) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
\ No newline at end of file diff --git a/vcpkg/ports/kvasir-mpl/vcpkg.json b/vcpkg/ports/kvasir-mpl/vcpkg.json new file mode 100644 index 0000000..0f64a72 --- /dev/null +++ b/vcpkg/ports/kvasir-mpl/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "kvasir-mpl", + "version-date": "2019-08-06", + "port-version": 3, + "description": "This library is part of the Kvasir project. Kvasir is a collection of zero cost statically checked libraries for resource constrained systems including microcontrollers.", + "homepage": "https://github.com/kvasir-io/mpl", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "test": { + "description": "Build with test" + } + } +} |