blob: 70deb3cdda4813a9a7e9246508aad463d901caeb [file] [log] [blame]
Bob Badourd69ad692021-02-16 19:02:14 -08001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Josh Gaod3df0ae2021-02-01 14:35:30 -08005filegroup {
6 name: "libtombstone_proto-src",
7 srcs: ["tombstone.proto"],
8}
9
10cc_library_static {
Josh Gao76e1e302021-01-26 15:53:11 -080011 name: "libtombstone_proto",
12 cflags: [
13 "-Wall",
14 "-Wextra",
15 "-Wthread-safety",
16 "-Werror",
17 ],
18
19 compile_multilib: "both",
20
21 proto: {
22 export_proto_headers: true,
23 type: "lite",
24 },
25
Josh Gaod3df0ae2021-02-01 14:35:30 -080026 srcs: [":libtombstone_proto-src"],
27
28 // b/155341058: Soong doesn't automatically add libprotobuf if there aren't any explicitly
29 // listed protos in srcs.
30 static_libs: ["libprotobuf-cpp-lite"],
Josh Gao76e1e302021-01-26 15:53:11 -080031
32 stl: "libc++_static",
33 apex_available: [
Paul Duffin69caa702021-05-12 11:22:55 +010034 "//apex_available:platform",
Josh Gao76e1e302021-01-26 15:53:11 -080035 "com.android.runtime",
36 ],
37
Christopher Ferris48d6e042023-07-31 14:24:01 -070038 ramdisk_available: true,
Josh Gao76e1e302021-01-26 15:53:11 -080039 recovery_available: true,
40 vendor_ramdisk_available: true,
Peter Collingbourne39a17302024-03-07 17:50:10 -080041 host_supported: true,
Josh Gao76e1e302021-01-26 15:53:11 -080042}
Siim Sammulc08a34e2023-11-17 17:06:15 +000043
44java_library_static {
45 name: "libtombstone_proto_java",
46 proto: {
47 type: "lite",
48 },
49 srcs: [
50 "tombstone.proto",
51 ],
52 jarjar_rules: "jarjar-rules.txt",
53 sdk_version: "current",
54 static_libs: ["libprotobuf-java-lite"],
55}