diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2019-08-29 14:14:30 -0700 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-08-29 14:14:30 -0700 |
| commit | ce952a9316c224faf127fffc823743c4167a14c2 (patch) | |
| tree | e048648bf4cd0d7097957ef205a1d348c70e5353 /ports | |
| parent | f9fa4dc19a6c81fbae099c22d6734cde399708f2 (diff) | |
| download | vcpkg-ce952a9316c224faf127fffc823743c4167a14c2.tar.gz vcpkg-ce952a9316c224faf127fffc823743c4167a14c2.zip | |
[kvasir-mpl] Add new port (#7562)
* [kvasir-mpl] Add new port
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/kvasir-mpl/CONTROL | 8 | ||||
| -rw-r--r-- | ports/kvasir-mpl/portfile.cmake | 31 |
2 files changed, 39 insertions, 0 deletions
diff --git a/ports/kvasir-mpl/CONTROL b/ports/kvasir-mpl/CONTROL new file mode 100644 index 000000000..63b93df5f --- /dev/null +++ b/ports/kvasir-mpl/CONTROL @@ -0,0 +1,8 @@ +Source: kvasir-mpl +Version: 2019-08-06 +Homepage: https://github.com/kvasir-io/mpl +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. + +Feature: test +Description: Build with test + diff --git a/ports/kvasir-mpl/portfile.cmake b/ports/kvasir-mpl/portfile.cmake new file mode 100644 index 000000000..b5076e9bf --- /dev/null +++ b/ports/kvasir-mpl/portfile.cmake @@ -0,0 +1,31 @@ +include(vcpkg_common_functions) + +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 + test BUILD_WITH_TEST +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS -DBUILD_TESTING=${BUILD_WITH_TEST} +) + +vcpkg_install_cmake() + +# Move CMake config files to the right place +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/kvasir_mpl) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib) + +# Handle copyright +file(COPY ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
\ No newline at end of file |
