Joshua Duong | 9e96e71 | 2020-02-07 11:04:08 -0800 | [diff] [blame] | 1 | // 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 | |
| 15 | cc_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: [ |
| 43 | "//system/core/adb:__subpackages__", |
Josh Gao | 3735614 | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 44 | |
| 45 | // This needs to be visible to minadbd, even though it's removed via exclude_shared_libs. |
| 46 | "//bootable/recovery/minadbd:__subpackages__", |
Joshua Duong | 9e96e71 | 2020-02-07 11:04:08 -0800 | [diff] [blame] | 47 | ], |
| 48 | |
| 49 | stl: "libc++_static", |
| 50 | |
| 51 | host_supported: true, |
| 52 | recovery_available: true, |
| 53 | } |
| 54 | |
| 55 | cc_library { |
| 56 | name: "libadb_protos", |
| 57 | defaults: ["libadb_protos_defaults"], |
| 58 | |
| 59 | apex_available: [ |
| 60 | "com.android.adbd", |
| 61 | "test_com.android.adbd", |
| 62 | ], |
| 63 | } |
| 64 | |
| 65 | // For running atest (b/147158681) |
| 66 | cc_library_static { |
| 67 | name: "libadb_protos_static", |
| 68 | defaults: ["libadb_protos_defaults"], |
| 69 | |
| 70 | apex_available: [ |
| 71 | "//apex_available:platform", |
| 72 | ], |
| 73 | } |
Shukang Zhou | f4ffae1 | 2020-02-13 17:01:39 -0800 | [diff] [blame] | 74 | |
| 75 | cc_defaults { |
| 76 | name: "libapp_processes_protos_defaults", |
| 77 | cflags: [ |
| 78 | "-Wall", |
| 79 | "-Wextra", |
| 80 | "-Wthread-safety", |
| 81 | "-Werror", |
| 82 | ], |
| 83 | |
| 84 | compile_multilib: "both", |
| 85 | |
| 86 | srcs: [ |
| 87 | "app_processes.proto", |
| 88 | ], |
| 89 | target: { |
| 90 | windows: { |
| 91 | compile_multilib: "first", |
| 92 | enabled: true, |
| 93 | }, |
| 94 | }, |
| 95 | |
| 96 | visibility: [ |
| 97 | "//system/core/adb:__subpackages__", |
Josh Gao | 3735614 | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 98 | |
| 99 | // This needs to be visible to minadbd, even though it's removed via exclude_shared_libs. |
| 100 | "//bootable/recovery/minadbd:__subpackages__", |
Shukang Zhou | f4ffae1 | 2020-02-13 17:01:39 -0800 | [diff] [blame] | 101 | ], |
| 102 | |
| 103 | stl: "libc++_static", |
| 104 | |
| 105 | apex_available: [ |
| 106 | "com.android.adbd", |
| 107 | "test_com.android.adbd", |
| 108 | ], |
| 109 | } |
| 110 | |
| 111 | cc_library { |
| 112 | name: "libapp_processes_protos_lite", |
| 113 | defaults: ["libapp_processes_protos_defaults"], |
| 114 | |
| 115 | apex_available: ["//apex_available:platform"], |
| 116 | |
| 117 | proto: { |
| 118 | export_proto_headers: true, |
| 119 | type: "lite", |
| 120 | }, |
| 121 | |
| 122 | host_supported: true, |
| 123 | recovery_available: true, |
| 124 | } |
| 125 | |
| 126 | cc_library_host_static { |
| 127 | name: "libapp_processes_protos_full", |
| 128 | defaults: ["libapp_processes_protos_defaults"], |
| 129 | |
| 130 | proto: { |
| 131 | export_proto_headers: true, |
| 132 | type: "full", |
| 133 | }, |
| 134 | } |