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: [ |
Devin Moore | 39fe2cc | 2023-05-22 22:58:30 +0000 | [diff] [blame] | 87 | "libidmap2_policies", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 88 | "libidmap2_protos", |
Jeremy Meyer | deb46f31 | 2023-11-08 12:20:24 -0800 | [diff] [blame] | 89 | "libpng", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 90 | ], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 91 | shared_libs: [ |
| 92 | "libandroidfw", |
| 93 | "libbase", |
Mårten Kongstad | 4cbb007 | 2018-11-30 16:22:05 +0100 | [diff] [blame] | 94 | "libcutils", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 95 | "libprotobuf-cpp-lite", |
| 96 | "libutils", |
| 97 | "libz", |
| 98 | "libziparchive", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 99 | ], |
| 100 | }, |
| 101 | host: { |
| 102 | shared: { |
| 103 | enabled: false, |
| 104 | }, |
| 105 | static_libs: [ |
| 106 | "libandroidfw", |
| 107 | "libbase", |
Steven Moreland | 598bda8 | 2019-09-18 12:58:11 -0700 | [diff] [blame] | 108 | "libcutils", |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 109 | "libidmap2_policies", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 110 | "libidmap2_protos", |
Jeremy Meyer | deb46f31 | 2023-11-08 12:20:24 -0800 | [diff] [blame] | 111 | "libpng", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 112 | "libprotobuf-cpp-lite", |
| 113 | "libutils", |
| 114 | "libz", |
| 115 | "libziparchive", |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 116 | ], |
| 117 | }, |
| 118 | }, |
| 119 | } |
| 120 | |
| 121 | cc_library { |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 122 | name: "libidmap2_protos", |
| 123 | srcs: [ |
| 124 | "libidmap2/proto/*.proto", |
| 125 | ], |
| 126 | host_supported: true, |
Yurii Zubrytskyi | ba6f8a3 | 2022-02-16 17:00:42 -0800 | [diff] [blame] | 127 | tidy: false, |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 128 | proto: { |
| 129 | type: "lite", |
| 130 | export_proto_headers: true, |
| 131 | }, |
| 132 | } |
| 133 | |
Devin Moore | 39fe2cc | 2023-05-22 22:58:30 +0000 | [diff] [blame] | 134 | cc_library_static { |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 135 | name: "libidmap2_policies", |
| 136 | defaults: [ |
| 137 | "idmap2_defaults", |
| 138 | ], |
| 139 | host_supported: true, |
| 140 | export_include_dirs: ["libidmap2_policies/include"], |
| 141 | target: { |
| 142 | windows: { |
| 143 | enabled: true, |
| 144 | }, |
| 145 | android: { |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 146 | shared_libs: [ |
| 147 | "libandroidfw", |
| 148 | ], |
| 149 | }, |
| 150 | host: { |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 151 | static_libs: [ |
| 152 | "libandroidfw", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 153 | ], |
| 154 | }, |
| 155 | }, |
| 156 | } |
| 157 | |
| 158 | cc_test { |
| 159 | name: "idmap2_tests", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 160 | defaults: [ |
| 161 | "idmap2_defaults", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 162 | ], |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 163 | tidy_checks: [ |
| 164 | "-readability-magic-numbers", |
| 165 | ], |
| 166 | host_supported: true, |
Ryan Mitchell | bcc179a | 2019-03-29 14:55:51 -0700 | [diff] [blame] | 167 | test_suites: ["general-tests"], |
Yurii Zubrytskyi | 93ff40f | 2024-11-27 14:13:35 -0800 | [diff] [blame] | 168 | require_root: true, |
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", |
Jeremy Meyer | deb46f31 | 2023-11-08 12:20:24 -0800 | [diff] [blame] | 191 | "libpng", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 192 | ], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 193 | target: { |
| 194 | android: { |
| 195 | shared_libs: [ |
| 196 | "libandroidfw", |
| 197 | "libbase", |
| 198 | "libidmap2", |
| 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 | ], |
Devin Moore | 39fe2cc | 2023-05-22 22:58:30 +0000 | [diff] [blame] | 206 | static_libs: [ |
| 207 | "libidmap2_policies", |
| 208 | ], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 209 | }, |
| 210 | host: { |
| 211 | static_libs: [ |
| 212 | "libandroidfw", |
| 213 | "libbase", |
Steven Moreland | 598bda8 | 2019-09-18 12:58:11 -0700 | [diff] [blame] | 214 | "libcutils", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 215 | "libidmap2", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 216 | "libidmap2_policies", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 217 | "liblog", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 218 | "libprotobuf-cpp-lite", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 219 | "libutils", |
| 220 | "libziparchive", |
| 221 | ], |
| 222 | shared_libs: [ |
| 223 | "libz", |
| 224 | ], |
Julien Desprez | 91e0330 | 2021-02-08 16:46:08 -0800 | [diff] [blame] | 225 | data: [ |
| 226 | ":libz", |
| 227 | ":idmap2", |
| 228 | ], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 229 | }, |
| 230 | }, |
Julien Desprez | 91e0330 | 2021-02-08 16:46:08 -0800 | [diff] [blame] | 231 | data: [ |
| 232 | "tests/data/**/*.apk", |
Jeremy Meyer | a761f33 | 2022-10-21 17:42:14 +0000 | [diff] [blame] | 233 | "tests/data/**/*.png", |
Julien Desprez | 91e0330 | 2021-02-08 16:46:08 -0800 | [diff] [blame] | 234 | ], |
| 235 | compile_multilib: "first", |
| 236 | test_options: { |
| 237 | unit_test: true, |
| 238 | }, |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 239 | } |
| 240 | |
| 241 | cc_binary { |
| 242 | name: "idmap2", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 243 | defaults: [ |
| 244 | "idmap2_defaults", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 245 | ], |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 246 | host_supported: true, |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 247 | srcs: [ |
Ryan Mitchell | a707013 | 2020-05-13 14:17:52 -0700 | [diff] [blame] | 248 | "idmap2/CommandUtils.cpp", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 249 | "idmap2/Create.cpp", |
Ryan Mitchell | 9b93942 | 2020-02-04 10:18:53 -0800 | [diff] [blame] | 250 | "idmap2/CreateMultiple.cpp", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 251 | "idmap2/Dump.cpp", |
| 252 | "idmap2/Lookup.cpp", |
| 253 | "idmap2/Main.cpp", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 254 | ], |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 255 | static_libs: [ |
| 256 | "libidmap2_protos", |
| 257 | ], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 258 | target: { |
| 259 | android: { |
| 260 | shared_libs: [ |
| 261 | "libandroidfw", |
| 262 | "libbase", |
Mårten Kongstad | 4cbb007 | 2018-11-30 16:22:05 +0100 | [diff] [blame] | 263 | "libcutils", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 264 | "libidmap2", |
Jeremy Meyer | deb46f31 | 2023-11-08 12:20:24 -0800 | [diff] [blame] | 265 | "libpng", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 266 | "libprotobuf-cpp-lite", |
| 267 | "libutils", |
| 268 | "libz", |
| 269 | "libziparchive", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 270 | ], |
Devin Moore | 39fe2cc | 2023-05-22 22:58:30 +0000 | [diff] [blame] | 271 | static_libs: [ |
| 272 | "libidmap2_policies", |
| 273 | ], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 274 | }, |
| 275 | host: { |
| 276 | static_libs: [ |
| 277 | "libandroidfw", |
| 278 | "libbase", |
Steven Moreland | 598bda8 | 2019-09-18 12:58:11 -0700 | [diff] [blame] | 279 | "libcutils", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 280 | "libidmap2", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 281 | "libidmap2_policies", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 282 | "liblog", |
Jeremy Meyer | deb46f31 | 2023-11-08 12:20:24 -0800 | [diff] [blame] | 283 | "libpng", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 284 | "libprotobuf-cpp-lite", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 285 | "libutils", |
| 286 | "libziparchive", |
| 287 | ], |
| 288 | shared_libs: [ |
| 289 | "libz", |
| 290 | ], |
| 291 | }, |
| 292 | }, |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 293 | |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 294 | } |
| 295 | |
| 296 | cc_binary { |
| 297 | name: "idmap2d", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 298 | defaults: [ |
| 299 | "idmap2_defaults", |
| 300 | ], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 301 | host_supported: false, |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 302 | srcs: [ |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 303 | "idmap2d/Idmap2Service.cpp", |
| 304 | "idmap2d/Main.cpp", |
| 305 | ], |
| 306 | shared_libs: [ |
| 307 | "libandroidfw", |
| 308 | "libbase", |
| 309 | "libbinder", |
| 310 | "libcutils", |
| 311 | "libidmap2", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 312 | "libprotobuf-cpp-lite", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 313 | "libutils", |
| 314 | "libziparchive", |
| 315 | ], |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 316 | static_libs: [ |
Devin Moore | 39fe2cc | 2023-05-22 22:58:30 +0000 | [diff] [blame] | 317 | "libidmap2_policies", |
Ryan Mitchell | 2ed8bfa | 2021-01-08 13:34:28 -0800 | [diff] [blame] | 318 | "libidmap2_protos", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 319 | "libidmap2daidl", |
| 320 | ], |
Mårten Kongstad | b87b5072 | 2018-09-21 09:58:10 +0200 | [diff] [blame] | 321 | init_rc: ["idmap2d/idmap2d.rc"], |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 322 | } |
| 323 | |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 324 | cc_library_static { |
| 325 | name: "libidmap2daidl", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 326 | srcs: [ |
| 327 | ":idmap2_aidl", |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 328 | ":idmap2_core_aidl", |
| 329 | ], |
| 330 | header_libs: [ |
| 331 | "libbinder_headers", |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 332 | ], |
| 333 | shared_libs: [ |
| 334 | "libbase", |
| 335 | ], |
| 336 | aidl: { |
| 337 | export_aidl_headers: true, |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 338 | local_include_dirs: [ |
| 339 | "idmap2d/aidl/core", |
| 340 | "idmap2d/aidl/services/", |
| 341 | ], |
Mårten Kongstad | 3c9bc61 | 2018-11-19 08:26:16 +0100 | [diff] [blame] | 342 | }, |
| 343 | } |
| 344 | |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 345 | filegroup { |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 346 | name: "idmap2_core_aidl", |
| 347 | srcs: [ |
| 348 | "idmap2d/aidl/core/android/os/FabricatedOverlayInternal.aidl", |
| 349 | "idmap2d/aidl/core/android/os/FabricatedOverlayInternalEntry.aidl", |
| 350 | "idmap2d/aidl/core/android/os/FabricatedOverlayInfo.aidl", |
| 351 | ], |
| 352 | path: "idmap2d/aidl/core/", |
| 353 | } |
| 354 | |
| 355 | filegroup { |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 356 | name: "idmap2_aidl", |
| 357 | srcs: [ |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 358 | "idmap2d/aidl/services/android/os/IIdmap2.aidl", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 359 | ], |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 360 | path: "idmap2d/aidl/services/", |
Mårten Kongstad | 0275123 | 2018-04-27 13:16:32 +0200 | [diff] [blame] | 361 | } |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 362 | |
| 363 | aidl_interface { |
| 364 | name: "overlayable_policy_aidl", |
Jiyong Park | db589dd | 2020-04-13 12:55:24 +0900 | [diff] [blame] | 365 | unstable: true, |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 366 | srcs: [":overlayable_policy_aidl_files"], |
| 367 | } |
| 368 | |
| 369 | filegroup { |
| 370 | name: "overlayable_policy_aidl_files", |
| 371 | srcs: [ |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 372 | "idmap2d/aidl/services/android/os/OverlayablePolicy.aidl", |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 373 | ], |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 374 | path: "idmap2d/aidl/services/", |
Winson | 62ac8b5 | 2019-12-04 08:36:48 -0800 | [diff] [blame] | 375 | } |