blob: ef97208a56a2fcc8e4dee80bb611042c6bdbb495 [file] [log] [blame]
Joshua Duong9e96e712020-02-07 11:04:08 -08001// Copyright (C) 2020 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15cc_defaults {
16 name: "libadb_protos_defaults",
17 cflags: [
18 "-Wall",
19 "-Wextra",
20 "-Wthread-safety",
21 "-Werror",
22 ],
23
24 compile_multilib: "both",
25
26 proto: {
27 export_proto_headers: true,
28 type: "lite",
29 },
30 srcs: [
31 "adb_known_hosts.proto",
32 "key_type.proto",
33 "pairing.proto",
34 ],
35 target: {
36 windows: {
37 compile_multilib: "first",
38 enabled: true,
39 },
40 },
41
42 visibility: [
Baligh Uddin27674472020-10-18 15:09:52 +000043 "//packages/modules/adb:__subpackages__",
Joshua Duong9e96e712020-02-07 11:04:08 -080044 "//system/core/adb:__subpackages__",
Josh Gao37356142020-03-27 19:41:59 -070045
46 // This needs to be visible to minadbd, even though it's removed via exclude_shared_libs.
47 "//bootable/recovery/minadbd:__subpackages__",
Joshua Duong9e96e712020-02-07 11:04:08 -080048 ],
49
50 stl: "libc++_static",
51
52 host_supported: true,
53 recovery_available: true,
54}
55
56cc_library {
57 name: "libadb_protos",
58 defaults: ["libadb_protos_defaults"],
59
60 apex_available: [
61 "com.android.adbd",
62 "test_com.android.adbd",
63 ],
64}
65
66// For running atest (b/147158681)
67cc_library_static {
68 name: "libadb_protos_static",
69 defaults: ["libadb_protos_defaults"],
70
71 apex_available: [
72 "//apex_available:platform",
73 ],
74}
Shukang Zhouf4ffae12020-02-13 17:01:39 -080075
76cc_defaults {
77 name: "libapp_processes_protos_defaults",
78 cflags: [
79 "-Wall",
80 "-Wextra",
81 "-Wthread-safety",
82 "-Werror",
83 ],
84
85 compile_multilib: "both",
86
87 srcs: [
88 "app_processes.proto",
89 ],
90 target: {
91 windows: {
92 compile_multilib: "first",
93 enabled: true,
94 },
95 },
96
97 visibility: [
Baligh Uddin27674472020-10-18 15:09:52 +000098 "//packages/modules/adb:__subpackages__",
Shukang Zhouf4ffae12020-02-13 17:01:39 -080099 "//system/core/adb:__subpackages__",
Josh Gao37356142020-03-27 19:41:59 -0700100
101 // This needs to be visible to minadbd, even though it's removed via exclude_shared_libs.
102 "//bootable/recovery/minadbd:__subpackages__",
Shukang Zhouf4ffae12020-02-13 17:01:39 -0800103 ],
104
105 stl: "libc++_static",
106
107 apex_available: [
108 "com.android.adbd",
109 "test_com.android.adbd",
110 ],
111}
112
113cc_library {
114 name: "libapp_processes_protos_lite",
115 defaults: ["libapp_processes_protos_defaults"],
116
117 apex_available: ["//apex_available:platform"],
118
119 proto: {
120 export_proto_headers: true,
121 type: "lite",
122 },
123
124 host_supported: true,
125 recovery_available: true,
126}
127
128cc_library_host_static {
129 name: "libapp_processes_protos_full",
130 defaults: ["libapp_processes_protos_defaults"],
131
132 proto: {
133 export_proto_headers: true,
134 type: "full",
135 },
136}