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-c-compression: add missing interface definition if shared + modernize more for conan v2 #17109

Merged

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Apr 18, 2023

see https://github.com/awslabs/aws-c-compression/blob/v0.2.16/include/aws/compression/exports.h


@SpaceIm SpaceIm force-pushed the aws-c-compression-dllimport branch from df6102b to b5d36e7 Compare April 18, 2023 22:22
@SpaceIm SpaceIm mentioned this pull request Apr 19, 2023
13 tasks
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 6 (ae2409dcd29997488746f9bee0cf681d9583aa11):

  • aws-c-compression/0.2.13@:
    All packages built successfully! (All logs)

  • aws-c-compression/0.2.15@:
    All packages built successfully! (All logs)

  • aws-c-compression/0.2.14@:
    All packages built successfully! (All logs)


Conan v2 pipeline ✔️

Note: Conan v2 builds may be required once they are on the v2 ready list

All green in build 5 (ae2409dcd29997488746f9bee0cf681d9583aa11):

  • aws-c-compression/0.2.15@:
    All packages built successfully! (All logs)

  • aws-c-compression/0.2.13@:
    All packages built successfully! (All logs)

  • aws-c-compression/0.2.14@:
    All packages built successfully! (All logs)

Comment on lines -7 to -10
find_package(aws-c-compression REQUIRED CONFIG)

add_executable(${PROJECT_NAME} ../test_package/test_package.c)
target_link_libraries(${PROJECT_NAME} PRIVATE AWS::aws-c-compression)
Copy link
Member

Choose a reason for hiding this comment

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

Why removing this find_package()? I mean, if we are still generating the alias targets to maintain compatibility, shouldn't we still keep this?

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 don't understand, it's a common pattern we have in all modern recipes. It avoids code duplication and mistakes by ensuring a common CMakeLists in test package & test_v1_package, so find_package is not removed at all, but delegated to CMakeLists of test_package.

Copy link
Member

Choose a reason for hiding this comment

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

oh sorry, I didn't read it well. It makes sense

@conan-center-bot conan-center-bot merged commit 16465b1 into conan-io:master May 9, 2023
@SpaceIm SpaceIm deleted the aws-c-compression-dllimport branch May 9, 2023 19:47
pezy pushed a commit to pezy/conan-center-index that referenced this pull request Jun 1, 2023
…if shared + modernize more for conan v2

* add AWS_COMPRESSION_USE_IMPORT_EXPORT interface definition if shared

* modernize more for conan v2

* more elegant way to define target for legacy generators

* aws-c-common is public
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.

4 participants