Skip to content

Commit

Permalink
(#23412) wolfssl: add version 5.7.0
Browse files Browse the repository at this point in the history
* wolfss: add version 3.7.0

* add `with_experimental`
  • Loading branch information
toge authored Apr 8, 2024
1 parent 66ef257 commit c73d1a7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipes/wolfssl/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"5.7.0":
url: "https://github.com/wolfSSL/wolfssl/archive/v5.7.0-stable.tar.gz"
sha256: "2de93e8af588ee856fe67a6d7fce23fc1b226b74d710b0e3946bc8061f6aa18f"
"5.6.6":
url: "https://github.com/wolfSSL/wolfssl/archive/v5.6.6-stable.tar.gz"
sha256: "3d2ca672d41c2c2fa667885a80d6fa03c3e91f0f4f72f87aef2bc947e8c87237"
Expand Down
6 changes: 6 additions & 0 deletions recipes/wolfssl/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class WolfSSLConan(ConanFile):
"sni": [True, False],
"testcert": [True, False],
"with_curl": [True, False],
"with_experimental": [True, False],
}
default_options = {
"shared": False,
Expand All @@ -57,6 +58,7 @@ class WolfSSLConan(ConanFile):
"sni": False,
"testcert": False,
"with_curl": False,
"with_experimental": False,
}

@property
Expand All @@ -68,6 +70,8 @@ def config_options(self):
del self.options.fPIC
if Version(self.version) < "5.2.0":
del self.options.with_curl
if Version(self.version) < "5.7.0":
del self.options.with_experimental

def configure(self):
if self.options.shared:
Expand Down Expand Up @@ -120,6 +124,8 @@ def generate(self):
])
if self.options.get_safe("with_curl"):
tc.configure_args.append("--enable-curl")
if self.options.get_safe("with_experimental"):
tc.configure_args.append("--enable-experimental")
if is_msvc(self):
tc.extra_ldflags.append("-ladvapi32")
if check_min_vs(self, "180", raise_invalid=False):
Expand Down
2 changes: 2 additions & 0 deletions recipes/wolfssl/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"5.7.0":
folder: all
"5.6.6":
folder: all
"5.6.4":
Expand Down

0 comments on commit c73d1a7

Please sign in to comment.