You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spdlog/bazel
Vertexwahn 3506f6a678 Add support for Bazel 5 years ago
..
.bazelversion Add support for Bazel 5 years ago
BUILD.bazel Add support for Bazel 5 years ago
README.md Add support for Bazel 5 years ago
WORKSPACE.bazel Add support for Bazel 5 years ago
main.cpp Add support for Bazel 5 years ago
spdlog.BUILD Add support for Bazel 5 years ago

README.md

How to use spdlog with Bazel?

  1. Add to your WORKSPACE file this:

    http_archive(
        name = "spdlog",
        build_file = "//:spdlog.BUILD",
        sha256 = "f0114a4d3c88be9e696762f37a7c379619443ce9d668546c61b21d41affe5b62",
        strip_prefix = "spdlog-1.7.0",
        urls = ["https://github.com/gabime/spdlog/archive/v1.7.0.tar.gz"],
    )
    
  2. Copy spdlog.BUILD to your workspace directry.

Note: If you make use of the FMT library already in your project you can use that one also for spdlog: Remove the comments in the spdlog.BUILD file.

Example

This directory contains WORKSPACE.bazel file that how to integrate spdlog into your Bazel project.

To test it run:

bazel run //:HelloWorld