Skip to content

Commit

Permalink
[sentry-native] Update port to 0.4.2 (#13546)
Browse files Browse the repository at this point in the history
* [sentry-native] Update port to 0.4.2

Remove custom fix for msvc 19.27 because of the fix that was introduced by port authors here: getsentry/sentry-native@f143733

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>

* Fix review comments

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
  • Loading branch information
AenBleidd authored Sep 21, 2020
1 parent ef0e387 commit 2ad537e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ports/sentry-native/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: sentry-native
Version: 0.4.1
Version: 0.4.2
Port-Version: 2
Homepage: https://sentry.io/
Description: Sentry SDK for C, C++ and native applications.
Expand Down
14 changes: 3 additions & 11 deletions ports/sentry-native/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
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.1/sentry-native.zip"
FILENAME "sentry-native-0.4.1.zip"
SHA512 644e18e89e63c21f7aef9fd389ae768e4f4951ba970d52c529782391e8acb47cb49136dabc156365bdfa13cdd1bd21745d486f836bb21c88f282bd1a533e6420
URLS "https://github.com/getsentry/sentry-native/releases/download/0.4.2/sentry-native.zip"
FILENAME "sentry-native-0.4.2.zip"
SHA512 6353642ceba97b44466ee4854c44cd3649ddb3d1087ff6321848d502fd5dba809778f2f2495134cf0e7a00221e73f40cc2158e46b1604ff6e78403b852f601c5
)

vcpkg_extract_source_archive_ex(
Expand All @@ -24,20 +24,12 @@ if (NOT DEFINED SENTRY_BACKEND)
endif()
endif()

if (VCPKG_TARGET_IS_WINDOWS)
set(SENTRY_NATIVE_C_STANDARD 99)
else()
set(SENTRY_NATIVE_C_STANDARD 11)
endif()


vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DSENTRY_BUILD_TESTS=OFF
-DSENTRY_BUILD_EXAMPLES=OFF
-DCMAKE_C_STANDARD=${SENTRY_NATIVE_C_STANDARD}
-DSENTRY_BACKEND=${SENTRY_BACKEND}
)

Expand Down

0 comments on commit 2ad537e

Please sign in to comment.