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 15load("@perfetto_cfg//:perfetto_cfg.bzl", "PERFETTO_CONFIG") 16 17cc_library( 18 name = "jsoncpp", 19 srcs = [ 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 = [ 27 "include/json/allocator.h", 28 "include/json/assertions.h", 29 "include/json/config.h", 30 "include/json/forwards.h", 31 "include/json/json.h", 32 "include/json/json_features.h", 33 "include/json/reader.h", 34 "include/json/value.h", 35 "include/json/version.h", 36 "include/json/writer.h", 37 ], 38 copts = [ 39 "-Wno-deprecated-declarations", 40 "-Isrc/lib_json", 41 ] + PERFETTO_CONFIG.deps_copts.jsoncpp, 42 defines = [ 43 "JSON_USE_EXCEPTION=0", 44 ], 45 includes = [ 46 "include", 47 ], 48 visibility = ["//visibility:public"], 49) 50