bazel_logo BazelΒΆ

If you are using Bazel as your library build system, you can use the Bazel build helper. This helper has a .build()`` method available to ease the call to Bazel build system.

If you want to declare Conan dependencies in your project, you must do it, as usual, in the file. For example:

class BazelExampleConan(ConanFile):
    name = "bazel-example"
    requires = "boost/1.76.0"

Then, tell Bazel to use that dependencies by adding this to the WORKSPACE file:

load("@//conandeps:dependencies.bzl", "load_conan_dependencies")

After that, just update the BUILD files where you need to use the new dependency:

    name = "hello-world",
    srcs = [""],
    deps = [