Primiano Tucci | 1d40998 | 2019-09-19 10:15:18 +0100 | [diff] [blame] | 1 | # 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 Muetschard | 6df59d5 | 2019-09-25 16:28:00 -0700 | [diff] [blame] | 15 | load("@perfetto_cfg//:perfetto_cfg.bzl", "PERFETTO_CONFIG") |
| 16 | |
Primiano Tucci | 1d40998 | 2019-09-19 10:15:18 +0100 | [diff] [blame] | 17 | cc_library( |
| 18 | name = "jsoncpp", |
| 19 | srcs = [ |
Primiano Tucci | 1d40998 | 2019-09-19 10:15:18 +0100 | [diff] [blame] | 20 | "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 Bayles | 8c6a4bc | 2020-07-16 20:20:48 -0700 | [diff] [blame] | 27 | "include/json/allocator.h", |
Primiano Tucci | 1d40998 | 2019-09-19 10:15:18 +0100 | [diff] [blame] | 28 | "include/json/assertions.h", |
Primiano Tucci | 1d40998 | 2019-09-19 10:15:18 +0100 | [diff] [blame] | 29 | "include/json/config.h", |
Primiano Tucci | 1d40998 | 2019-09-19 10:15:18 +0100 | [diff] [blame] | 30 | "include/json/forwards.h", |
| 31 | "include/json/json.h", |
Jordan Bayles | 8c6a4bc | 2020-07-16 20:20:48 -0700 | [diff] [blame] | 32 | "include/json/json_features.h", |
Primiano Tucci | 1d40998 | 2019-09-19 10:15:18 +0100 | [diff] [blame] | 33 | "include/json/reader.h", |
| 34 | "include/json/value.h", |
| 35 | "include/json/version.h", |
| 36 | "include/json/writer.h", |
| 37 | ], |
| 38 | copts = [ |
Ryan Savitski | 3175111 | 2022-04-02 00:49:07 +0100 | [diff] [blame] | 39 | "-Wno-deprecated-declarations", |
Primiano Tucci | 1d40998 | 2019-09-19 10:15:18 +0100 | [diff] [blame] | 40 | "-Isrc/lib_json", |
Pascal Muetschard | 6df59d5 | 2019-09-25 16:28:00 -0700 | [diff] [blame] | 41 | ] + PERFETTO_CONFIG.deps_copts.jsoncpp, |
Primiano Tucci | 1d40998 | 2019-09-19 10:15:18 +0100 | [diff] [blame] | 42 | defines = [ |
| 43 | "JSON_USE_EXCEPTION=0", |
| 44 | ], |
| 45 | includes = [ |
| 46 | "include", |
| 47 | ], |
| 48 | visibility = ["//visibility:public"], |
| 49 | ) |