diff options
author | Jihoon Kang <jihoonkang@google.com> | 2023-05-09 05:56:57 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-05-09 05:56:57 +0000 |
commit | a21a0b1c68702e8428e9d6fb76940bb7914d05d6 (patch) | |
tree | 72ead7eabddbfbb25fbf8cd3129f373cd9309f19 | |
parent | 406885223ba0955e92013e4eb535f81a7a37895d (diff) | |
parent | 431f86be5f075ed002e122b0611b50bebce69cd4 (diff) | |
download | orchestrator-a21a0b1c68702e8428e9d6fb76940bb7914d05d6.tar.gz |
Add public API surface java_api_library module for single tree build am: 8323bba791 am: 390fc57afb am: f67b8cf373 am: 431f86be5f
Original change: https://android-review.googlesource.com/c/platform/build/orchestrator/+/2367170
Change-Id: Ibfec64d621a6de537964e7b96738649629aee545
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | apis/Android.bp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/apis/Android.bp b/apis/Android.bp new file mode 100644 index 0000000..4769e36 --- /dev/null +++ b/apis/Android.bp @@ -0,0 +1,52 @@ +// Copyright 2023 Google Inc. All rights reserved. +// +// 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_applicable_licenses: ["Android-Apache-2.0"], +} + +// +// Java API defaults and libraries for single tree build +// + +java_defaults { + name: "stub-annotation-defaults", + libs: [ + "stub-annotations", + ], + static_libs: [ + // stub annotations do not contribute to the API surfaces but are statically + // linked in the stubs for API surfaces (see frameworks/base/StubLibraries.bp). + // This is because annotation processors insist on loading the classes for any + // annotations found, thus should exist inside android.jar. + "private-stub-annotations-jar", + ], +} + +// Java API library definitions per API surface +java_api_library { + name: "android_stubs_current.from-text", + api_surface: "public", + defaults: [ + // This module is dynamically created at frameworks/base/api/api.go + // instead of being written out, in order to minimize edits in the codebase + // when there is a change in the list of modules. + // that contributes to an api surface. + "android_stubs_current_contributions", + "stub-annotation-defaults", + ], + api_contributions: [ + "api-stubs-docs-non-updatable.api.contribution", + ], +} |