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-sdk-cpp] package files for building SDK plugins #7830

Merged
merged 5 commits into from
Feb 7, 2022

Conversation

dvirtz
Copy link
Contributor

@dvirtz dvirtz commented Oct 25, 2021

Specify library name and version: aws-sdk-cpp

See #7407 (comment)

Enable building AWS SDK "plugins" (as done for example by AWS CDI SDK) by packaging build files to be used by those plugins


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.



int main() {
using namespace Aws;
using namespace Auth;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You already test the plugin functionality in test_package/aws-sdk-cpp-plugin/AwsSdkCppPlugin.cpp.
Can this example remain as-is?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to have some code in the plugin and avoid code duplication I've moved this code to the plugin and linked the example against it.

@conan-center-bot

This comment has been minimized.

@SSE4 SSE4 requested a review from uilianries October 29, 2021 05:38
tools.replace_in_file(os.path.join("cmake", "utilities.cmake"), "cmakeProjectConfig.cmake", "cmakeProjectConf.cmake")

# create a cmake module to load the files above
contents = textwrap.dedent("""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you copied this from cmake/AWSSDKConfig.cmake?
I believe this contains potential version depdendent logic.
Can we move this to a patch, and copy that file here instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to have the minimum amount of CMake code required to build a single SDK.
it's copied from different parts of the CMake code. That specific file is actually not seemed to be used anymore by the package.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how to achieve that with a patch

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following patch creates a file containing 3 lines:

--- /dev/null
+++ some_file
@@ -0,0 +1,3 @@
+line1
+line2
+line3

Using the same format, you can create a patch for a longer file.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@dvirtz
Copy link
Contributor Author

dvirtz commented Nov 17, 2021

need to wait for dependencies to be updated due to #7763

@dvirtz dvirtz closed this Nov 27, 2021
@dvirtz dvirtz reopened this Nov 27, 2021
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@dvirtz
Copy link
Contributor Author

dvirtz commented Dec 2, 2021

@toge do you know what dependency versions I put for the CI to find them?

@conan-center-bot

This comment has been minimized.

@ghost
Copy link

ghost commented Dec 27, 2021

I detected other pull requests that are modifying aws-sdk-cpp/all recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

@ghost ghost mentioned this pull request Dec 27, 2021
4 tasks
@dvirtz
Copy link
Contributor Author

dvirtz commented Jan 2, 2022

@madebr @uilianries can you please re-review?

prince-chrismc
prince-chrismc previously approved these changes Jan 11, 2022
Copy link
Contributor

@prince-chrismc prince-chrismc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LTGM

self.requires("aws-crt-cpp/0.14.3")
else:
self.requires("aws-c-event-stream/0.1.5")
self.requires("aws-c-event-stream/0.2.7")
if self.settings.os != "Windows":
self.requires("openssl/1.1.1l")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.requires("openssl/1.1.1l")
self.requires("openssl/1.1.1m")

@ghost ghost mentioned this pull request Jan 19, 2022
4 tasks
danimtb
danimtb previously approved these changes Jan 31, 2022
@prince-chrismc
Copy link
Contributor

@dvirtz You have merge conflicts !

@prince-chrismc
Copy link
Contributor

Please add the recipe in the title of the PR pretty please 🙏

@SSE4 SSE4 changed the title package files for building SDK plugins [aws-sdk-cpp] package files for building SDK plugins Feb 2, 2022
SSE4
SSE4 previously approved these changes Feb 2, 2022
@uilianries
Copy link
Member

@dvirtz please, solve these git conflicts when possible.

@dvirtz dvirtz dismissed stale reviews from SSE4, danimtb, and prince-chrismc via f5fad7c February 2, 2022 12:49
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

All green in build 13 (e642f79d0f6a9cbf55f9f8a8c1e6a0acf77403c0):

  • aws-sdk-cpp/1.9.100@:
    All packages built successfully! (All logs)

  • aws-sdk-cpp/1.8.130@:
    All packages built successfully! (All logs)

@prince-chrismc
Copy link
Contributor

@ericLemanissier I love the linting ❤️

@ghost ghost mentioned this pull request Feb 3, 2022
4 tasks
@conan-center-bot conan-center-bot requested a review from SSE4 February 4, 2022 12:02
@conan-center-bot conan-center-bot merged commit 5ffa7a6 into conan-io:master Feb 7, 2022
@dvirtz dvirtz mentioned this pull request Feb 7, 2022
4 tasks
dvirtz added a commit to dvirtz/conan-center-index that referenced this pull request Feb 7, 2022
conan-center-bot pushed a commit that referenced this pull request Mar 15, 2022
* add aws-cdi-sdk

* only support linux

* apply review fixes

* must have shared aws-sdk-cpp

* apply review comments

* fix review comments

* take advantage of #7830

* apply review comments

* add file names

* address review comments

* remove file name from components

* address review comment

Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>

Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants