]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/api/BUILD
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / api / BUILD
1 # Copyright 2019, OpenTelemetry Authors
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
16
17 package(default_visibility = ["//visibility:public"])
18
19 bool_flag(
20 name = "with_abseil",
21 build_setting_default = False,
22 )
23
24 cc_library(
25 name = "api",
26 hdrs = glob(["include/**/*.h"]),
27 defines = select({
28 ":with_external_abseil": ["HAVE_ABSEIL"],
29 "//conditions:default": [],
30 }),
31 strip_include_prefix = "include",
32 tags = ["api"],
33 deps = select({
34 ":with_external_abseil": [
35 "@com_google_absl//absl/base",
36 "@com_google_absl//absl/types:variant",
37 ],
38 "//conditions:default": [],
39 }),
40 )
41
42 config_setting(
43 name = "with_external_abseil",
44 flag_values = {":with_abseil": "true"},
45 )