Skip to content

[IDEA] Add options if generates c_header for zig_library/zig_shared_library and provide CCInfo for other cc_library can depends on it #428

@xinzhengzhang

Description

@xinzhengzhang

The current zig_library/zig_shared_library used as a library usually still needs to be used with a header file. Can we add an option to add -femit-h?
At the same time, in many scenarios, zig is not only used as an executable binary but also as a dependency for other libraries (like cc_library). Therefore, it would be more convenient to provide CCInfo directly for other cc_library dependencies, rather than requiring the caller to add a CC provider through Aspects.
I'm trying to introduce some zig into my mobile development projects and am interested in exploring the feasibility of this idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions