blob: 321a94f1be6da5b904edc36cc7995dcb20f24f99 [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 = [
Primiano Tucci1d409982019-09-19 10:15:18 +010020 "src/lib_json/json_reader.cpp",
21 "src/lib_json/json_tool.h",
22 "src/lib_json/json_value.cpp",
23 "src/lib_json/json_valueiterator.inl",
24 "src/lib_json/json_writer.cpp",
25 ],
26 hdrs = [
Jordan Bayles8c6a4bc2020-07-16 20:20:48 -070027 "include/json/allocator.h",
Primiano Tucci1d409982019-09-19 10:15:18 +010028 "include/json/assertions.h",
Primiano Tucci1d409982019-09-19 10:15:18 +010029 "include/json/config.h",
Primiano Tucci1d409982019-09-19 10:15:18 +010030 "include/json/forwards.h",
31 "include/json/json.h",
Jordan Bayles8c6a4bc2020-07-16 20:20:48 -070032 "include/json/json_features.h",
Primiano Tucci1d409982019-09-19 10:15:18 +010033 "include/json/reader.h",
34 "include/json/value.h",
35 "include/json/version.h",
36 "include/json/writer.h",
37 ],
38 copts = [
Ryan Savitski31751112022-04-02 00:49:07 +010039 "-Wno-deprecated-declarations",
Primiano Tucci1d409982019-09-19 10:15:18 +010040 "-Isrc/lib_json",
Pascal Muetschard6df59d52019-09-25 16:28:00 -070041 ] + PERFETTO_CONFIG.deps_copts.jsoncpp,
Primiano Tucci1d409982019-09-19 10:15:18 +010042 defines = [
43 "JSON_USE_EXCEPTION=0",
44 ],
45 includes = [
46 "include",
47 ],
48 visibility = ["//visibility:public"],
49)