Skip to content

Commit

Permalink
(#22406) aws-c-sdkutils: add v0.1.13, use version range for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
st9007a authored Jul 31, 2024
1 parent c523331 commit 6837af9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions recipes/aws-c-sdkutils/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"0.1.13":
url: "https://github.com/awslabs/aws-c-sdkutils/archive/v0.1.13.tar.gz"
sha256: "fb22b1d12172afa07214ba18ad3c3b71244cb3d31c81c439b0a6625745c1fef9"
"0.1.12":
url: "https://github.com/awslabs/aws-c-sdkutils/archive/v0.1.12.tar.gz"
sha256: "c876c3ce2918f1181c24829f599c8f06e29733f0bd6556d4c4fb523390561316"
Expand Down
8 changes: 6 additions & 2 deletions recipes/aws-c-sdkutils/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,14 @@ def layout(self):
cmake_layout(self, src_folder="src")

def requirements(self):
if Version(self.version) <= "0.1.3":
if Version(self.version) < "0.1.12":
self.requires("aws-c-common/0.8.2", transitive_headers=True, transitive_libs=True)
else:
elif Version(self.version) == "0.1.12":
# [>=0.9.4 <=0.9.10]
self.requires("aws-c-common/0.9.6", transitive_headers=True, transitive_libs=True)
else:
# [>=0.9.10]
self.requires("aws-c-common/0.9.12", transitive_headers=True, transitive_libs=True)

def source(self):
get(self, **self.conan_data["sources"][self.version], strip_root=True)
Expand Down
2 changes: 2 additions & 0 deletions recipes/aws-c-sdkutils/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"0.1.13":
folder: all
"0.1.12":
folder: all
"0.1.3":
Expand Down

0 comments on commit 6837af9

Please sign in to comment.