blob: fe382c2a0adb1cfb6416cb7d4d758bb67d3c820c [file] [log] [blame]
# Copyright 2019 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build_overrides/build.gni")
if (build_with_chromium) {
source_set("jsoncpp") {
public_deps = [ "//third_party/jsoncpp" ]
}
} else {
config("jsoncpp_config") {
include_dirs = [ "//third_party/jsoncpp/src/include" ]
}
source_set("jsoncpp") {
sources = [
"src/include/json/allocator.h",
"src/include/json/config.h",
"src/include/json/forwards.h",
"src/include/json/json.h",
"src/include/json/json_features.h",
"src/include/json/reader.h",
"src/include/json/value.h",
"src/include/json/version.h",
"src/include/json/writer.h",
"src/src/lib_json/json_reader.cpp",
"src/src/lib_json/json_tool.h",
"src/src/lib_json/json_value.cpp",
"src/src/lib_json/json_writer.cpp",
]
public_configs = [ ":jsoncpp_config" ]
defines = [ "JSON_USE_EXCEPTION=0" ]
cflags_cc = [ "-Wno-implicit-fallthrough" ]
include_dirs = [ "src/src/lib_json" ]
}
}