Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-checksums: add version 0.1.13 and update dependencies #13301

Merged
merged 1 commit into from
Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions recipes/aws-checksums/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-checksums/archive/v0.1.13.tar.gz"
sha256: "0f897686f1963253c5069a0e495b85c31635ba146cd3ac38cc2ea31eaf54694d"
"0.1.12":
url: "https://github.com/awslabs/aws-checksums/archive/v0.1.12.tar.gz"
sha256: "394723034b81cc7cd528401775bc7aca2b12c7471c92350c80a0e2fb9d2909fe"
Expand Down
20 changes: 10 additions & 10 deletions recipes/aws-checksums/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
from conan import ConanFile
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
from conan.tools.files import apply_conandata_patches, copy, get, rmdir
from conan.tools.files import apply_conandata_patches, export_conandata_patches, copy, get, rmdir
import os

required_conan_version = ">=1.47.0"

required_conan_version = ">=1.52.0"

class AwsChecksums(ConanFile):
name = "aws-checksums"
description = (
"Cross-Platform HW accelerated CRC32c and CRC32 with fallback to efficient "
"SW implementations. C interface with language bindings for each of our SDKs."
)
topics = ("aws", "checksum", )
license = "Apache-2.0",
url = "https://github.com/conan-io/conan-center-index"
homepage = "https://github.com/awslabs/aws-checksums"
license = "Apache-2.0",

topics = ("aws", "checksum", )
settings = "os", "arch", "compiler", "build_type"
options = {
"shared": [True, False],
Expand All @@ -28,16 +26,18 @@ class AwsChecksums(ConanFile):
}

def export_sources(self):
for p in self.conan_data.get("patches", {}).get(self.version, []):
copy(self, p["patch_file"], self.recipe_folder, self.export_sources_folder)
export_conandata_patches(self)

def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC

def configure(self):
if self.options.shared:
del self.options.fPIC
try:
del self.options.fPIC
except Exception:
pass
try:
del self.settings.compiler.libcxx
except Exception:
Expand All @@ -51,7 +51,7 @@ def layout(self):
cmake_layout(self, src_folder="src")

def requirements(self):
self.requires("aws-c-common/0.6.19")
self.requires("aws-c-common/0.8.2")

def source(self):
get(self, **self.conan_data["sources"][self.version],
Expand Down
2 changes: 2 additions & 0 deletions recipes/aws-checksums/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.11":
Expand Down