aboutsummaryrefslogtreecommitdiff
path: root/ports/opencensus-cpp/portfile.cmake
diff options
context:
space:
mode:
authorJackBoosY <47264268+JackBoosY@users.noreply.github.com>2019-10-30 14:18:56 +0800
committerVictor Romero <romerosanchezv@gmail.com>2019-10-29 23:18:56 -0700
commit38109c4466ba770afffecef87b8f4beab59f881d (patch)
treef14cb5747c427dfba465e4bda09dab8456852701 /ports/opencensus-cpp/portfile.cmake
parentd9ad7a516de5be01cd1dbd385bfc11412e4ed7c0 (diff)
downloadvcpkg-38109c4466ba770afffecef87b8f4beab59f881d.tar.gz
vcpkg-38109c4466ba770afffecef87b8f4beab59f881d.zip
[opencensus-cpp]Add new port. (#8740)
* [opencensus-cpp]Add new port. * [opencensus-cpp]Update SHA512. * [opencensus-cpp]Add patch.
Diffstat (limited to 'ports/opencensus-cpp/portfile.cmake')
-rw-r--r--ports/opencensus-cpp/portfile.cmake28
1 files changed, 28 insertions, 0 deletions
diff --git a/ports/opencensus-cpp/portfile.cmake b/ports/opencensus-cpp/portfile.cmake
new file mode 100644
index 000000000..be9283a5e
--- /dev/null
+++ b/ports/opencensus-cpp/portfile.cmake
@@ -0,0 +1,28 @@
+vcpkg_fail_port_install(ON_TARGET "Windows")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO census-instrumentation/opencensus-cpp
+ REF 2b0725c2d0f809351300c634c54e70e0a8c3f4ed #v0.4.0
+ SHA512 16f3975ed0580aec83e0dd98f15a04d614cf45bfa7e07b0b94e881afc12e8e4bac3c0efde1f8e7da9f5dc66365415ae1e3ab10dfcbd9e078879246db6e81cd56
+ HEAD_REF master
+ PATCHES fix-install.patch
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ test BUILD_TESTING
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS ${FEATURE_OPTIONS}
+)
+
+vcpkg_install_cmake()
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)