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

Use cpp_info.frameworks instead of cpp_info.exe_link_flags #113

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

uilianries
Copy link
Member

@uilianries uilianries commented Oct 18, 2019

Based on Apple Framework support, now all recipes using exe_link_flags for OSX framework should use cpp_info.frameworks instead.

closes #108

Wiki:

#KB-H033: "APPLE FRAMEWORK"

When liking Apple frameworks into your current recipe, instead of self.cpp_info.shared_link_flags, use self.cpp_info.frameworks:

    def package_info(self):
        self.cpp_info.frameworks.append("CoreAudio")

Signed-off-by: Uilian Ries <uilianries@gmail.com>
@uilianries uilianries changed the title Sse cpp_info.frameworks instead of cpp_info.exe_link_flags Use cpp_info.frameworks instead of cpp_info.exe_link_flags Oct 18, 2019
@uilianries
Copy link
Member Author

All conflicts has been solved.

@@ -276,6 +277,11 @@ def test(out):
out.error("The 'RunEnvironment()' build helper is no longer needed. "
"It has been integrated into the self.run(..., run_environment=True)")

@run_test("KB-H033", output)
def test(out):
if "cpp_info.shared_link_flags" in conanfile_content and "-framework" in conanfile_content:
Copy link
Contributor

Choose a reason for hiding this comment

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

that might trigger false positives, need to reduce scope of test

Copy link
Member Author

Choose a reason for hiding this comment

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

can you elaborate some idea?

Copy link
Contributor

Choose a reason for hiding this comment

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

having something like:

self.cpp_info.shared_link_flags = ["-B,Symbolic"]
...
tools.replace_in_file("Makefile", "-framework Foundation", "-framework CoreFoundation")

will result in false positive I believe

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.

[conan center] advice to use cpp_info.frameworks instead of cpp_info.exe_link_flags
2 participants