Skip to content

Commit

Permalink
(#9248) [aws-sdk-cpp] Add s3-crt component
Browse files Browse the repository at this point in the history
* [aws-sdk-cpp] Add s3-crt component

* [aws-sdk-cpp] s3-crt only for version >= 1.9
  • Loading branch information
jeremy-coulon authored Feb 14, 2022
1 parent d0d4553 commit cf21126
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions recipes/aws-sdk-cpp/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ class AwsSdkCppConan(ConanFile):
"route53domains",
"route53resolver",
"s3",
"s3-crt",
"s3-encryption",
"s3control",
"s3outposts",
Expand Down Expand Up @@ -338,6 +339,8 @@ def export_sources(self):
def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC
if tools.Version(self.version) < "1.9":
delattr(self.options, "s3-crt")

def configure(self):
if self.options.shared:
Expand Down Expand Up @@ -394,7 +397,7 @@ def _configure_cmake(self):

build_only = ["core"]
for sdk in self._sdks:
if getattr(self.options, sdk):
if self.options.get_safe(sdk):
build_only.append(sdk)
self._cmake.definitions["BUILD_ONLY"] = ";".join(build_only)

Expand Down Expand Up @@ -478,7 +481,7 @@ def package_info(self):
self.cpp_info.components["core"].requires.append("aws-c-event-stream::aws-c-event-stream-lib")

# other components
enabled_sdks = [sdk for sdk in self._sdks if getattr(self.options, sdk)]
enabled_sdks = [sdk for sdk in self._sdks if self.options.get_safe(sdk)]
for hl_comp in self._internal_requirements.keys():
if getattr(self.options, hl_comp):
for internal_requirement in self._internal_requirements[hl_comp]:
Expand Down

0 comments on commit cf21126

Please sign in to comment.