Skip to content

Releases: storypku/rules_folly

Bazel Rules for Folly, Version 0.2.0

19 Sep 13:35
Compare
Choose a tag to compare

Featuring Folly 2021.09.06.00

To use,

  1. Setup your WORKSPACE:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "com_github_storypku_rules_folly",
    sha256 = "16441df2d454a6d7ef4da38d4e5fada9913d1f9a3b2015b9fe792081082d2a65",
    strip_prefix = "rules_folly-0.2.0",
    urls = [
        "https://github.com/storypku/rules_folly/archive/v0.2.0.tar.gz",
    ],
)

load("@com_github_storypku_rules_folly//bazel:folly_deps.bzl", "folly_deps")
folly_deps()

load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps")
boost_deps()

If you would like to use Folly without gflags, instead you should change the line
folly_deps() to:

folly_deps(with_gflags = 0)
  1. Add Folly in the deps section in the BUILD file:
  deps = [
      # ...
      "@folly//:folly",
      # ...
  ],

Bazel Rules for Folly 2021.09.06.00

19 Sep 08:51
Compare
Choose a tag to compare

Setup WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "com_github_storypku_rules_folly",
    sha256 = "0e7f10b6ac587a34e8318b9530b7835e99df4b6ae48af46074f24556e7a658ea",
    strip_prefix = "rules_folly-0.1.1",
    urls = [
        "https://github.com/storypku/rules_folly/archive/v0.1.1.tar.gz",
    ],
)

load("@com_github_storypku_rules_folly//bazel:folly_deps.bzl", "folly_deps")
folly_deps()

load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps")
boost_deps()

And use folly as deps:

  deps = [
      # ...
      "@folly//:folly",
      # ...
  ],