diff options
| author | Vitalii Koshura <lestat.de.lionkur@gmail.com> | 2020-09-01 02:57:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-31 17:57:35 -0700 |
| commit | b1bdebe4d0bbc304a9765d29de6a8176de22eae7 (patch) | |
| tree | 2220e5b8c3a2e1e6017071a6d117ee4d8a44bb7d | |
| parent | adc1719f0e40ef69b0862826fc2a24edae5ddcab (diff) | |
| download | vcpkg-b1bdebe4d0bbc304a9765d29de6a8176de22eae7.tar.gz vcpkg-b1bdebe4d0bbc304a9765d29de6a8176de22eae7.zip | |
[sentry-native] Add new port (#13118)
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
| -rw-r--r-- | ports/sentry-native/CONTROL | 6 | ||||
| -rw-r--r-- | ports/sentry-native/portfile.cmake | 46 |
2 files changed, 52 insertions, 0 deletions
diff --git a/ports/sentry-native/CONTROL b/ports/sentry-native/CONTROL new file mode 100644 index 000000000..7cfa576e0 --- /dev/null +++ b/ports/sentry-native/CONTROL @@ -0,0 +1,6 @@ +Source: sentry-native
+Version: 0.4.0
+Homepage: https://sentry.io/
+Description: Sentry SDK for C, C++ and native applications.
+Build-Depends: curl (!windows)
+Supports: !(arm|arm64|uwp)
diff --git a/ports/sentry-native/portfile.cmake b/ports/sentry-native/portfile.cmake new file mode 100644 index 000000000..d58a78676 --- /dev/null +++ b/ports/sentry-native/portfile.cmake @@ -0,0 +1,46 @@ +vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "UWP")
+
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://github.com/getsentry/sentry-native/releases/download/0.4.0/sentry-native.zip"
+ FILENAME "sentry-native.zip"
+ SHA512 1ad5e3eb18a85e7fc4e2015c3ba30840173ead19f988f3b85af9081166a889cf0d9f80946f6d8e92a44f58fbe0b86211faa1f1966496c57afd1261637e9b377c
+)
+
+vcpkg_extract_source_archive_ex(
+ OUT_SOURCE_PATH SOURCE_PATH
+ ARCHIVE ${ARCHIVE}
+ NO_REMOVE_ONE_LEVEL
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DSENTRY_BUILD_TESTS=OFF
+ -DSENTRY_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/sentry TARGET_PATH share/sentry-native/cmake)
+
+if (WIN32)
+ vcpkg_copy_tools(
+ TOOL_NAMES crashpad_handler
+ AUTO_CLEAN
+ )
+endif()
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
+endif()
+
+file(
+ INSTALL ${SOURCE_PATH}/LICENSE
+ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
+ RENAME copyright
+)
|
