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