Joshua Duong | 4fdea38 | 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 | |
Bob Badour | 4a6774b | 2021-02-12 19:46:09 -0800 | [diff] [blame] | 15 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // all of the 'license_kinds' from "packages_modules_adb_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | default_applicable_licenses: ["packages_modules_adb_license"], |
| 22 | } |
| 23 | |
Joshua Duong | 4fdea38 | 2020-02-07 11:04:08 -0800 | [diff] [blame] | 24 | cc_defaults { |
| 25 | name: "libadb_protos_defaults", |
| 26 | cflags: [ |
| 27 | "-Wall", |
| 28 | "-Wextra", |
| 29 | "-Wthread-safety", |
| 30 | "-Werror", |
| 31 | ], |
| 32 | |
| 33 | compile_multilib: "both", |
| 34 | |
| 35 | proto: { |
| 36 | export_proto_headers: true, |
| 37 | type: "lite", |
| 38 | }, |
| 39 | srcs: [ |
| 40 | "adb_known_hosts.proto", |
| 41 | "key_type.proto", |
| 42 | "pairing.proto", |
| 43 | ], |
| 44 | target: { |
| 45 | windows: { |
| 46 | compile_multilib: "first", |
| 47 | enabled: true, |
| 48 | }, |
| 49 | }, |
| 50 | |
| 51 | visibility: [ |
Baligh Uddin | 95e0367 | 2020-10-18 15:09:52 +0000 | [diff] [blame] | 52 | "//packages/modules/adb:__subpackages__", |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 53 | |
| 54 | // This needs to be visible to minadbd, even though it's removed via exclude_shared_libs. |
| 55 | "//bootable/recovery/minadbd:__subpackages__", |
Joshua Duong | 4fdea38 | 2020-02-07 11:04:08 -0800 | [diff] [blame] | 56 | ], |
| 57 | |
| 58 | stl: "libc++_static", |
| 59 | |
| 60 | host_supported: true, |
| 61 | recovery_available: true, |
| 62 | } |
| 63 | |
| 64 | cc_library { |
| 65 | name: "libadb_protos", |
| 66 | defaults: ["libadb_protos_defaults"], |
| 67 | |
| 68 | apex_available: [ |
| 69 | "com.android.adbd", |
| 70 | "test_com.android.adbd", |
| 71 | ], |
| 72 | } |
| 73 | |
| 74 | // For running atest (b/147158681) |
| 75 | cc_library_static { |
| 76 | name: "libadb_protos_static", |
| 77 | defaults: ["libadb_protos_defaults"], |
| 78 | |
| 79 | apex_available: [ |
| 80 | "//apex_available:platform", |
| 81 | ], |
| 82 | } |
Shukang Zhou | 420ad55 | 2020-02-13 17:01:39 -0800 | [diff] [blame] | 83 | |
| 84 | cc_defaults { |
| 85 | name: "libapp_processes_protos_defaults", |
| 86 | cflags: [ |
| 87 | "-Wall", |
| 88 | "-Wextra", |
| 89 | "-Wthread-safety", |
| 90 | "-Werror", |
| 91 | ], |
| 92 | |
| 93 | compile_multilib: "both", |
| 94 | |
| 95 | srcs: [ |
| 96 | "app_processes.proto", |
| 97 | ], |
| 98 | target: { |
| 99 | windows: { |
| 100 | compile_multilib: "first", |
| 101 | enabled: true, |
| 102 | }, |
| 103 | }, |
| 104 | |
| 105 | visibility: [ |
Baligh Uddin | 95e0367 | 2020-10-18 15:09:52 +0000 | [diff] [blame] | 106 | "//packages/modules/adb:__subpackages__", |
Josh Gao | dc20c2f | 2020-03-27 19:41:59 -0700 | [diff] [blame] | 107 | |
| 108 | // This needs to be visible to minadbd, even though it's removed via exclude_shared_libs. |
| 109 | "//bootable/recovery/minadbd:__subpackages__", |
Shukang Zhou | 420ad55 | 2020-02-13 17:01:39 -0800 | [diff] [blame] | 110 | ], |
| 111 | |
| 112 | stl: "libc++_static", |
| 113 | |
| 114 | apex_available: [ |
| 115 | "com.android.adbd", |
| 116 | "test_com.android.adbd", |
| 117 | ], |
| 118 | } |
| 119 | |
| 120 | cc_library { |
| 121 | name: "libapp_processes_protos_lite", |
| 122 | defaults: ["libapp_processes_protos_defaults"], |
| 123 | |
| 124 | apex_available: ["//apex_available:platform"], |
| 125 | |
| 126 | proto: { |
| 127 | export_proto_headers: true, |
| 128 | type: "lite", |
| 129 | }, |
| 130 | |
| 131 | host_supported: true, |
| 132 | recovery_available: true, |
| 133 | } |
| 134 | |
| 135 | cc_library_host_static { |
| 136 | name: "libapp_processes_protos_full", |
| 137 | defaults: ["libapp_processes_protos_defaults"], |
| 138 | |
| 139 | proto: { |
| 140 | export_proto_headers: true, |
| 141 | type: "full", |
| 142 | }, |
| 143 | } |