Colin Cross | a715894 | 2016-11-23 17:01:45 -0800 | [diff] [blame] | 1 | subdirs=["tools"] |
Nan Zhang | 5093521 | 2018-02-27 15:07:04 -0800 | [diff] [blame] | 2 | |
| 3 | filegroup { |
| 4 | name: "api-version-xml", |
| 5 | srcs: [ |
Anton Hansson | 2615bde | 2018-04-19 13:30:56 +0100 | [diff] [blame] | 6 | "*/public/api/android.txt", |
| 7 | "*/public/api/android.xml", |
Nan Zhang | 5093521 | 2018-02-27 15:07:04 -0800 | [diff] [blame] | 8 | ], |
| 9 | } |
| 10 | |
| 11 | filegroup { |
| 12 | name: "current-support-api", |
| 13 | srcs: [ |
| 14 | "current/support-api.txt", |
| 15 | ], |
| 16 | } |
Nan Zhang | 4d722a5 | 2018-05-04 18:47:37 -0700 | [diff] [blame] | 17 | |
Nan Zhang | 13177a2 | 2018-08-22 11:07:05 -0700 | [diff] [blame] | 18 | filegroup { |
Charles Munger | 88b9e15 | 2019-11-19 14:02:55 -0800 | [diff] [blame^] | 19 | name: "current-androidx-api", |
| 20 | srcs: [ |
| 21 | "current/androidx-api.txt", |
| 22 | ], |
| 23 | } |
| 24 | |
| 25 | filegroup { |
Nan Zhang | 13177a2 | 2018-08-22 11:07:05 -0700 | [diff] [blame] | 26 | name: "metalava-sdk-android-jars", |
| 27 | srcs: [ |
| 28 | "**/android.jar", |
| 29 | ], |
| 30 | } |
| 31 | |
| 32 | droiddoc_exported_dir { |
| 33 | name: "sdk-dir", |
| 34 | path: ".", |
| 35 | } |
| 36 | |
Nan Zhang | 4d722a5 | 2018-05-04 18:47:37 -0700 | [diff] [blame] | 37 | genrule { |
| 38 | name: "last-released-public-api", |
| 39 | srcs: [ |
| 40 | "*/public/api/android.txt", |
| 41 | ], |
Tor Norbye | b0d529c | 2019-01-21 17:04:54 -0800 | [diff] [blame] | 42 | cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -t/ -k3 -n | tail -1) $(genDir)/last-released-api.txt", |
Nan Zhang | 4d722a5 | 2018-05-04 18:47:37 -0700 | [diff] [blame] | 43 | out: [ |
| 44 | "last-released-api.txt", |
| 45 | ], |
| 46 | } |
| 47 | |
| 48 | genrule { |
| 49 | name: "last-released-system-api", |
| 50 | srcs: [ |
| 51 | "*/system/api/android.txt", |
| 52 | ], |
Tor Norbye | b0d529c | 2019-01-21 17:04:54 -0800 | [diff] [blame] | 53 | cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -t/ -k3 -n | tail -1) $(genDir)/last-released-api.txt", |
Nan Zhang | 4d722a5 | 2018-05-04 18:47:37 -0700 | [diff] [blame] | 54 | out: [ |
| 55 | "last-released-api.txt", |
| 56 | ], |
| 57 | } |
Jiyong Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 58 | |
Nan Zhang | 028d8ec | 2018-06-04 16:03:12 -0700 | [diff] [blame] | 59 | genrule { |
Adrian Roos | 6c5e17e | 2019-08-12 17:50:35 +0200 | [diff] [blame] | 60 | name: "public-api-incompatibilities-with-last-released", |
Nan Zhang | 028d8ec | 2018-06-04 16:03:12 -0700 | [diff] [blame] | 61 | srcs: [ |
Adrian Roos | 6c5e17e | 2019-08-12 17:50:35 +0200 | [diff] [blame] | 62 | "*/public/api/incompatibilities.txt", |
Nan Zhang | 028d8ec | 2018-06-04 16:03:12 -0700 | [diff] [blame] | 63 | ], |
Adrian Roos | 6c5e17e | 2019-08-12 17:50:35 +0200 | [diff] [blame] | 64 | cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -t/ -k3 -n | tail -1) $(genDir)/incompatibilities.txt", |
Nan Zhang | 028d8ec | 2018-06-04 16:03:12 -0700 | [diff] [blame] | 65 | out: [ |
Adrian Roos | 6c5e17e | 2019-08-12 17:50:35 +0200 | [diff] [blame] | 66 | "incompatibilities.txt", |
| 67 | ], |
| 68 | } |
| 69 | |
| 70 | genrule { |
| 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 Zhang | 028d8ec | 2018-06-04 16:03:12 -0700 | [diff] [blame] | 78 | ], |
| 79 | } |
| 80 | |
Jiyong Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 81 | prebuilt_apis { |
Sundong Ahn | eacb58d | 2018-06-21 15:03:01 +0900 | [diff] [blame] | 82 | 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 Abdelbaki | 43a48ea | 2019-05-08 18:01:52 -0400 | [diff] [blame] | 112 | "29", |
Sundong Ahn | eacb58d | 2018-06-21 15:03:01 +0900 | [diff] [blame] | 113 | "current", |
| 114 | ], |
Jiyong Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 115 | } |