blob: dafcb8f253c5336b8779ff2bb5427a3e333235bd [file] [log] [blame]
Derek Sollenbergerfd78d1f2018-01-31 13:27:11 -05001cc_defaults {
2 name: "libjsoncpp_defaults",
Leon Scroggins III37adfc02017-01-20 16:04:33 -05003
4 srcs: [
5 "src/lib_json/json_reader.cpp",
6 "src/lib_json/json_value.cpp",
7 "src/lib_json/json_writer.cpp",
8 ],
9
10 local_include_dirs: [
11 "src/lib_json",
12 ],
13
Dan Albertbf34ad12018-12-06 11:03:03 -080014 include_build_directory: false,
15
Leon Scroggins III37adfc02017-01-20 16:04:33 -050016 export_include_dirs: ["include"],
17
Chih-Hung Hsieh5b9e4772017-09-28 12:36:04 -070018 cflags: [
19 "-DJSON_USE_EXCEPTION=0",
20 "-Wall",
21 "-Werror",
Chih-Hung Hsiehb860d832018-09-04 15:00:45 -070022 "-Wno-implicit-fallthrough",
23 // src/lib_json/json_reader.cpp:210 has -Wno-implicit-fallthrough
Chih-Hung Hsieh5b9e4772017-09-28 12:36:04 -070024 ],
John Muir19f1bfc2017-10-15 22:26:53 -070025
26 target: {
27 windows: {
28 enabled: true,
29 },
30 },
Leon Scroggins III37adfc02017-01-20 16:04:33 -050031}
Derek Sollenbergerfd78d1f2018-01-31 13:27:11 -050032
Doug Horn948e5172018-08-15 18:04:47 -070033cc_library {
Derek Sollenbergerfd78d1f2018-01-31 13:27:11 -050034 name: "libjsoncpp",
35 defaults: ["libjsoncpp_defaults"],
36 vendor_available: true,
37 host_supported: true,
38}
39
40cc_library_static {
41 name: "libjsoncpp_ndk",
42 defaults: ["libjsoncpp_defaults"],
43 sdk_version: "9",
44 stl: "libc++_static",
45}