blob: 13dcc203cce6e5b2d3275807e1d59637bf524efd [file] [log] [blame]
# Copyright (c) 2022 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")
config("jsoncpp_config") {
include_dirs = [ "repo/include" ]
}
config("jsoncpp_config_disable_warnings") {
cflags = [ "-Wno-implicit-fallthrough" ]
}
source_set("jsoncpp") {
sources = [
"repo/include/json/allocator.h",
"repo/include/json/assertions.h",
"repo/include/json/config.h",
"repo/include/json/forwards.h",
"repo/include/json/json.h",
"repo/include/json/json_features.h",
"repo/include/json/reader.h",
"repo/include/json/value.h",
"repo/include/json/version.h",
"repo/include/json/writer.h",
"repo/src/lib_json/json_reader.cpp",
"repo/src/lib_json/json_tool.h",
"repo/src/lib_json/json_value.cpp",
"repo/src/lib_json/json_writer.cpp",
]
public_configs = [ ":jsoncpp_config" ]
configs += [ ":jsoncpp_config_disable_warnings" ]
defines = [
"JSON_USE_EXCEPTION=0",
"JSON_USE_NULLREF=0",
]
include_dirs = [ "repo/src/lib_json" ]
}