Skip to content

Adds ios_dylib rule #2698

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chiragramani
Copy link
Contributor

This PR introduces support for ios_dylib, which closely follows the implementation of macos_dylib to ensure consistency across platforms.

One of our projectgen use-cases involves combining all Swift libraries into a single dynamic library. This was previously handled outside of Bazel, but with this addition, we now leverage Bazel to support the same use-case in a reproducible and maintainable way.

@adincebic
Copy link
Contributor

Wasn't ios_framework producing dynamic library already or am I not understanding the difference here? @chiragramani

@@ -2881,6 +3002,44 @@ use only extension-safe APIs.
],
)

ios_dylib = rule_factory.create_apple_rule(
doc = "Builds a iOS Dylib binary.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we add more info here, primarily what is a good use case for this rule, etc. This isnt intended to be used in deps of other targets right?

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.

3 participants