Search code examples
shared-librariesstatic-librariesbazel

Pre-built Library Targets


Is there a way to specify a Bazel target like with cc_library but for an existing pre-built static or shared library.

I couldn't find a reference to such a rule in the Bazel documentation.


Solution

  • You can use cc_library itself, just put .so files in cc_library.srcs. See the docs.