summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2024-01-05 18:15:59 +0000
committer Paul Duffin <paulduffin@google.com> 2024-01-05 18:18:15 +0000
commit75f63607f386f46f6e95e8663a9188b2e53470b7 (patch)
treed536b0f27fb576d1bc2253e147059814cc9ab093
parenta9ede36fac28b8215f02d2ab38162d06bcadbc6b (diff)
Copy system version of the api-versions.xml file to dist
Copies the system version of the `api-versions.xml` file to a file `api-versions_system.xml` in the top level dist directory. Bug: 190665366 Test: m sdk dist # Check to make sure that the file exists. Change-Id: Ie139f81a819eb5f389363ffdefa7bc42d36804e0
-rw-r--r--api/StubLibraries.bp9
1 files changed, 9 insertions, 0 deletions
diff --git a/api/StubLibraries.bp b/api/StubLibraries.bp
index 28b2d4b5e3ee..50c9fd3ec499 100644
--- a/api/StubLibraries.bp
+++ b/api/StubLibraries.bp
@@ -900,6 +900,15 @@ droidstubs {
],
api_levels_sdk_type: "system",
extensions_info_file: ":sdk-extensions-info",
+ dists: [
+ // Make the api-versions.xml file for the system API available in the
+ // sdk build target.
+ {
+ targets: ["sdk"],
+ dest: "api-versions_system.xml",
+ tag: ".api_versions.xml",
+ },
+ ],
}
// This module can be built with: