diff options
| author | Jay Carlson <jcarlson@unl.edu> | 2018-05-03 00:38:08 -0500 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-05-02 22:38:08 -0700 |
| commit | 6ec3a486332bd50500decee0aeaa166fa37ba8d2 (patch) | |
| tree | 3419913fde86cd5e6f6adc5ecf1641a2f2e1c912 | |
| parent | 68447ced17de6afff3bb1240c5f51077a34e777f (diff) | |
| download | vcpkg-6ec3a486332bd50500decee0aeaa166fa37ba8d2.tar.gz vcpkg-6ec3a486332bd50500decee0aeaa166fa37ba8d2.zip | |
[treehopper] Add package for Treehopper C++ API (#3330)
* Add package definition for Treehopper's C++ API
* Bump to 1.11.2
* Bump to 1.11.3
* [treehopper] Fix cmake targets. Block non-dynamic usage.
| -rw-r--r-- | ports/treehopper/CONTROL | 3 | ||||
| -rw-r--r-- | ports/treehopper/portfile.cmake | 32 |
2 files changed, 35 insertions, 0 deletions
diff --git a/ports/treehopper/CONTROL b/ports/treehopper/CONTROL new file mode 100644 index 000000000..336a42250 --- /dev/null +++ b/ports/treehopper/CONTROL @@ -0,0 +1,3 @@ +Source: treehopper +Version: 1.11.3-1 +Description: Treehopper connects the physical world to your computer, tablet, or smartphone. For more information, visit https://treehopper.io. diff --git a/ports/treehopper/portfile.cmake b/ports/treehopper/portfile.cmake new file mode 100644 index 000000000..fd90f0392 --- /dev/null +++ b/ports/treehopper/portfile.cmake @@ -0,0 +1,32 @@ +include(vcpkg_common_functions) + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + message("treehopper only supports dynamic library linkage") + set(VCPKG_LIBRARY_LINKAGE dynamic) +endif() +if(VCPKG_CRT_LINKAGE STREQUAL "static") + message(FATAL_ERROR "treehopper does not support static crt linkage") +endif() + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO treehopper-electronics/treehopper-sdk + REF 1.11.3 + SHA512 65b748375b798787c8b59f9657151f340920c939c3f079105b9b78f4e3b775125598106c6dfa4feba111a64d30f007003a70110ac767802a7dd1127a25c9fb14 + HEAD_REF master) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH}/C++/API/ + PREFER_NINJA +) + +vcpkg_install_cmake() +vcpkg_copy_pdbs() + +vcpkg_fixup_cmake_targets(CONFIG_PATH share/treehopper) + +file(INSTALL ${SOURCE_PATH}/C++/API/inc/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/Treehopper/) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/treehopper RENAME copyright) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
\ No newline at end of file |
