Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 1 | // Copyright (C) 2018 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 | 8a6a2bc | 2021-02-12 17:07:05 -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 "frameworks_base_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | default_applicable_licenses: ["frameworks_base_license"], |
| 22 | } |
| 23 | |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 24 | cc_defaults { |
| 25 | name: "idmap2_defaults", |
Yurii Zubrytskyi | ba6f8a3 | 2022-02-16 17:00:42 -0800 | [diff] [blame] | 26 | cpp_std: "gnu++2b", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 27 | tidy: true, |
Stephen Hines | 328a29c | 2020-06-09 00:14:52 -0700 | [diff] [blame] | 28 | tidy_checks: [ |
| 29 | "modernize-*", |
| 30 | "-modernize-avoid-c-arrays", |
Yurii Zubrytskyi | 70ded19 | 2023-05-01 21:58:51 -0700 | [diff] [blame^] | 31 | "-modernize-use-nodiscard", |
Stephen Hines | 328a29c | 2020-06-09 00:14:52 -0700 | [diff] [blame] | 32 | "-modernize-use-trailing-return-type", |
| 33 | "android-*", |
| 34 | "misc-*", |
Yurii Zubrytskyi | 70ded19 | 2023-05-01 21:58:51 -0700 | [diff] [blame^] | 35 | "-misc-const-correctness", |
Stephen Hines | 328a29c | 2020-06-09 00:14:52 -0700 | [diff] [blame] | 36 | "readability-*", |
Yurii Zubrytskyi | ba6f8a3 | 2022-02-16 17:00:42 -0800 | [diff] [blame] | 37 | "-readability-identifier-length", |
Yurii Zubrytskyi | 70ded19 | 2023-05-01 21:58:51 -0700 | [diff] [blame^] | 38 | "-readability-implicit-bool-conversion", |
Stephen Hines | 328a29c | 2020-06-09 00:14:52 -0700 | [diff] [blame] | 39 | ], |
Stephen Hines | ab17065 | 2020-06-09 00:13:57 -0700 | [diff] [blame] | 40 | tidy_checks_as_errors: [ |
Ryan Mitchell | 1982345 | 2019-01-29 12:01:24 -0800 | [diff] [blame] | 41 | "modernize-*", |
| 42 | "-modernize-avoid-c-arrays", |
Yabin Cui | 5fa57f6 | 2021-07-14 17:25:16 -0700 | [diff] [blame] | 43 | "-modernize-concat-nested-namespaces", |
Chih-Hung Hsieh | 14d955f | 2021-02-11 11:52:15 -0800 | [diff] [blame] | 44 | "-modernize-pass-by-value", |
| 45 | "-modernize-replace-disallow-copy-and-assign-macro", |
Yabin Cui | 5fa57f6 | 2021-07-14 17:25:16 -0700 | [diff] [blame] | 46 | "-modernize-return-braced-init-list", |
Yi Kong | b0981d9 | 2022-02-18 01:52:21 +0800 | [diff] [blame] | 47 | "-modernize-use-default-member-init", |
Chih-Hung Hsieh | 14d955f | 2021-02-11 11:52:15 -0800 | [diff] [blame] | 48 | "-modernize-use-equals-default", |
Chih-Hung Hsieh | a602a8b | 2022-09-19 15:13:36 -0700 | [diff] [blame] | 49 | "-modernize-use-emplace", |
Chih-Hung Hsieh | 14d955f | 2021-02-11 11:52:15 -0800 | [diff] [blame] | 50 | "-modernize-use-nodiscard", |
| 51 | "-modernize-use-override", |
Yi Kong | fbafa51 | 2019-07-27 14:43:50 -0700 | [diff] [blame] | 52 | "-modernize-use-trailing-return-type", |
Chih-Hung Hsieh | 14d955f | 2021-02-11 11:52:15 -0800 | [diff] [blame] | 53 | "-modernize-use-using", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 54 | "android-*", |
| 55 | "misc-*", |
Chih-Hung Hsieh | 14d955f | 2021-02-11 11:52:15 -0800 | [diff] [blame] | 56 | "-misc-non-private-member-variables-in-classes", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 57 | "readability-*", |
Chih-Hung Hsieh | 14d955f | 2021-02-11 11:52:15 -0800 | [diff] [blame] | 58 | "-readability-braces-around-statements", |
| 59 | "-readability-const-return-type", |
| 60 | "-readability-convert-member-functions-to-static", |
Pirama Arumuga Nainar | 8186f29 | 2022-03-10 04:56:33 +0000 | [diff] [blame] | 61 | "-readability-duplicate-include", |
Yurii Zubrytskyi | 70ded19 | 2023-05-01 21:58:51 -0700 | [diff] [blame^] | 62 | "-readability-implicit-bool-conversion", |
Chih-Hung Hsieh | 14d955f | 2021-02-11 11:52:15 -0800 | [diff] [blame] | 63 | "-readability-else-after-return", |
| 64 | "-readability-named-parameter", |
| 65 | "-readability-redundant-access-specifiers", |
| 66 | "-readability-uppercase-literal-suffix", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 67 | ], |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | cc_library { |
| 71 | name: "libidmap2", |
| 72 | defaults: [ |
| 73 | "idmap2_defaults", |
| 74 | ], |
| 75 | host_supported: true, |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 76 | srcs: [ |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 77 | "libidmap2/**/*.cpp", |
felkachang | 1039d61 | 2022-06-21 15:09:47 +0800 | [diff] [blame] | 78 | "self_targeting/*.cpp", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 79 | ], |
| 80 | export_include_dirs: ["include"], |
| 81 | target: { |
| 82 | android: { |
| 83 | static: { |
| 84 | enabled: false, |
| 85 | }, |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 86 | static_libs: [ |
| 87 | "libidmap2_protos", |
| 88 | ], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 89 | shared_libs: [ |
| 90 | "libandroidfw", |
| 91 | "libbase", |
Mårten Kongstad | 4cbb007 | 2018-11-30 16:22:05 +0100 | [diff] [blame] | 92 | "libcutils", |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 93 | "libidmap2_policies", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 94 | "libprotobuf-cpp-lite", |
| 95 | "libutils", |
| 96 | "libz", |
| 97 | "libziparchive", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 98 | ], |
| 99 | }, |
| 100 | host: { |
| 101 | shared: { |
| 102 | enabled: false, |
| 103 | }, |
| 104 | static_libs: [ |
| 105 | "libandroidfw", |
| 106 | "libbase", |
Steven Moreland | 598bda8 | 2019-09-18 12:58:11 -0700 | [diff] [blame] | 107 | "libcutils", |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 108 | "libidmap2_policies", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 109 | "libidmap2_protos", |
| 110 | "libprotobuf-cpp-lite", |
| 111 | "libutils", |
| 112 | "libz", |
| 113 | "libziparchive", |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 114 | ], |
| 115 | }, |
| 116 | }, |
| 117 | } |
| 118 | |
| 119 | cc_library { |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 120 | name: "libidmap2_protos", |
| 121 | srcs: [ |
| 122 | "libidmap2/proto/*.proto", |
| 123 | ], |
| 124 | host_supported: true, |
Yurii Zubrytskyi | ba6f8a3 | 2022-02-16 17:00:42 -0800 | [diff] [blame] | 125 | tidy: false, |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 126 | proto: { |
| 127 | type: "lite", |
| 128 | export_proto_headers: true, |
| 129 | }, |
| 130 | } |
| 131 | |
| 132 | cc_library { |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 133 | name: "libidmap2_policies", |
| 134 | defaults: [ |
| 135 | "idmap2_defaults", |
| 136 | ], |
| 137 | host_supported: true, |
| 138 | export_include_dirs: ["libidmap2_policies/include"], |
| 139 | target: { |
| 140 | windows: { |
| 141 | enabled: true, |
| 142 | }, |
| 143 | android: { |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 144 | shared_libs: [ |
| 145 | "libandroidfw", |
| 146 | ], |
| 147 | }, |
| 148 | host: { |
| 149 | shared: { |
| 150 | enabled: false, |
| 151 | }, |
| 152 | static_libs: [ |
| 153 | "libandroidfw", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 154 | ], |
| 155 | }, |
| 156 | }, |
| 157 | } |
| 158 | |
| 159 | cc_test { |
| 160 | name: "idmap2_tests", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 161 | defaults: [ |
| 162 | "idmap2_defaults", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 163 | ], |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 164 | tidy_checks: [ |
| 165 | "-readability-magic-numbers", |
| 166 | ], |
| 167 | host_supported: true, |
Ryan Mitchell | bcc179a | 2019-03-29 14:55:51 -0700 | [diff] [blame] | 168 | test_suites: ["general-tests"], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 169 | srcs: [ |
| 170 | "tests/BinaryStreamVisitorTests.cpp", |
| 171 | "tests/CommandLineOptionsTests.cpp", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 172 | "tests/FabricatedOverlayTests.cpp", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 173 | "tests/FileUtilsTests.cpp", |
| 174 | "tests/Idmap2BinaryTests.cpp", |
| 175 | "tests/IdmapTests.cpp", |
| 176 | "tests/Main.cpp", |
Mårten Kongstad | d10d06d | 2019-01-07 17:26:25 -0800 | [diff] [blame] | 177 | "tests/PoliciesTests.cpp", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 178 | "tests/PrettyPrintVisitorTests.cpp", |
| 179 | "tests/RawPrintVisitorTests.cpp", |
Ryan Mitchell | 9e4f52b | 2019-09-19 12:15:52 -0700 | [diff] [blame] | 180 | "tests/ResourceMappingTests.cpp", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 181 | "tests/ResourceUtilsTests.cpp", |
Mårten Kongstad | 1e99b17 | 2019-01-28 08:49:12 +0100 | [diff] [blame] | 182 | "tests/ResultTests.cpp", |
Ryan Mitchell | cd965a3 | 2019-09-18 14:52:45 -0700 | [diff] [blame] | 183 | "tests/XmlParserTests.cpp", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 184 | ], |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 185 | required: [ |
| 186 | "idmap2", |
| 187 | ], |
| 188 | static_libs: [ |
| 189 | "libgmock", |
| 190 | "libidmap2_protos", |
| 191 | ], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 192 | target: { |
| 193 | android: { |
| 194 | shared_libs: [ |
| 195 | "libandroidfw", |
| 196 | "libbase", |
| 197 | "libidmap2", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 198 | "libidmap2_policies", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 199 | "liblog", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 200 | "libprotobuf-cpp-lite", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 201 | "libutils", |
| 202 | "libz", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 203 | "libz", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 204 | "libziparchive", |
| 205 | ], |
| 206 | }, |
| 207 | host: { |
| 208 | static_libs: [ |
| 209 | "libandroidfw", |
| 210 | "libbase", |
Steven Moreland | 598bda8 | 2019-09-18 12:58:11 -0700 | [diff] [blame] | 211 | "libcutils", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 212 | "libidmap2", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 213 | "libidmap2_policies", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 214 | "liblog", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 215 | "libprotobuf-cpp-lite", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 216 | "libutils", |
| 217 | "libziparchive", |
| 218 | ], |
| 219 | shared_libs: [ |
| 220 | "libz", |
| 221 | ], |
Julien Desprez | 91e0330 | 2021-02-08 16:46:08 -0800 | [diff] [blame] | 222 | data: [ |
| 223 | ":libz", |
| 224 | ":idmap2", |
| 225 | ], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 226 | }, |
| 227 | }, |
Julien Desprez | 91e0330 | 2021-02-08 16:46:08 -0800 | [diff] [blame] | 228 | data: [ |
| 229 | "tests/data/**/*.apk", |
Jeremy Meyer | a761f33 | 2022-10-21 17:42:14 +0000 | [diff] [blame] | 230 | "tests/data/**/*.png", |
Julien Desprez | 91e0330 | 2021-02-08 16:46:08 -0800 | [diff] [blame] | 231 | ], |
| 232 | compile_multilib: "first", |
| 233 | test_options: { |
| 234 | unit_test: true, |
| 235 | }, |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 236 | } |
| 237 | |
| 238 | cc_binary { |
| 239 | name: "idmap2", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 240 | defaults: [ |
| 241 | "idmap2_defaults", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 242 | ], |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 243 | host_supported: true, |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 244 | srcs: [ |
Ryan Mitchell | a707013 | 2020-05-13 14:17:52 -0700 | [diff] [blame] | 245 | "idmap2/CommandUtils.cpp", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 246 | "idmap2/Create.cpp", |
Ryan Mitchell | 9b93942 | 2020-02-04 10:18:53 -0800 | [diff] [blame] | 247 | "idmap2/CreateMultiple.cpp", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 248 | "idmap2/Dump.cpp", |
| 249 | "idmap2/Lookup.cpp", |
| 250 | "idmap2/Main.cpp", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 251 | ], |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 252 | static_libs: [ |
| 253 | "libidmap2_protos", |
| 254 | ], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 255 | target: { |
| 256 | android: { |
| 257 | shared_libs: [ |
| 258 | "libandroidfw", |
| 259 | "libbase", |
Mårten Kongstad | 4cbb007 | 2018-11-30 16:22:05 +0100 | [diff] [blame] | 260 | "libcutils", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 261 | "libidmap2", |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 262 | "libidmap2_policies", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 263 | "libprotobuf-cpp-lite", |
| 264 | "libutils", |
| 265 | "libz", |
| 266 | "libziparchive", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 267 | ], |
| 268 | }, |
| 269 | host: { |
| 270 | static_libs: [ |
| 271 | "libandroidfw", |
| 272 | "libbase", |
Steven Moreland | 598bda8 | 2019-09-18 12:58:11 -0700 | [diff] [blame] | 273 | "libcutils", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 274 | "libidmap2", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 275 | "libidmap2_policies", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 276 | "liblog", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 277 | "libprotobuf-cpp-lite", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 278 | "libutils", |
| 279 | "libziparchive", |
| 280 | ], |
| 281 | shared_libs: [ |
| 282 | "libz", |
| 283 | ], |
| 284 | }, |
| 285 | }, |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 286 | |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 287 | } |
| 288 | |
| 289 | cc_binary { |
| 290 | name: "idmap2d", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 291 | defaults: [ |
| 292 | "idmap2_defaults", |
| 293 | ], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 294 | host_supported: false, |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 295 | srcs: [ |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 296 | "idmap2d/Idmap2Service.cpp", |
| 297 | "idmap2d/Main.cpp", |
| 298 | ], |
| 299 | shared_libs: [ |
| 300 | "libandroidfw", |
| 301 | "libbase", |
| 302 | "libbinder", |
| 303 | "libcutils", |
| 304 | "libidmap2", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 305 | "libidmap2_policies", |
| 306 | "libprotobuf-cpp-lite", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 307 | "libutils", |
| 308 | "libziparchive", |
| 309 | ], |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 310 | static_libs: [ |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 311 | "libc++fs", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 312 | "libidmap2_protos", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 313 | "libidmap2daidl", |
| 314 | ], |
Mårten Kongstad | b87b5072 | 2018-09-21 09:58:10 +0200 | [diff] [blame] | 315 | init_rc: ["idmap2d/idmap2d.rc"], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 316 | } |
| 317 | |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 318 | cc_library_static { |
| 319 | name: "libidmap2daidl", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 320 | srcs: [ |
| 321 | ":idmap2_aidl", |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 322 | ":idmap2_core_aidl", |
| 323 | ], |
| 324 | header_libs: [ |
| 325 | "libbinder_headers", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 326 | ], |
| 327 | shared_libs: [ |
| 328 | "libbase", |
| 329 | ], |
| 330 | aidl: { |
| 331 | export_aidl_headers: true, |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 332 | local_include_dirs: [ |
| 333 | "idmap2d/aidl/core", |
| 334 | "idmap2d/aidl/services/", |
| 335 | ], |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 336 | }, |
| 337 | } |
| 338 | |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 339 | filegroup { |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 340 | name: "idmap2_core_aidl", |
| 341 | srcs: [ |
| 342 | "idmap2d/aidl/core/android/os/FabricatedOverlayInternal.aidl", |
| 343 | "idmap2d/aidl/core/android/os/FabricatedOverlayInternalEntry.aidl", |
| 344 | "idmap2d/aidl/core/android/os/FabricatedOverlayInfo.aidl", |
| 345 | ], |
| 346 | path: "idmap2d/aidl/core/", |
| 347 | } |
| 348 | |
| 349 | filegroup { |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 350 | name: "idmap2_aidl", |
| 351 | srcs: [ |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 352 | "idmap2d/aidl/services/android/os/IIdmap2.aidl", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 353 | ], |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 354 | path: "idmap2d/aidl/services/", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 355 | } |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 356 | |
| 357 | aidl_interface { |
| 358 | name: "overlayable_policy_aidl", |
Jiyong Park | db589dd | 2020-04-13 12:55:24 +0900 | [diff] [blame] | 359 | unstable: true, |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 360 | srcs: [":overlayable_policy_aidl_files"], |
| 361 | } |
| 362 | |
| 363 | filegroup { |
| 364 | name: "overlayable_policy_aidl_files", |
| 365 | srcs: [ |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 366 | "idmap2d/aidl/services/android/os/OverlayablePolicy.aidl", |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 367 | ], |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 368 | path: "idmap2d/aidl/services/", |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 369 | } |