blob: fdea2fe52ac57d93a92929ad5d11741eab52ed1e [file] [log] [blame]
Colin Crossa7158942016-11-23 17:01:45 -08001subdirs=["tools"]
Nan Zhang50935212018-02-27 15:07:04 -08002
3filegroup {
4 name: "api-version-xml",
5 srcs: [
Anton Hansson2615bde2018-04-19 13:30:56 +01006 "*/public/api/android.txt",
7 "*/public/api/android.xml",
Nan Zhang50935212018-02-27 15:07:04 -08008 ],
9}
10
11filegroup {
12 name: "current-support-api",
13 srcs: [
14 "current/support-api.txt",
15 ],
16}
Nan Zhang4d722a52018-05-04 18:47:37 -070017
18genrule {
19 name: "last-released-public-api",
20 srcs: [
21 "*/public/api/android.txt",
22 ],
23 cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -n | tail -1) $(genDir)/last-released-api.txt",
24 out: [
25 "last-released-api.txt",
26 ],
27}
28
29genrule {
30 name: "last-released-system-api",
31 srcs: [
32 "*/system/api/android.txt",
33 ],
34 cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -n | tail -1) $(genDir)/last-released-api.txt",
35 out: [
36 "last-released-api.txt",
37 ],
38}
Jiyong Parkd6455472018-05-12 22:15:27 +090039
Nan Zhang028d8ec2018-06-04 16:03:12 -070040genrule {
41 name: "public-api-for-metalava-annotations",
42 srcs: [
43 "*/public/api/android.txt",
44 ],
45 cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -n | tail -2 | head -1) $(genDir)/last-released-api.txt",
46 out: [
47 "last-released-api.txt",
48 ],
49}
50
Jiyong Parkd6455472018-05-12 22:15:27 +090051prebuilt_apis {
52 name: "prebuilt_apis",
53}