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 { |
| 19 | name: "metalava-sdk-android-jars", |
| 20 | srcs: [ |
| 21 | "**/android.jar", |
| 22 | ], |
| 23 | } |
| 24 | |
| 25 | droiddoc_exported_dir { |
| 26 | name: "sdk-dir", |
| 27 | path: ".", |
| 28 | } |
| 29 | |
Nan Zhang | 4d722a5 | 2018-05-04 18:47:37 -0700 | [diff] [blame] | 30 | genrule { |
| 31 | name: "last-released-public-api", |
| 32 | srcs: [ |
| 33 | "*/public/api/android.txt", |
| 34 | ], |
Tor Norbye | b0d529c | 2019-01-21 17:04:54 -0800 | [diff] [blame] | 35 | 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] | 36 | out: [ |
| 37 | "last-released-api.txt", |
| 38 | ], |
| 39 | } |
| 40 | |
| 41 | genrule { |
| 42 | name: "last-released-system-api", |
| 43 | srcs: [ |
| 44 | "*/system/api/android.txt", |
| 45 | ], |
Tor Norbye | b0d529c | 2019-01-21 17:04:54 -0800 | [diff] [blame] | 46 | 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] | 47 | out: [ |
| 48 | "last-released-api.txt", |
| 49 | ], |
| 50 | } |
Jiyong Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 51 | |
Nan Zhang | 028d8ec | 2018-06-04 16:03:12 -0700 | [diff] [blame] | 52 | genrule { |
Adrian Roos | 6c5e17e | 2019-08-12 17:50:35 +0200 | [diff] [blame] | 53 | name: "public-api-incompatibilities-with-last-released", |
Nan Zhang | 028d8ec | 2018-06-04 16:03:12 -0700 | [diff] [blame] | 54 | srcs: [ |
Adrian Roos | 6c5e17e | 2019-08-12 17:50:35 +0200 | [diff] [blame] | 55 | "*/public/api/incompatibilities.txt", |
Nan Zhang | 028d8ec | 2018-06-04 16:03:12 -0700 | [diff] [blame] | 56 | ], |
Adrian Roos | 6c5e17e | 2019-08-12 17:50:35 +0200 | [diff] [blame] | 57 | 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] | 58 | out: [ |
Adrian Roos | 6c5e17e | 2019-08-12 17:50:35 +0200 | [diff] [blame] | 59 | "incompatibilities.txt", |
| 60 | ], |
| 61 | } |
| 62 | |
| 63 | genrule { |
| 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 Zhang | 028d8ec | 2018-06-04 16:03:12 -0700 | [diff] [blame] | 71 | ], |
| 72 | } |
| 73 | |
Jeff Gaston | b77349a | 2019-09-20 14:24:20 -0400 | [diff] [blame^] | 74 | genrule { |
| 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 Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 85 | prebuilt_apis { |
Sundong Ahn | eacb58d | 2018-06-21 15:03:01 +0900 | [diff] [blame] | 86 | 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 Abdelbaki | 43a48ea | 2019-05-08 18:01:52 -0400 | [diff] [blame] | 116 | "29", |
Sundong Ahn | eacb58d | 2018-06-21 15:03:01 +0900 | [diff] [blame] | 117 | "current", |
| 118 | ], |
Jiyong Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 119 | } |