2019-01-20 12:16:47 -08:00
|
|
|
load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
|
|
|
|
|
|
|
|
cc_library(
|
2019-01-25 00:57:31 -08:00
|
|
|
name = "arrow",
|
2019-01-20 12:16:47 -08:00
|
|
|
hdrs = [
|
|
|
|
"cpp/src/arrow/buffer.h",
|
|
|
|
"cpp/src/arrow/memory_pool.h",
|
|
|
|
"cpp/src/arrow/status.h",
|
2019-01-25 00:57:31 -08:00
|
|
|
"cpp/src/arrow/io/interfaces.h",
|
|
|
|
"cpp/src/arrow/util/bit-util.h",
|
|
|
|
"cpp/src/arrow/util/io-util.h",
|
|
|
|
"cpp/src/arrow/util/logging.h",
|
2019-01-20 12:16:47 -08:00
|
|
|
"cpp/src/arrow/util/macros.h",
|
|
|
|
"cpp/src/arrow/util/string_builder.h",
|
2019-01-25 00:57:31 -08:00
|
|
|
"cpp/src/arrow/util/string_view.h",
|
|
|
|
"cpp/src/arrow/util/type_traits.h",
|
|
|
|
"cpp/src/arrow/util/thread-pool.h",
|
|
|
|
"cpp/src/arrow/util/visibility.h",
|
|
|
|
"cpp/src/arrow/util/windows_compatibility.h",
|
|
|
|
"cpp/src/arrow/vendored/string_view.hpp",
|
|
|
|
"cpp/src/arrow/vendored/xxhash/xxhash.h",
|
|
|
|
"cpp/src/arrow/vendored/xxhash/xxhash.c",
|
|
|
|
],
|
|
|
|
srcs = [
|
|
|
|
"cpp/src/arrow/buffer.cc",
|
|
|
|
"cpp/src/arrow/memory_pool.cc",
|
|
|
|
"cpp/src/arrow/status.cc",
|
|
|
|
"cpp/src/arrow/util/logging.cc",
|
|
|
|
"cpp/src/arrow/util/thread-pool.cc",
|
|
|
|
"cpp/src/arrow/util/io-util.cc",
|
|
|
|
],
|
|
|
|
strip_include_prefix = "cpp/src",
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "plasma_client",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
hdrs = [
|
|
|
|
"cpp/src/plasma/client.h",
|
|
|
|
"cpp/src/plasma/common.h",
|
|
|
|
"cpp/src/plasma/compat.h",
|
2019-01-20 12:16:47 -08:00
|
|
|
"cpp/src/plasma/fling.h",
|
|
|
|
"cpp/src/plasma/io.h",
|
|
|
|
"cpp/src/plasma/malloc.h",
|
|
|
|
"cpp/src/plasma/plasma.h",
|
|
|
|
"cpp/src/plasma/protocol.h",
|
2019-01-25 00:57:31 -08:00
|
|
|
"cpp/src/plasma/common_generated.h",
|
|
|
|
"cpp/src/plasma/plasma_generated.h",
|
|
|
|
],
|
|
|
|
srcs = [
|
|
|
|
"cpp/src/plasma/client.cc",
|
|
|
|
"cpp/src/plasma/common.cc",
|
|
|
|
"cpp/src/plasma/fling.cc",
|
|
|
|
"cpp/src/plasma/io.cc",
|
|
|
|
"cpp/src/plasma/malloc.cc",
|
|
|
|
"cpp/src/plasma/plasma.cc",
|
|
|
|
"cpp/src/plasma/protocol.cc",
|
|
|
|
],
|
|
|
|
deps = [":common_fbs", ":plasma_fbs", ":arrow"],
|
|
|
|
strip_include_prefix = "cpp/src",
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "plasma_lib",
|
|
|
|
hdrs = [
|
|
|
|
"cpp/src/plasma/events.h",
|
|
|
|
"cpp/src/plasma/eviction_policy.h",
|
2019-01-20 12:16:47 -08:00
|
|
|
"cpp/src/plasma/store.h",
|
|
|
|
"cpp/src/plasma/thirdparty/dlmalloc.c",
|
|
|
|
"cpp/src/plasma/thirdparty/ae/ae.h",
|
|
|
|
"cpp/src/plasma/thirdparty/ae/ae_epoll.c",
|
|
|
|
"cpp/src/plasma/thirdparty/ae/ae_evport.c",
|
|
|
|
"cpp/src/plasma/thirdparty/ae/ae_kqueue.c",
|
|
|
|
"cpp/src/plasma/thirdparty/ae/ae_select.c",
|
|
|
|
"cpp/src/plasma/thirdparty/ae/config.h",
|
|
|
|
"cpp/src/plasma/thirdparty/ae/zmalloc.h",
|
|
|
|
],
|
2019-01-25 00:57:31 -08:00
|
|
|
srcs = [
|
|
|
|
"cpp/src/plasma/dlmalloc.cc",
|
|
|
|
"cpp/src/plasma/eviction_policy.cc",
|
|
|
|
"cpp/src/plasma/events.cc",
|
|
|
|
],
|
|
|
|
deps = [":plasma_client"],
|
|
|
|
strip_include_prefix = "cpp/src",
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
cc_binary(
|
|
|
|
name = "plasma_server",
|
|
|
|
visibility = ["//visibility:public"],
|
2019-01-20 12:16:47 -08:00
|
|
|
srcs = glob([
|
2019-01-25 00:57:31 -08:00
|
|
|
"cpp/src/plasma/store.cc",
|
2019-01-20 12:16:47 -08:00
|
|
|
"cpp/src/plasma/thirdparty/ae/ae.c",
|
2019-01-25 00:57:31 -08:00
|
|
|
], exclude = ["cpp/src/plasma/dlmalloc.cc", "cpp/src/plasma/events.cc"]),
|
|
|
|
deps = [":plasma_lib"],
|
2019-01-20 12:16:47 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
FLATC_ARGS = [
|
|
|
|
"--gen-object-api",
|
|
|
|
"--gen-mutable",
|
|
|
|
"--scoped-enums",
|
|
|
|
]
|
|
|
|
|
|
|
|
flatbuffer_cc_library(
|
|
|
|
name="common_fbs",
|
|
|
|
srcs=["cpp/src/plasma/format/common.fbs"],
|
|
|
|
flatc_args=FLATC_ARGS,
|
|
|
|
out_prefix="cpp/src/plasma/"
|
|
|
|
)
|
|
|
|
|
|
|
|
flatbuffer_cc_library(
|
|
|
|
name="plasma_fbs",
|
|
|
|
srcs=["cpp/src/plasma/format/plasma.fbs"],
|
|
|
|
flatc_args=FLATC_ARGS,
|
|
|
|
out_prefix="cpp/src/plasma/",
|
|
|
|
includes = ["cpp/src/plasma/format/common.fbs"]
|
|
|
|
)
|
|
|
|
|
|
|
|
exports_files(["cpp/src/plasma/format/common.fbs"])
|