blob: 03e8ac1bbbedbafb8887d635614c0ff1a33c5516 [file] [log] [blame]
Bob Badour1f37bb52021-02-12 15:35:08 -08001package {
2 default_applicable_licenses: ["external_jsoncpp_license"],
3}
4
5// Added automatically by a large-scale-change that took the approach of
6// 'apply every license found to every target'. While this makes sure we respect
7// every license restriction, it may not be entirely correct.
8//
9// e.g. GPL in an MIT project might only apply to the contrib/ directory.
10//
11// Please consider splitting the single license below into multiple licenses,
12// taking care not to lose any license_kind information, and overriding the
13// default license using the 'licenses: [...]' property on targets as needed.
14//
15// For unused files, consider creating a 'fileGroup' with "//visibility:private"
16// to attach the license to, and including a comment whether the files may be
17// used in the current project.
18// See: http://go/android-license-faq
19license {
20 name: "external_jsoncpp_license",
21 visibility: [":__subpackages__"],
22 license_kinds: [
23 "SPDX-license-identifier-MIT",
24 "legacy_unencumbered",
25 ],
26 license_text: [
27 "LICENSE",
28 ],
29}
30
Derek Sollenbergerfd78d1f2018-01-31 13:27:11 -050031cc_defaults {
32 name: "libjsoncpp_defaults",
Leon Scroggins III37adfc02017-01-20 16:04:33 -050033
34 srcs: [
35 "src/lib_json/json_reader.cpp",
36 "src/lib_json/json_value.cpp",
37 "src/lib_json/json_writer.cpp",
38 ],
39
40 local_include_dirs: [
41 "src/lib_json",
42 ],
43
Dan Albertbf34ad12018-12-06 11:03:03 -080044 include_build_directory: false,
45
Leon Scroggins III37adfc02017-01-20 16:04:33 -050046 export_include_dirs: ["include"],
47
Chih-Hung Hsieh5b9e4772017-09-28 12:36:04 -070048 cflags: [
49 "-DJSON_USE_EXCEPTION=0",
Haibo Huang00a03b02021-02-25 11:17:28 -080050 "-DJSONCPP_NO_LOCALE_SUPPORT",
Chih-Hung Hsieh5b9e4772017-09-28 12:36:04 -070051 "-Wall",
52 "-Werror",
Chih-Hung Hsiehb860d832018-09-04 15:00:45 -070053 "-Wno-implicit-fallthrough",
54 // src/lib_json/json_reader.cpp:210 has -Wno-implicit-fallthrough
Chih-Hung Hsieh5b9e4772017-09-28 12:36:04 -070055 ],
John Muir19f1bfc2017-10-15 22:26:53 -070056
57 target: {
58 windows: {
59 enabled: true,
60 },
61 },
Leon Scroggins III37adfc02017-01-20 16:04:33 -050062}
Derek Sollenbergerfd78d1f2018-01-31 13:27:11 -050063
Doug Horn948e5172018-08-15 18:04:47 -070064cc_library {
Derek Sollenbergerfd78d1f2018-01-31 13:27:11 -050065 name: "libjsoncpp",
66 defaults: ["libjsoncpp_defaults"],
67 vendor_available: true,
Justin Yun673e0eb2020-11-11 16:23:38 +090068 product_available: true,
Suren Baghdasaryan67f5c6d2018-12-14 10:05:48 -080069 vndk: {
70 enabled: true,
71 support_system_process: true,
72 },
Derek Sollenbergerfd78d1f2018-01-31 13:27:11 -050073 host_supported: true,
Yifan Honga8945902020-10-21 18:19:38 -070074 ramdisk_available: true,
75 vendor_ramdisk_available: true,
Suren Baghdasaryan67f5c6d2018-12-14 10:05:48 -080076 recovery_available: true,
Przemyslaw Szczepaniakd53951c2020-02-05 17:25:40 +000077 apex_available: [
Przemyslaw Szczepaniakd53951c2020-02-05 17:25:40 +000078 "//apex_available:platform",
Jiyong Park6b158d32020-03-07 16:59:11 +090079 "//apex_available:anyapex",
Przemyslaw Szczepaniakd53951c2020-02-05 17:25:40 +000080 ],
dimitry921a9432019-05-14 11:30:42 +020081 native_bridge_supported: true,
Jooyung Han3671db52020-04-16 18:48:27 +090082 min_sdk_version: "29",
Derek Sollenbergerfd78d1f2018-01-31 13:27:11 -050083}
84
85cc_library_static {
86 name: "libjsoncpp_ndk",
87 defaults: ["libjsoncpp_defaults"],
88 sdk_version: "9",
89 stl: "libc++_static",
90}
Yi Kong9d90b452019-08-18 17:56:09 -070091
92cc_library_headers {
93 name: "libjsoncpp_headers",
94 export_include_dirs: ["include"],
95 host_supported: true,
96}