blob: 2ef1e5df176dd4f0e0222ff845818c9001847645 [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,
Suren Baghdasaryan67f5c6d2018-12-14 10:05:48 -080037 vndk: {
38 enabled: true,
39 support_system_process: true,
40 },
Derek Sollenbergerfd78d1f2018-01-31 13:27:11 -050041 host_supported: true,
Suren Baghdasaryan67f5c6d2018-12-14 10:05:48 -080042 recovery_available: true,
Przemyslaw Szczepaniakd53951c2020-02-05 17:25:40 +000043 apex_available: [
Przemyslaw Szczepaniakd53951c2020-02-05 17:25:40 +000044 "//apex_available:platform",
Jiyong Park1127aa92020-03-07 16:59:11 +090045 "//apex_available:anyapex",
Przemyslaw Szczepaniakd53951c2020-02-05 17:25:40 +000046 ],
dimitry921a9432019-05-14 11:30:42 +020047 native_bridge_supported: true,
Jooyung Han3c3f2712020-04-16 18:48:27 +090048 min_sdk_version: "29",
Derek Sollenbergerfd78d1f2018-01-31 13:27:11 -050049}
50
51cc_library_static {
52 name: "libjsoncpp_ndk",
53 defaults: ["libjsoncpp_defaults"],
54 sdk_version: "9",
55 stl: "libc++_static",
56}
Yi Kong9d90b452019-08-18 17:56:09 -070057
58cc_library_headers {
59 name: "libjsoncpp_headers",
60 export_include_dirs: ["include"],
61 host_supported: true,
62}