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__", |
| 44 | ], |
| 45 | |
| 46 | stl: "libc++_static", |
| 47 | |
| 48 | host_supported: true, |
| 49 | recovery_available: true, |
| 50 | } |
| 51 | |
| 52 | cc_library { |
| 53 | name: "libadb_protos", |
| 54 | defaults: ["libadb_protos_defaults"], |
| 55 | |
| 56 | apex_available: [ |
| 57 | "com.android.adbd", |
| 58 | "test_com.android.adbd", |
| 59 | ], |
| 60 | } |
| 61 | |
| 62 | // For running atest (b/147158681) |
| 63 | cc_library_static { |
| 64 | name: "libadb_protos_static", |
| 65 | defaults: ["libadb_protos_defaults"], |
| 66 | |
| 67 | apex_available: [ |
| 68 | "//apex_available:platform", |
| 69 | ], |
| 70 | } |
Shukang Zhou | f4ffae1 | 2020-02-13 17:01:39 -0800 | [diff] [blame] | 71 | |
| 72 | cc_defaults { |
| 73 | name: "libapp_processes_protos_defaults", |
| 74 | cflags: [ |
| 75 | "-Wall", |
| 76 | "-Wextra", |
| 77 | "-Wthread-safety", |
| 78 | "-Werror", |
| 79 | ], |
| 80 | |
| 81 | compile_multilib: "both", |
| 82 | |
| 83 | srcs: [ |
| 84 | "app_processes.proto", |
| 85 | ], |
| 86 | target: { |
| 87 | windows: { |
| 88 | compile_multilib: "first", |
| 89 | enabled: true, |
| 90 | }, |
| 91 | }, |
| 92 | |
| 93 | visibility: [ |
| 94 | "//system/core/adb:__subpackages__", |
| 95 | ], |
| 96 | |
| 97 | stl: "libc++_static", |
| 98 | |
| 99 | apex_available: [ |
| 100 | "com.android.adbd", |
| 101 | "test_com.android.adbd", |
| 102 | ], |
| 103 | } |
| 104 | |
| 105 | cc_library { |
| 106 | name: "libapp_processes_protos_lite", |
| 107 | defaults: ["libapp_processes_protos_defaults"], |
| 108 | |
| 109 | apex_available: ["//apex_available:platform"], |
| 110 | |
| 111 | proto: { |
| 112 | export_proto_headers: true, |
| 113 | type: "lite", |
| 114 | }, |
| 115 | |
| 116 | host_supported: true, |
| 117 | recovery_available: true, |
| 118 | } |
| 119 | |
| 120 | cc_library_host_static { |
| 121 | name: "libapp_processes_protos_full", |
| 122 | defaults: ["libapp_processes_protos_defaults"], |
| 123 | |
| 124 | proto: { |
| 125 | export_proto_headers: true, |
| 126 | type: "full", |
| 127 | }, |
| 128 | } |