Skip to content

Commit

Permalink
(#4537) Adds sentry-native 0.4.7
Browse files Browse the repository at this point in the history
* Adds sentry-native 0.4.7

* Adds invalid conf on apple-clang < 10

* Fixes bad settings
  • Loading branch information
mjvankampen committed Feb 13, 2021
1 parent 3a84410 commit 9c19f6b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipes/sentry-native/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"0.4.7":
url: "https://github.com/getsentry/sentry-native/archive/0.4.7.tar.gz"
sha256: "84f3a1dbfea1245870a7e36eef06ea78e21c173457c543eaa27904d2d017e50c"
"0.4.1":
url: "https://github.com/getsentry/sentry-native/archive/0.4.1.tar.gz"
sha256: "a7d04fe9b9175c30a58ce20ae23b510595045a66884a447dd21ff2d0c749751b"
Expand Down
5 changes: 5 additions & 0 deletions recipes/sentry-native/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def configure(self):
raise ConanInvalidConfiguration("The in-process backend is not supported on Windows")
if self.options.transport == "winhttp" and self.settings.os != "Windows":
raise ConanInvalidConfiguration("The winhttp transport is only supported on Windows")
if tools.Version(self.version) >= "0.4.7" and self.settings.compiler == "apple-clang" and tools.Version(self.settings.compiler.version) < "10.0":
raise ConanInvalidConfiguration("apple-clang < 10.0 not supported")

def requirements(self):
if self.options.transport == "curl":
Expand Down Expand Up @@ -99,7 +101,10 @@ def package_info(self):
self.cpp_info.system_libs = ["dl", "log"]
elif self.settings.os == "Windows":
self.cpp_info.system_libs = ["shlwapi", "dbghelp"]
if tools.Version(self.version) >= "0.4.7":
self.cpp_info.system_libs.append("Version")
if self.options.transport == "winhttp":
self.cpp_info.system_libs.append("winhttp")

if not self.options.shared:
self.cpp_info.defines = ["SENTRY_BUILD_STATIC"]
2 changes: 2 additions & 0 deletions recipes/sentry-native/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"0.4.7":
folder: all
"0.4.1":
folder: all
"0.2.6":
Expand Down

0 comments on commit 9c19f6b

Please sign in to comment.