Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Feature/boost bazel deps (#24)
Browse files Browse the repository at this point in the history
* Add submodules for boost deps

* Set all boost repos to boost-1.61.0

* Remove tabs
  • Loading branch information
Jeffail authored Jul 20, 2017
1 parent ed5116b commit f6c958a
Show file tree
Hide file tree
Showing 40 changed files with 434 additions and 11 deletions.
105 changes: 105 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
[submodule "third_party/boost/upstream/assert"]
path = third_party/boost/upstream/assert
url = https://github.com/boostorg/assert
[submodule "third_party/boost/upstream/config"]
path = third_party/boost/upstream/config
url = https://github.com/boostorg/config
[submodule "third_party/boost/upstream/core"]
path = third_party/boost/upstream/core
url = https://github.com/boostorg/core
[submodule "third_party/boost/upstream/predef"]
path = third_party/boost/upstream/predef
url = https://github.com/boostorg/predef
[submodule "third_party/boost/upstream/system"]
path = third_party/boost/upstream/system
url = https://github.com/boostorg/system
[submodule "third_party/boost/upstream/throw_exception"]
path = third_party/boost/upstream/throw_exception
url = https://github.com/boostorg/throw_exception
[submodule "third_party/boost/upstream/asio"]
path = third_party/boost/upstream/asio
url = https://github.com/boostorg/asio
[submodule "third_party/boost/upstream/detail"]
path = third_party/boost/upstream/detail
url = https://github.com/boostorg/detail
[submodule "third_party/boost/upstream/functional"]
path = third_party/boost/upstream/functional
url = https://github.com/boostorg/functional
[submodule "third_party/boost/upstream/io"]
path = third_party/boost/upstream/io
url = https://github.com/boostorg/io
[submodule "third_party/boost/upstream/static_assert"]
path = third_party/boost/upstream/static_assert
url = https://github.com/boostorg/static_assert
[submodule "third_party/boost/upstream/iterator"]
path = third_party/boost/upstream/iterator
url = https://github.com/boostorg/iterator
[submodule "third_party/boost/upstream/concept_check"]
path = third_party/boost/upstream/concept_check
url = https://github.com/boostorg/concept_check
[submodule "third_party/boost/upstream/optional"]
path = third_party/boost/upstream/optional
url = https://github.com/boostorg/optional
[submodule "third_party/boost/upstream/range"]
path = third_party/boost/upstream/range
url = https://github.com/boostorg/range
[submodule "third_party/boost/upstream/align"]
path = third_party/boost/upstream/align
url = https://github.com/boostorg/align
[submodule "third_party/boost/upstream/utility"]
path = third_party/boost/upstream/utility
url = https://github.com/boostorg/utility
[submodule "third_party/boost/upstream/smart_ptr"]
path = third_party/boost/upstream/smart_ptr
url = https://github.com/boostorg/smart_ptr
[submodule "third_party/boost/upstream/preprocessor"]
path = third_party/boost/upstream/preprocessor
url = https://github.com/boostorg/preprocessor
[submodule "third_party/boost/upstream/move"]
path = third_party/boost/upstream/move
url = https://github.com/boostorg/move
[submodule "third_party/boost/upstream/mpl"]
path = third_party/boost/upstream/mpl
url = https://github.com/boostorg/mpl
[submodule "third_party/boost/upstream/type_traits"]
path = third_party/boost/upstream/type_traits
url = https://github.com/boostorg/type_traits
[submodule "third_party/boost/upstream/filesystem"]
path = third_party/boost/upstream/filesystem
url = https://github.com/boostorg/filesystem
[submodule "third_party/boost/upstream/date_time"]
path = third_party/boost/upstream/date_time
url = https://github.com/boostorg/date_time
[submodule "third_party/boost/upstream/bind"]
path = third_party/boost/upstream/bind
url = https://github.com/boostorg/bind
[submodule "third_party/boost/upstream/function"]
path = third_party/boost/upstream/function
url = https://github.com/boostorg/function
[submodule "third_party/boost/upstream/algorithm"]
path = third_party/boost/upstream/algorithm
url = https://github.com/boostorg/algorithm
[submodule "third_party/boost/upstream/regex"]
path = third_party/boost/upstream/regex
url = https://github.com/boostorg/regex
[submodule "third_party/boost/upstream/integer"]
path = third_party/boost/upstream/integer
url = https://github.com/boostorg/integer
[submodule "third_party/boost/upstream/lexical_cast"]
path = third_party/boost/upstream/lexical_cast
url = https://github.com/boostorg/lexical_cast
[submodule "third_party/boost/upstream/numeric_conversion"]
path = third_party/boost/upstream/numeric_conversion
url = https://github.com/boostorg/numeric_conversion
[submodule "third_party/boost/upstream/array"]
path = third_party/boost/upstream/array
url = https://github.com/boostorg/array
[submodule "third_party/boost/upstream/container"]
path = third_party/boost/upstream/container
url = https://github.com/boostorg/container
[submodule "third_party/boost/upstream/math"]
path = third_party/boost/upstream/math
url = https://github.com/boostorg/math
[submodule "third_party/boost/upstream/tokenizer"]
path = third_party/boost/upstream/tokenizer
url = https://github.com/boostorg/tokenizer
5 changes: 3 additions & 2 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ cc_library(
strip_include_prefix = "src/",
visibility = ["//visibility:public"],
deps = [
"@boost//:system",
"@boost//:asio",
"//third_party/boost:system",
"//third_party/boost:asio",
"//third_party/boost:date_time",
"@com_googlesource_code_re2//:re2",
],
)
Expand Down
9 changes: 0 additions & 9 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
workspace(name = "com_github_datasift_served")

git_repository(
name = "com_github_nelhage_boost",
remote = "https://github.com/nelhage/rules_boost.git",
commit = "ead0110ff90d5d90d2eb67e7e78f34f42d8486a1",
)

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

git_repository(
name = "com_googlesource_code_re2",
remote = "https://github.com/google/re2.git",
Expand Down
239 changes: 239 additions & 0 deletions third_party/boost/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
licenses(["notice"])

boost_path = "upstream"

load("/third_party/boost/tool", "boost_library")

boost_library(
name = "assert",
)

boost_library(
name = "config",
)

boost_library(
name = "core",
)

boost_library(
name = "predef",
)

boost_library(
name = "system",
srcs = glob([
boost_path + "/system/src/*.cpp",
]),
deps = [
":assert",
":config",
":core",
":predef",
],
)

boost_library(
name = "throw_exception",
)

boost_library(
name = "detail",
)

boost_library(
name = "functional",
deps = [
":detail",
],
)

boost_library(
name = "io",
)

boost_library(
name = "static_assert",
)

boost_library(
name = "iterator",
deps = [
":detail",
":static_assert",
],
)

boost_library(
name = "concept_check",
)

boost_library(
name = "optional",
)

boost_library(
name = "range",
deps = [
":concept_check",
":optional",
]
)

boost_library(
name = "align",
)

boost_library(
name = "utility",
)

boost_library(
name = "smart_ptr",
deps = [
":align",
":core",
":predef",
":throw_exception",
":utility",
],
)

boost_library(
name = "preprocessor",
)

boost_library(
name = "move",
)

boost_library(
name = "mpl",
deps = [
":preprocessor",
":move",
]
)

boost_library(
name = "type_traits",
deps = [
":core",
":mpl",
":static_assert",
]
)

boost_library(
name = "bind",
)

boost_library(
name = "function",
)

boost_library(
name = "algorithm",
deps = [
":function",
":range",
]
)

boost_library(
name = "numeric_conversion",
)

boost_library(
name = "array",
)

boost_library(
name = "container",
)

boost_library(
name = "math",
)

boost_library(
name = "lexical_cast",
deps = [
":numeric_conversion",
":container",
":array",
":math",
]
)

boost_library(
name = "tokenizer",
)

boost_library(
name = "date_time",
deps = [
":smart_ptr",
":static_assert",
":mpl",
":type_traits",
":tokenizer",
":bind",
":algorithm",
":iterator",
":lexical_cast",
":io",
],
)

boost_library(
name = "filesystem",
srcs = glob([
boost_path + "/filesystem/src/*.cpp",
]),
deps = [
":config",
":functional",
":io",
":iterator",
":range",
":smart_ptr",
":system",
":type_traits",
],
)

boost_library(
name = "integer",
)

boost_library(
name = "regex",
defines = [
"BOOST_FALLTHROUGH"
],
srcs = glob([
boost_path + "/regex/src/*.cpp",
boost_path + "/regex/src/*.hpp",
]),
deps = [
":assert",
":config",
":functional",
":integer",
":mpl",
":smart_ptr",
":throw_exception",
":type_traits",
]
)

boost_library(
name = "asio",
deps = [
":throw_exception",
":system",
":regex",
]
)

Loading

0 comments on commit f6c958a

Please sign in to comment.