Skip to content

qcraft-ai/rules_folly

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rules_folly -- Bazel Build Rules for Folly

Pre-requisites

On Ubuntu,

sudo apt-get update \
    && sudo apt-get -y install --no-install-recommends \
    autoconf \
    automake \
    libtool \
    libdouble-conversion-dev \
    libssl-dev
    # libsnappy-dev

How To Use

In your WORKSPACE file, add the following:

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

http_archive(
    name = "rules_folly",
    sha256 = "317abac1c970ad0af43c88b6eac706c9b4c5a06ee8b673d0e352143b0d9fd481",
    strip_prefix = "rules_folly-0.0.3",
    urls = [
        "https://github.com/storypku/rules_folly/archive/v0.0.3.tar.gz",
    ],
)

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

folly_deps()

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

boost_deps()

Then you can add Folly in the deps section of target rule in the BUILD file:

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

ROADMAP

  1. Make it work for latest Folly
  2. Make it configurable, e.g., whether openssl/boringssl should be used, if glog was with gflags support, etc.

About

rules_folly: Bazel Build Rules for Folly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Starlark 46.8%
  • C++ 45.1%
  • CMake 6.6%
  • Shell 1.5%