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 | |
| 18 | genrule { |
| 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 | |
| 29 | genrule { |
| 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 Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 39 | |
Nan Zhang | 028d8ec | 2018-06-04 16:03:12 -0700 | [diff] [blame^] | 40 | genrule { |
| 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 Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 51 | prebuilt_apis { |
| 52 | name: "prebuilt_apis", |
| 53 | } |