@@ -7,25 +7,6 @@ licenses(["notice"]) # Apache 2.0
77
88exports_files(["LICENSE.txt"])
99
10- load("@flatbuffers//:build_defs.bzl", "flatbuffer_cc_library")
11-
12- flatbuffer_cc_library(
13- name = "arrow_format",
14- srcs = [
15- "cpp/src/arrow/ipc/feather.fbs",
16- "format/File.fbs",
17- "format/Message.fbs",
18- "format/Schema.fbs",
19- "format/SparseTensor.fbs",
20- "format/Tensor.fbs",
21- ],
22- flatc_args = [
23- "--scoped-enums",
24- "--gen-object-api",
25- ],
26- out_prefix = "cpp/src/generated/",
27- )
28-
2910genrule(
3011 name = "arrow_util_config",
3112 srcs = ["cpp/src/arrow/util/config.h.cmake"],
@@ -62,7 +43,6 @@ cc_library(
6243 "cpp/src/arrow/json/*.cc",
6344 "cpp/src/arrow/tensor/*.cc",
6445 "cpp/src/arrow/util/*.cc",
65- "cpp/src/arrow/vendored/musl/strptime.c",
6646 "cpp/src/arrow/vendored/optional.hpp",
6747 "cpp/src/arrow/vendored/string_view.hpp",
6848 "cpp/src/arrow/vendored/variant.hpp",
@@ -71,6 +51,7 @@ cc_library(
7151 "cpp/src/parquet/**/*.cc",
7252 "cpp/src/generated/*.h",
7353 "cpp/src/generated/*.cpp",
54+ "cpp/thirdparty/flatbuffers/include/flatbuffers/*.h",
7455 ],
7556 exclude = [
7657 "cpp/src/**/*_benchmark.cc",
@@ -87,13 +68,25 @@ cc_library(
8768 "cpp/src/arrow/util/bpacking_neon.cc",
8869 "cpp/src/arrow/util/tracing_internal.cc",
8970 ],
90- ),
71+ ) + select({
72+ "@bazel_tools//src/conditions:windows": [
73+ "cpp/src/arrow/vendored/musl/strptime.c",
74+ ],
75+ "//conditions:default": [],
76+ }),
9177 hdrs = [
9278 # declare header from above genrule
9379 "cpp/src/arrow/util/config.h",
9480 "cpp/src/parquet/parquet_version.h",
9581 ],
96- copts = [],
82+ copts = select({
83+ "@bazel_tools//src/conditions:windows": [
84+ "/std:c++14",
85+ ],
86+ "//conditions:default": [
87+ "-std=c++14",
88+ ],
89+ }),
9790 defines = [
9891 "ARROW_WITH_BROTLI",
9992 "ARROW_WITH_SNAPPY",
@@ -110,12 +103,12 @@ cc_library(
110103 includes = [
111104 "cpp/src",
112105 "cpp/src/arrow/vendored/xxhash",
106+ "cpp/thirdparty/flatbuffers/include",
113107 ],
114108 textual_hdrs = [
115109 "cpp/src/arrow/vendored/xxhash/xxhash.c",
116110 ],
117111 deps = [
118- ":arrow_format",
119112 "@boringssl//:crypto",
120113 "@brotli",
121114 "@bzip2",
0 commit comments