2020-09-21 16:32:14 +01:00
|
|
|
// Copyright (C) 2020 The Android Open Source Project
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
package {
|
|
|
|
default_visibility: ["//visibility:private"],
|
2021-02-12 17:07:05 -08:00
|
|
|
// See: http://go/android-license-faq
|
|
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
|
|
// all of the 'license_kinds' from "frameworks_base_license"
|
|
|
|
// to get the below license kinds:
|
|
|
|
// SPDX-license-identifier-Apache-2.0
|
|
|
|
// SPDX-license-identifier-MIT
|
|
|
|
// SPDX-license-identifier-Unicode-DFS
|
|
|
|
default_applicable_licenses: ["frameworks_base_license"],
|
2020-09-21 16:32:14 +01:00
|
|
|
}
|
|
|
|
|
2019-08-15 08:27:51 -07:00
|
|
|
genrule {
|
|
|
|
name: "current-api-xml",
|
|
|
|
tools: ["metalava"],
|
2020-11-05 10:30:59 +00:00
|
|
|
srcs: [":frameworks-base-api-current.txt"],
|
2019-08-15 08:27:51 -07:00
|
|
|
out: ["current.api"],
|
|
|
|
cmd: "$(location metalava) --no-banner -convert2xmlnostrip $(in) $(out)",
|
2020-09-21 16:32:14 +01:00
|
|
|
visibility: ["//visibility:public"],
|
2019-08-15 08:27:51 -07:00
|
|
|
}
|
2020-09-21 17:02:25 +01:00
|
|
|
|
|
|
|
genrule {
|
2020-11-02 11:57:33 +00:00
|
|
|
name: "frameworks-base-api-current.txt",
|
2020-09-21 17:02:25 +01:00
|
|
|
srcs: [
|
2021-02-03 16:07:30 -08:00
|
|
|
":android.net.ipsec.ike{.public.api.txt}",
|
2020-12-17 16:57:35 +00:00
|
|
|
":art.module.public.api{.public.api.txt}",
|
2020-09-21 17:02:25 +01:00
|
|
|
":conscrypt.module.public.api{.public.api.txt}",
|
2020-10-08 14:59:17 +01:00
|
|
|
":framework-appsearch{.public.api.txt}",
|
2021-01-28 13:37:03 +09:00
|
|
|
":framework-connectivity{.public.api.txt}",
|
2020-09-24 12:09:25 +01:00
|
|
|
":framework-graphics{.public.api.txt}",
|
2020-09-21 17:02:25 +01:00
|
|
|
":framework-media{.public.api.txt}",
|
|
|
|
":framework-mediaprovider{.public.api.txt}",
|
|
|
|
":framework-permission{.public.api.txt}",
|
2021-01-21 12:48:43 -08:00
|
|
|
":framework-permission-s{.public.api.txt}",
|
2021-02-15 20:22:58 +00:00
|
|
|
":framework-scheduling{.public.api.txt}",
|
2020-09-21 17:02:25 +01:00
|
|
|
":framework-sdkextensions{.public.api.txt}",
|
|
|
|
":framework-statsd{.public.api.txt}",
|
|
|
|
":framework-tethering{.public.api.txt}",
|
|
|
|
":framework-wifi{.public.api.txt}",
|
2020-11-25 15:45:43 +00:00
|
|
|
":i18n.module.public.api{.public.api.txt}",
|
2020-09-21 17:02:25 +01:00
|
|
|
":non-updatable-current.txt",
|
|
|
|
],
|
|
|
|
out: ["current.txt"],
|
|
|
|
tools: ["metalava"],
|
|
|
|
cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
|
2020-10-20 19:26:18 +01:00
|
|
|
dists: [
|
|
|
|
{
|
|
|
|
targets: ["droidcore"],
|
|
|
|
dir: "api",
|
|
|
|
dest: "current.txt",
|
|
|
|
},
|
|
|
|
{
|
2021-01-20 20:23:34 +00:00
|
|
|
targets: ["sdk", "win_sdk"],
|
2020-10-20 19:26:18 +01:00
|
|
|
dir: "apistubs/android/public/api",
|
|
|
|
dest: "android.txt",
|
|
|
|
},
|
|
|
|
],
|
2020-11-02 11:57:33 +00:00
|
|
|
visibility: ["//visibility:public"],
|
2020-09-21 17:02:25 +01:00
|
|
|
}
|
|
|
|
|
2021-02-12 16:47:18 +00:00
|
|
|
genrule {
|
|
|
|
name: "frameworks-base-api-current-compat",
|
|
|
|
srcs: [
|
|
|
|
":android.api.public.latest",
|
|
|
|
":android-incompatibilities.api.public.latest",
|
|
|
|
":frameworks-base-api-current.txt",
|
|
|
|
],
|
|
|
|
out: ["stdout.txt"],
|
|
|
|
tools: ["metalava"],
|
|
|
|
cmd: "$(location metalava) --no-banner --format=v2 " +
|
|
|
|
"--check-compatibility:api:released $(location :android.api.public.latest) " +
|
|
|
|
"--baseline:compatibility:released $(location :android-incompatibilities.api.public.latest) " +
|
|
|
|
"$(location :frameworks-base-api-current.txt) " +
|
|
|
|
"> $(genDir)/stdout.txt",
|
|
|
|
}
|
|
|
|
|
2020-11-05 20:21:08 +00:00
|
|
|
genrule {
|
|
|
|
name: "frameworks-base-api-current.srcjar",
|
|
|
|
srcs: [
|
2021-02-03 16:07:30 -08:00
|
|
|
":android.net.ipsec.ike{.public.stubs.source}",
|
2020-11-05 20:21:08 +00:00
|
|
|
":api-stubs-docs-non-updatable",
|
2020-12-17 16:57:35 +00:00
|
|
|
":art.module.public.api{.public.stubs.source}",
|
2020-11-05 20:21:08 +00:00
|
|
|
":conscrypt.module.public.api{.public.stubs.source}",
|
|
|
|
":framework-appsearch{.public.stubs.source}",
|
2021-01-28 13:37:03 +09:00
|
|
|
":framework-connectivity{.public.stubs.source}",
|
2020-11-05 20:21:08 +00:00
|
|
|
":framework-graphics{.public.stubs.source}",
|
|
|
|
":framework-media{.public.stubs.source}",
|
|
|
|
":framework-mediaprovider{.public.stubs.source}",
|
|
|
|
":framework-permission{.public.stubs.source}",
|
2021-01-21 12:48:43 -08:00
|
|
|
":framework-permission-s{.public.stubs.source}",
|
2021-02-15 20:22:58 +00:00
|
|
|
":framework-scheduling{.public.stubs.source}",
|
2020-11-05 20:21:08 +00:00
|
|
|
":framework-sdkextensions{.public.stubs.source}",
|
|
|
|
":framework-statsd{.public.stubs.source}",
|
|
|
|
":framework-tethering{.public.stubs.source}",
|
|
|
|
":framework-wifi{.public.stubs.source}",
|
2020-11-25 15:45:43 +00:00
|
|
|
":i18n.module.public.api{.public.stubs.source}",
|
2020-11-05 20:21:08 +00:00
|
|
|
],
|
|
|
|
out: ["current.srcjar"],
|
|
|
|
tools: ["merge_zips"],
|
|
|
|
cmd: "$(location merge_zips) $(out) $(in)",
|
|
|
|
visibility: ["//visibility:private"], // Used by make module in //development, mind.
|
|
|
|
}
|
|
|
|
|
2020-09-25 09:13:47 +01:00
|
|
|
genrule {
|
2020-11-02 11:57:33 +00:00
|
|
|
name: "frameworks-base-api-removed.txt",
|
2020-09-25 09:13:47 +01:00
|
|
|
srcs: [
|
2021-02-03 16:07:30 -08:00
|
|
|
":android.net.ipsec.ike{.public.removed-api.txt}",
|
2020-12-17 16:57:35 +00:00
|
|
|
":art.module.public.api{.public.removed-api.txt}",
|
2020-09-25 09:13:47 +01:00
|
|
|
":conscrypt.module.public.api{.public.removed-api.txt}",
|
2020-10-08 14:59:17 +01:00
|
|
|
":framework-appsearch{.public.removed-api.txt}",
|
2021-01-28 13:37:03 +09:00
|
|
|
":framework-connectivity{.public.removed-api.txt}",
|
2020-10-08 14:59:17 +01:00
|
|
|
":framework-graphics{.public.removed-api.txt}",
|
2020-09-25 09:13:47 +01:00
|
|
|
":framework-media{.public.removed-api.txt}",
|
|
|
|
":framework-mediaprovider{.public.removed-api.txt}",
|
|
|
|
":framework-permission{.public.removed-api.txt}",
|
2021-01-21 12:48:43 -08:00
|
|
|
":framework-permission-s{.public.removed-api.txt}",
|
2021-02-15 20:22:58 +00:00
|
|
|
":framework-scheduling{.public.removed-api.txt}",
|
2020-09-25 09:13:47 +01:00
|
|
|
":framework-sdkextensions{.public.removed-api.txt}",
|
|
|
|
":framework-statsd{.public.removed-api.txt}",
|
|
|
|
":framework-tethering{.public.removed-api.txt}",
|
|
|
|
":framework-wifi{.public.removed-api.txt}",
|
2020-11-25 15:45:43 +00:00
|
|
|
":i18n.module.public.api{.public.removed-api.txt}",
|
2020-09-25 09:13:47 +01:00
|
|
|
":non-updatable-removed.txt",
|
|
|
|
],
|
|
|
|
out: ["removed.txt"],
|
|
|
|
tools: ["metalava"],
|
|
|
|
cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
|
2020-10-20 19:26:18 +01:00
|
|
|
dists: [
|
|
|
|
{
|
|
|
|
targets: ["droidcore"],
|
|
|
|
dir: "api",
|
|
|
|
dest: "removed.txt",
|
|
|
|
},
|
2021-01-20 20:23:34 +00:00
|
|
|
{
|
|
|
|
targets: ["sdk", "win_sdk"],
|
|
|
|
dir: "apistubs/android/public/api",
|
|
|
|
dest: "removed.txt",
|
|
|
|
},
|
2020-10-20 19:26:18 +01:00
|
|
|
],
|
2020-09-25 09:13:47 +01:00
|
|
|
}
|
|
|
|
|
2020-09-21 17:02:25 +01:00
|
|
|
genrule {
|
2020-11-02 11:57:33 +00:00
|
|
|
name: "frameworks-base-api-system-current.txt",
|
2020-09-21 17:02:25 +01:00
|
|
|
srcs: [
|
2021-02-03 16:07:30 -08:00
|
|
|
":android.net.ipsec.ike{.system.api.txt}",
|
2020-10-08 14:59:17 +01:00
|
|
|
":framework-appsearch{.system.api.txt}",
|
2021-01-28 13:37:03 +09:00
|
|
|
":framework-connectivity{.system.api.txt}",
|
2020-09-24 12:09:25 +01:00
|
|
|
":framework-graphics{.system.api.txt}",
|
2020-09-21 17:02:25 +01:00
|
|
|
":framework-media{.system.api.txt}",
|
|
|
|
":framework-mediaprovider{.system.api.txt}",
|
|
|
|
":framework-permission{.system.api.txt}",
|
2021-01-21 12:48:43 -08:00
|
|
|
":framework-permission-s{.system.api.txt}",
|
2021-02-15 20:22:58 +00:00
|
|
|
":framework-scheduling{.system.api.txt}",
|
2020-09-21 17:02:25 +01:00
|
|
|
":framework-sdkextensions{.system.api.txt}",
|
|
|
|
":framework-statsd{.system.api.txt}",
|
|
|
|
":framework-tethering{.system.api.txt}",
|
|
|
|
":framework-wifi{.system.api.txt}",
|
|
|
|
":non-updatable-system-current.txt",
|
|
|
|
],
|
|
|
|
out: ["system-current.txt"],
|
|
|
|
tools: ["metalava"],
|
|
|
|
cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
|
2020-10-20 19:26:18 +01:00
|
|
|
dists: [
|
|
|
|
{
|
|
|
|
targets: ["droidcore"],
|
|
|
|
dir: "api",
|
|
|
|
dest: "system-current.txt",
|
|
|
|
},
|
|
|
|
{
|
2021-01-20 20:23:34 +00:00
|
|
|
targets: ["sdk", "win_sdk"],
|
2020-10-20 19:26:18 +01:00
|
|
|
dir: "apistubs/android/system/api",
|
|
|
|
dest: "android.txt",
|
|
|
|
},
|
|
|
|
],
|
2020-11-02 11:57:33 +00:00
|
|
|
visibility: ["//visibility:public"],
|
2020-09-21 17:02:25 +01:00
|
|
|
}
|
|
|
|
|
2021-02-12 16:47:18 +00:00
|
|
|
genrule {
|
|
|
|
name: "frameworks-base-api-system-current-compat",
|
|
|
|
srcs: [
|
|
|
|
":android.api.system.latest",
|
|
|
|
":android-incompatibilities.api.system.latest",
|
|
|
|
":frameworks-base-api-current.txt",
|
|
|
|
":frameworks-base-api-system-current.txt",
|
|
|
|
],
|
|
|
|
out: ["stdout.txt"],
|
|
|
|
tools: ["metalava"],
|
|
|
|
cmd: "$(location metalava) --no-banner --format=v2 " +
|
|
|
|
"--check-compatibility:api:released $(location :android.api.system.latest) " +
|
|
|
|
"--check-compatibility:base $(location :frameworks-base-api-current.txt) " +
|
|
|
|
"--baseline:compatibility:released $(location :android-incompatibilities.api.system.latest) " +
|
|
|
|
"$(location :frameworks-base-api-system-current.txt) " +
|
|
|
|
"> $(genDir)/stdout.txt",
|
|
|
|
}
|
|
|
|
|
2020-09-25 09:13:47 +01:00
|
|
|
genrule {
|
2020-11-02 11:57:33 +00:00
|
|
|
name: "frameworks-base-api-system-removed.txt",
|
2020-09-25 09:13:47 +01:00
|
|
|
srcs: [
|
2021-02-03 16:07:30 -08:00
|
|
|
":android.net.ipsec.ike{.system.removed-api.txt}",
|
2020-10-08 14:59:17 +01:00
|
|
|
":framework-appsearch{.system.removed-api.txt}",
|
2021-01-28 13:37:03 +09:00
|
|
|
":framework-connectivity{.system.removed-api.txt}",
|
2020-10-08 14:59:17 +01:00
|
|
|
":framework-graphics{.system.removed-api.txt}",
|
2020-09-25 09:13:47 +01:00
|
|
|
":framework-media{.system.removed-api.txt}",
|
|
|
|
":framework-mediaprovider{.system.removed-api.txt}",
|
|
|
|
":framework-permission{.system.removed-api.txt}",
|
2021-01-21 12:48:43 -08:00
|
|
|
":framework-permission-s{.system.removed-api.txt}",
|
2021-02-15 20:22:58 +00:00
|
|
|
":framework-scheduling{.system.removed-api.txt}",
|
2020-09-25 09:13:47 +01:00
|
|
|
":framework-sdkextensions{.system.removed-api.txt}",
|
|
|
|
":framework-statsd{.system.removed-api.txt}",
|
|
|
|
":framework-tethering{.system.removed-api.txt}",
|
|
|
|
":framework-wifi{.system.removed-api.txt}",
|
|
|
|
":non-updatable-system-removed.txt",
|
|
|
|
],
|
|
|
|
out: ["system-removed.txt"],
|
|
|
|
tools: ["metalava"],
|
|
|
|
cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
|
2020-10-20 19:26:18 +01:00
|
|
|
dists: [
|
|
|
|
{
|
|
|
|
targets: ["droidcore"],
|
|
|
|
dir: "api",
|
|
|
|
dest: "system-removed.txt",
|
|
|
|
},
|
2021-01-20 20:23:34 +00:00
|
|
|
{
|
|
|
|
targets: ["sdk", "win_sdk"],
|
|
|
|
dir: "apistubs/android/system/api",
|
|
|
|
dest: "removed.txt",
|
|
|
|
},
|
2020-10-20 19:26:18 +01:00
|
|
|
],
|
2020-11-02 11:57:33 +00:00
|
|
|
visibility: ["//visibility:public"],
|
2020-09-25 09:13:47 +01:00
|
|
|
}
|
|
|
|
|
2020-09-21 17:02:25 +01:00
|
|
|
genrule {
|
2020-11-02 11:57:33 +00:00
|
|
|
name: "frameworks-base-api-module-lib-current.txt",
|
2020-09-21 17:02:25 +01:00
|
|
|
srcs: [
|
2021-02-03 16:07:30 -08:00
|
|
|
":android.net.ipsec.ike{.module-lib.api.txt}",
|
2020-10-08 14:59:17 +01:00
|
|
|
":framework-appsearch{.module-lib.api.txt}",
|
2021-01-28 13:37:03 +09:00
|
|
|
":framework-connectivity{.module-lib.api.txt}",
|
2020-09-24 12:09:25 +01:00
|
|
|
":framework-graphics{.module-lib.api.txt}",
|
2020-09-21 17:02:25 +01:00
|
|
|
":framework-media{.module-lib.api.txt}",
|
|
|
|
":framework-mediaprovider{.module-lib.api.txt}",
|
|
|
|
":framework-permission{.module-lib.api.txt}",
|
2021-01-21 12:48:43 -08:00
|
|
|
":framework-permission-s{.module-lib.api.txt}",
|
2021-02-15 20:22:58 +00:00
|
|
|
":framework-scheduling{.module-lib.api.txt}",
|
2020-09-21 17:02:25 +01:00
|
|
|
":framework-sdkextensions{.module-lib.api.txt}",
|
|
|
|
":framework-statsd{.module-lib.api.txt}",
|
|
|
|
":framework-tethering{.module-lib.api.txt}",
|
|
|
|
":framework-wifi{.module-lib.api.txt}",
|
|
|
|
":non-updatable-module-lib-current.txt",
|
|
|
|
],
|
|
|
|
out: ["module-lib-current.txt"],
|
|
|
|
tools: ["metalava"],
|
|
|
|
cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
|
2020-10-20 19:26:18 +01:00
|
|
|
dists: [
|
|
|
|
{
|
|
|
|
targets: ["droidcore"],
|
|
|
|
dir: "api",
|
|
|
|
dest: "module-lib-current.txt",
|
|
|
|
},
|
|
|
|
{
|
2021-01-20 20:23:34 +00:00
|
|
|
targets: ["sdk", "win_sdk"],
|
2020-10-20 19:26:18 +01:00
|
|
|
dir: "apistubs/android/module-lib/api",
|
|
|
|
dest: "android.txt",
|
|
|
|
},
|
|
|
|
],
|
2020-09-21 17:02:25 +01:00
|
|
|
}
|
2020-09-25 09:13:47 +01:00
|
|
|
|
2021-02-12 16:47:18 +00:00
|
|
|
genrule {
|
|
|
|
name: "frameworks-base-api-module-lib-current-compat",
|
|
|
|
srcs: [
|
|
|
|
":android.api.module-lib.latest",
|
|
|
|
":android-incompatibilities.api.module-lib.latest",
|
|
|
|
":frameworks-base-api-current.txt",
|
|
|
|
":frameworks-base-api-module-lib-current.txt",
|
|
|
|
],
|
|
|
|
out: ["stdout.txt"],
|
|
|
|
tools: ["metalava"],
|
|
|
|
cmd: "$(location metalava) --no-banner --format=v2 " +
|
|
|
|
"--check-compatibility:api:released $(location :android.api.module-lib.latest) " +
|
|
|
|
// Note: having "public" be the base of module-lib is not perfect -- it should
|
|
|
|
// ideally be a merged public+system), but this will help when migrating from
|
|
|
|
// MODULE_LIBS -> public.
|
|
|
|
"--check-compatibility:base $(location :frameworks-base-api-current.txt) " +
|
|
|
|
"--baseline:compatibility:released $(location :android-incompatibilities.api.module-lib.latest) " +
|
|
|
|
"$(location :frameworks-base-api-module-lib-current.txt) " +
|
|
|
|
"> $(genDir)/stdout.txt",
|
|
|
|
}
|
|
|
|
|
2020-09-25 09:13:47 +01:00
|
|
|
genrule {
|
2020-11-02 11:57:33 +00:00
|
|
|
name: "frameworks-base-api-module-lib-removed.txt",
|
2020-09-25 09:13:47 +01:00
|
|
|
srcs: [
|
2021-02-03 16:07:30 -08:00
|
|
|
":android.net.ipsec.ike{.module-lib.removed-api.txt}",
|
2020-10-08 14:59:17 +01:00
|
|
|
":framework-appsearch{.module-lib.removed-api.txt}",
|
2021-01-28 13:37:03 +09:00
|
|
|
":framework-connectivity{.module-lib.removed-api.txt}",
|
2020-10-08 14:59:17 +01:00
|
|
|
":framework-graphics{.module-lib.removed-api.txt}",
|
2020-09-25 09:13:47 +01:00
|
|
|
":framework-media{.module-lib.removed-api.txt}",
|
|
|
|
":framework-mediaprovider{.module-lib.removed-api.txt}",
|
|
|
|
":framework-permission{.module-lib.removed-api.txt}",
|
2021-01-21 12:48:43 -08:00
|
|
|
":framework-permission-s{.module-lib.removed-api.txt}",
|
2021-02-15 20:22:58 +00:00
|
|
|
":framework-scheduling{.module-lib.removed-api.txt}",
|
2020-09-25 09:13:47 +01:00
|
|
|
":framework-sdkextensions{.module-lib.removed-api.txt}",
|
|
|
|
":framework-statsd{.module-lib.removed-api.txt}",
|
|
|
|
":framework-tethering{.module-lib.removed-api.txt}",
|
|
|
|
":framework-wifi{.module-lib.removed-api.txt}",
|
|
|
|
":non-updatable-module-lib-removed.txt",
|
|
|
|
],
|
|
|
|
out: ["module-lib-removed.txt"],
|
|
|
|
tools: ["metalava"],
|
|
|
|
cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
|
2020-10-20 19:26:18 +01:00
|
|
|
dists: [
|
|
|
|
{
|
|
|
|
targets: ["droidcore"],
|
|
|
|
dir: "api",
|
|
|
|
dest: "module-lib-removed.txt",
|
|
|
|
},
|
2021-01-20 20:23:34 +00:00
|
|
|
{
|
|
|
|
targets: ["sdk", "win_sdk"],
|
|
|
|
dir: "apistubs/android/module-lib/api",
|
|
|
|
dest: "removed.txt",
|
|
|
|
},
|
2020-10-20 19:26:18 +01:00
|
|
|
],
|
2020-09-25 09:13:47 +01:00
|
|
|
}
|
2020-10-02 18:21:14 +01:00
|
|
|
|
|
|
|
genrule {
|
|
|
|
name: "combined-removed-dex",
|
|
|
|
srcs: [
|
2020-11-02 11:57:33 +00:00
|
|
|
":frameworks-base-api-removed.txt",
|
|
|
|
":frameworks-base-api-system-removed.txt",
|
2020-10-02 18:21:14 +01:00
|
|
|
":android.car-stubs-docs{.removed-api.txt}",
|
|
|
|
":android.car-system-stubs-docs{.removed-api.txt}",
|
|
|
|
],
|
|
|
|
tool_files: ["gen_combined_removed_dex.sh"],
|
|
|
|
tools: ["metalava"],
|
|
|
|
out: ["combined-removed-dex.txt"],
|
|
|
|
cmd: "$(location gen_combined_removed_dex.sh) $(location metalava) $(genDir) $(in) > $(out)",
|
|
|
|
}
|
2021-02-19 16:28:30 +00:00
|
|
|
|
|
|
|
genrule {
|
|
|
|
name: "services-system-server-current.txt",
|
|
|
|
srcs: [
|
2021-03-12 17:02:49 +00:00
|
|
|
":service-media-s{.system-server.api.txt}",
|
2021-02-19 16:28:30 +00:00
|
|
|
":service-permission{.system-server.api.txt}",
|
|
|
|
":non-updatable-system-server-current.txt",
|
|
|
|
],
|
|
|
|
out: ["system-server-current.txt"],
|
|
|
|
tools: ["metalava"],
|
|
|
|
cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
|
|
|
|
dists: [
|
|
|
|
{
|
|
|
|
targets: ["droidcore"],
|
|
|
|
dir: "api",
|
|
|
|
dest: "system-server-current.txt",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
targets: ["sdk", "win_sdk"],
|
|
|
|
dir: "apistubs/android/system-server/api",
|
|
|
|
dest: "merge-android.txt",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
genrule {
|
|
|
|
name: "services-system-server-removed.txt",
|
|
|
|
srcs: [
|
2021-03-12 17:02:49 +00:00
|
|
|
":service-media-s{.system-server.removed-api.txt}",
|
2021-02-19 16:28:30 +00:00
|
|
|
":service-permission{.system-server.removed-api.txt}",
|
|
|
|
":non-updatable-system-server-removed.txt",
|
|
|
|
],
|
|
|
|
out: ["system-server-removed.txt"],
|
|
|
|
tools: ["metalava"],
|
|
|
|
cmd: "$(location metalava) --no-banner --format=v2 $(in) --api $(out)",
|
|
|
|
dists: [
|
|
|
|
{
|
|
|
|
targets: ["droidcore"],
|
|
|
|
dir: "api",
|
|
|
|
dest: "system-server-removed.txt",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
targets: ["sdk", "win_sdk"],
|
|
|
|
dir: "apistubs/android/system-server/api",
|
|
|
|
dest: "merge-removed.txt",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|