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 | ], |
| 35 | cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -n | tail -1) $(genDir)/last-released-api.txt", |
| 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 | ], |
| 46 | cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -n | tail -1) $(genDir)/last-released-api.txt", |
| 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 { |
| 53 | name: "public-api-for-metalava-annotations", |
| 54 | srcs: [ |
| 55 | "*/public/api/android.txt", |
| 56 | ], |
| 57 | cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -n | tail -2 | head -1) $(genDir)/last-released-api.txt", |
| 58 | out: [ |
| 59 | "last-released-api.txt", |
| 60 | ], |
| 61 | } |
| 62 | |
Jiyong Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 63 | prebuilt_apis { |
Sundong Ahn | eacb58d | 2018-06-21 15:03:01 +0900 | [diff] [blame] | 64 | name: "sdk", |
| 65 | api_dirs: [ |
| 66 | "1", |
| 67 | "2", |
| 68 | "3", |
| 69 | "4", |
| 70 | "5", |
| 71 | "6", |
| 72 | "7", |
| 73 | "8", |
| 74 | "9", |
| 75 | "10", |
| 76 | "11", |
| 77 | "12", |
| 78 | "13", |
| 79 | "14", |
| 80 | "15", |
| 81 | "16", |
| 82 | "17", |
| 83 | "18", |
| 84 | "19", |
| 85 | "20", |
| 86 | "21", |
| 87 | "22", |
| 88 | "23", |
| 89 | "24", |
| 90 | "25", |
| 91 | "26", |
| 92 | "27", |
| 93 | "28", |
| 94 | "current", |
| 95 | ], |
Jiyong Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 96 | } |