blob: 7ef0904662507f9cfbc982970319966c95dc4d33 [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
Nan Zhang13177a22018-08-22 11:07:05 -070018filegroup {
19 name: "metalava-sdk-android-jars",
20 srcs: [
21 "**/android.jar",
22 ],
23}
24
25droiddoc_exported_dir {
26 name: "sdk-dir",
27 path: ".",
28}
29
Nan Zhang4d722a52018-05-04 18:47:37 -070030genrule {
31 name: "last-released-public-api",
32 srcs: [
33 "*/public/api/android.txt",
34 ],
Tor Norbyeb0d529c2019-01-21 17:04:54 -080035 cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -t/ -k3 -n | tail -1) $(genDir)/last-released-api.txt",
Nan Zhang4d722a52018-05-04 18:47:37 -070036 out: [
37 "last-released-api.txt",
38 ],
39}
40
41genrule {
42 name: "last-released-system-api",
43 srcs: [
44 "*/system/api/android.txt",
45 ],
Tor Norbyeb0d529c2019-01-21 17:04:54 -080046 cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -t/ -k3 -n | tail -1) $(genDir)/last-released-api.txt",
Nan Zhang4d722a52018-05-04 18:47:37 -070047 out: [
48 "last-released-api.txt",
49 ],
50}
Jiyong Parkd6455472018-05-12 22:15:27 +090051
Nan Zhang028d8ec2018-06-04 16:03:12 -070052genrule {
Adrian Roos6c5e17e2019-08-12 17:50:35 +020053 name: "public-api-incompatibilities-with-last-released",
Nan Zhang028d8ec2018-06-04 16:03:12 -070054 srcs: [
Adrian Roos6c5e17e2019-08-12 17:50:35 +020055 "*/public/api/incompatibilities.txt",
Nan Zhang028d8ec2018-06-04 16:03:12 -070056 ],
Adrian Roos6c5e17e2019-08-12 17:50:35 +020057 cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -t/ -k3 -n | tail -1) $(genDir)/incompatibilities.txt",
Nan Zhang028d8ec2018-06-04 16:03:12 -070058 out: [
Adrian Roos6c5e17e2019-08-12 17:50:35 +020059 "incompatibilities.txt",
60 ],
61}
62
63genrule {
64 name: "system-api-incompatibilities-with-last-released",
65 srcs: [
66 "*/system/api/incompatibilities.txt",
67 ],
68 cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -t/ -k3 -n | tail -1) $(genDir)/incompatibilities.txt",
69 out: [
70 "incompatibilities.txt",
Nan Zhang028d8ec2018-06-04 16:03:12 -070071 ],
72}
73
Jeff Gastonb77349a2019-09-20 14:24:20 -040074genrule {
75 name: "last-released-public-api-for-metalava-annotations",
76 srcs: [
77 "*/public/api/android.txt",
78 ],
79 cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -t/ -k3 -n | tail -2 | head -1) $(genDir)/last-released-api-for-metalava-annotations.txt",
80 out: [
81 "last-released-api-for-metalava-annotations.txt",
82 ],
83}
84
Jiyong Parkd6455472018-05-12 22:15:27 +090085prebuilt_apis {
Sundong Ahneacb58d2018-06-21 15:03:01 +090086 name: "sdk",
87 api_dirs: [
88 "1",
89 "2",
90 "3",
91 "4",
92 "5",
93 "6",
94 "7",
95 "8",
96 "9",
97 "10",
98 "11",
99 "12",
100 "13",
101 "14",
102 "15",
103 "16",
104 "17",
105 "18",
106 "19",
107 "20",
108 "21",
109 "22",
110 "23",
111 "24",
112 "25",
113 "26",
114 "27",
115 "28",
Oussama Ben Abdelbaki43a48ea2019-05-08 18:01:52 -0400116 "29",
Sundong Ahneacb58d2018-06-21 15:03:01 +0900117 "current",
118 ],
Jiyong Parkd6455472018-05-12 22:15:27 +0900119}