1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 2019 The Chromium Authors. All rights reserved.
# 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" ]
cflags_cc = [ "-Wno-implicit-fallthrough" ]
if (is_clang) {
cflags_cc += [ "-Wno-exit-time-destructors" ]
}
}
source_set("jsoncpp") {
sources = [
"src/include/json/allocator.h",
"src/include/json/autolink.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" ]
include_dirs = [ "src/src/lib_json" ]
}
}
|