blob: bef06a1d8b4e869e8cfcf7c935061c436618dafd [file] [log] [blame]
Primiano Tucci1d409982019-09-19 10:15:18 +01001# Copyright (C) 2019 The Android Open Source Project
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
Pascal Muetschard6df59d52019-09-25 16:28:00 -070015load("@perfetto_cfg//:perfetto_cfg.bzl", "PERFETTO_CONFIG")
16
Primiano Tucci1d409982019-09-19 10:15:18 +010017cc_library(
18 name = "jsoncpp",
19 srcs = [
20 "src/lib_json/json_batchallocator.h",
21 "src/lib_json/json_internalarray.inl",
22 "src/lib_json/json_internalmap.inl",
23 "src/lib_json/json_reader.cpp",
24 "src/lib_json/json_tool.h",
25 "src/lib_json/json_value.cpp",
26 "src/lib_json/json_valueiterator.inl",
27 "src/lib_json/json_writer.cpp",
28 ],
29 hdrs = [
30 "include/json/assertions.h",
31 "include/json/autolink.h",
32 "include/json/config.h",
33 "include/json/features.h",
34 "include/json/forwards.h",
35 "include/json/json.h",
36 "include/json/reader.h",
37 "include/json/value.h",
38 "include/json/version.h",
39 "include/json/writer.h",
40 ],
41 copts = [
42 "-Isrc/lib_json",
Pascal Muetschard6df59d52019-09-25 16:28:00 -070043 ] + PERFETTO_CONFIG.deps_copts.jsoncpp,
Primiano Tucci1d409982019-09-19 10:15:18 +010044 defines = [
45 "JSON_USE_EXCEPTION=0",
46 ],
47 includes = [
48 "include",
49 ],
50 visibility = ["//visibility:public"],
51)