Skip to content
Snippets Groups Projects
Commit ea84fc81 authored by Yiming Pan's avatar Yiming Pan
Browse files

Build flag to API mapping files.

Flag to API mapping files will be built and uploaded to `droid` target.

Test: m flag-api-mapping-PublicApi
      m flag-api-mapping-SystemApi
      m flag-api-mapping-ModuleLibApi
      m flag-api-mapping-SystemServerApi
Bug; 311059624

Change-Id: Ibb872e2c1f7772af59427bcec3ce6f6551a8dd17
parent 5c8faa65
No related branches found
No related tags found
No related merge requests found
......@@ -413,3 +413,49 @@ build = [
"ApiDocs.bp",
"StubLibraries.bp",
]
genrule_defaults {
name: "flag-api-mapping-generation-defaults",
cmd: "$(location extract-flagged-apis) $(in) $(out)",
tools: ["extract-flagged-apis"],
}
genrule {
name: "flag-api-mapping-PublicApi",
defaults: ["flag-api-mapping-generation-defaults"],
srcs: [":frameworks-base-api-current.txt"],
out: ["flag_api_map.textproto"],
dist: {
targets: ["droid"],
},
}
genrule {
name: "flag-api-mapping-SystemApi",
defaults: ["flag-api-mapping-generation-defaults"],
srcs: [":frameworks-base-api-system-current.txt"],
out: ["system_flag_api_map.textproto"],
dist: {
targets: ["droid"],
},
}
genrule {
name: "flag-api-mapping-ModuleLibApi",
defaults: ["flag-api-mapping-generation-defaults"],
srcs: [":frameworks-base-api-module-lib-current.txt"],
out: ["module_lib_flag_api_map.textproto"],
dist: {
targets: ["droid"],
},
}
genrule {
name: "flag-api-mapping-SystemServerApi",
defaults: ["flag-api-mapping-generation-defaults"],
srcs: [":frameworks-base-api-system-server-current.txt"],
out: ["system_server_flag_api_map.textproto"],
dist: {
targets: ["droid"],
},
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment