Skip to content

Add generated_header to SwiftInfo? #291

@kastiglione

Description

@kastiglione

We have a rule that generates a .framework bundle. These bundles can then be used via apple_static_framework_import for example.

In cases where the framework is used as a dependency of an ObjC target, the Swift generated header needs to be copied to the framework's headers directory.

We can get access to the generated header by iterating the header property of the ObjC provider and filtering for headers matching -Swift.h, but this is an ad-hoc solution. Would it be reasonable to add a generated_header property to the SwiftInfo provider, in order to make using the generated header more precise/explicit?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions