Enable Sentry for the engine if the conan con sentry_url is set

If you want to test this locally do a conan install with:

```
-c user.curaengine:sentry_url=<sentry_url>
```

The URL is stored in the CuraEngine repository variables

Contributes to CURA-11364
This commit is contained in:
Jelle Spijker 2023-11-21 13:21:25 +01:00
parent a7d4ba0528
commit 3052c6be3b
No known key found for this signature in database
GPG key ID: 034D1C0527888B65

View file

@ -306,6 +306,8 @@ class CuraConan(ConanFile):
self.options["boost"].header_only = True
if self.settings.os == "Linux":
self.options["curaengine_grpc_definitions"].shared = True
if self.conf.get("user.curaengine:sentry_url", "", check_type = str) != "":
self.options["curaengine"].enable_sentry = True
def validate(self):
version = self.conf_info.get("user.cura:version", default = self.version, check_type = str)