blob: 5ac05aaefb909de190b50cf35ad9c4c22364ae95 [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 {
Charles Munger88b9e152019-11-19 14:02:55 -080019 name: "current-androidx-api",
20 srcs: [
21 "current/androidx-api.txt",
22 ],
23}
24
25filegroup {
Nan Zhang13177a22018-08-22 11:07:05 -070026 name: "metalava-sdk-android-jars",
27 srcs: [
28 "**/android.jar",
29 ],
30}
31
32droiddoc_exported_dir {
33 name: "sdk-dir",
34 path: ".",
35}
36
Nan Zhang4d722a52018-05-04 18:47:37 -070037genrule {
38 name: "last-released-public-api",
39 srcs: [
40 "*/public/api/android.txt",
41 ],
Tor Norbyeb0d529c2019-01-21 17:04:54 -080042 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 -070043 out: [
44 "last-released-api.txt",
45 ],
46}
47
48genrule {
49 name: "last-released-system-api",
50 srcs: [
51 "*/system/api/android.txt",
52 ],
Tor Norbyeb0d529c2019-01-21 17:04:54 -080053 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 -070054 out: [
55 "last-released-api.txt",
56 ],
57}
Jiyong Parkd6455472018-05-12 22:15:27 +090058
Nan Zhang028d8ec2018-06-04 16:03:12 -070059genrule {
Adrian Roos6c5e17e2019-08-12 17:50:35 +020060 name: "public-api-incompatibilities-with-last-released",
Nan Zhang028d8ec2018-06-04 16:03:12 -070061 srcs: [
Adrian Roos6c5e17e2019-08-12 17:50:35 +020062 "*/public/api/incompatibilities.txt",
Nan Zhang028d8ec2018-06-04 16:03:12 -070063 ],
Adrian Roos6c5e17e2019-08-12 17:50:35 +020064 cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -t/ -k3 -n | tail -1) $(genDir)/incompatibilities.txt",
Nan Zhang028d8ec2018-06-04 16:03:12 -070065 out: [
Adrian Roos6c5e17e2019-08-12 17:50:35 +020066 "incompatibilities.txt",
67 ],
68}
69
70genrule {
71 name: "system-api-incompatibilities-with-last-released",
72 srcs: [
73 "*/system/api/incompatibilities.txt",
74 ],
75 cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -t/ -k3 -n | tail -1) $(genDir)/incompatibilities.txt",
76 out: [
77 "incompatibilities.txt",
Nan Zhang028d8ec2018-06-04 16:03:12 -070078 ],
79}
80
Jiyong Parkd6455472018-05-12 22:15:27 +090081prebuilt_apis {
Sundong Ahneacb58d2018-06-21 15:03:01 +090082 name: "sdk",
83 api_dirs: [
84 "1",
85 "2",
86 "3",
87 "4",
88 "5",
89 "6",
90 "7",
91 "8",
92 "9",
93 "10",
94 "11",
95 "12",
96 "13",
97 "14",
98 "15",
99 "16",
100 "17",
101 "18",
102 "19",
103 "20",
104 "21",
105 "22",
106 "23",
107 "24",
108 "25",
109 "26",
110 "27",
111 "28",
Oussama Ben Abdelbaki43a48ea2019-05-08 18:01:52 -0400112 "29",
Sundong Ahneacb58d2018-06-21 15:03:01 +0900113 "current",
114 ],
Jiyong Parkd6455472018-05-12 22:15:27 +0900115}