ObjcLibrary modulemap generation
See original GitHub issuePlease provide the following information. The more we know about your system and use case, the more easily and likely we can help.
Description of the problem / feature request / question:
Question: I’m currently exploring adding modulemaps for static libraries I build using objc_library
. There is a module_map
key in ObjcProvider and it’s not obvious from the documentation if modulemap files are generated by Bazel if enable_modules
is enabled.
Is this currently supported or do I need to write a custom rule to generate a correct modulemap?
If possible, provide a minimal example to reproduce the problem:
N/A
Environment info
-
Operating System: macOS Sierra
-
Bazel version (output of
bazel info release
): release 0.5.0rc8
Have you found anything relevant by searching the web?
(e.g. StackOverflow answers,
GitHub issues,
email threads on the bazel-discuss
Google group)
I have searched the documentation, stack overflow and bazel-discuss and haven’t found anything relevant. Also, I have tried to look through the ObjC*.java files to see if I could find any code that generates this file.
Anything else, information or logs or outputs that would be helpful?
(If they are large, please upload as attachment or provide link).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:16 (16 by maintainers)
We just ended up writing a rule to create a module map and pass it as an ObjCProvider
Let’s assume no. We can always reopen this if told otherwise!