Bob Badour | eb0cff2 | 2021-02-28 19:54:12 -0800 | [diff] [blame] | 1 | // *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE |
| 2 | // CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE |
| 3 | // DEPENDING ON IT IN YOUR PROJECT. *** |
| 4 | package { |
| 5 | default_applicable_licenses: ["prebuilts_sdk_license"], |
| 6 | } |
| 7 | |
| 8 | // Added automatically by a large-scale-change that took the approach of |
| 9 | // 'apply every license found to every target'. While this makes sure we respect |
| 10 | // every license restriction, it may not be entirely correct. |
| 11 | // |
| 12 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 13 | // |
| 14 | // Please consider splitting the single license below into multiple licenses, |
| 15 | // taking care not to lose any license_kind information, and overriding the |
| 16 | // default license using the 'licenses: [...]' property on targets as needed. |
| 17 | // |
| 18 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 19 | // to attach the license to, and including a comment whether the files may be |
| 20 | // used in the current project. |
| 21 | // See: http://go/android-license-faq |
| 22 | license { |
| 23 | name: "prebuilts_sdk_license", |
| 24 | visibility: [":__subpackages__"], |
| 25 | license_kinds: [ |
| 26 | "SPDX-license-identifier-Apache-2.0", |
| 27 | "SPDX-license-identifier-BSD", |
| 28 | "SPDX-license-identifier-CC0-1.0", |
| 29 | "SPDX-license-identifier-CPL-1.0", |
| 30 | "SPDX-license-identifier-MIT", |
| 31 | "SPDX-license-identifier-NCSA", |
| 32 | "SPDX-license-identifier-OFL", // by exception only |
| 33 | "SPDX-license-identifier-Unicode-DFS", |
| 34 | "SPDX-license-identifier-W3C", |
| 35 | "legacy_unencumbered", |
| 36 | ], |
| 37 | license_text: [ |
| 38 | "NOTICE", |
| 39 | ], |
| 40 | } |
| 41 | |
Colin Cross | a715894 | 2016-11-23 17:01:45 -0800 | [diff] [blame] | 42 | subdirs=["tools"] |
Nan Zhang | 5093521 | 2018-02-27 15:07:04 -0800 | [diff] [blame] | 43 | |
| 44 | filegroup { |
| 45 | name: "api-version-xml", |
| 46 | srcs: [ |
Anton Hansson | 2615bde | 2018-04-19 13:30:56 +0100 | [diff] [blame] | 47 | "*/public/api/android.txt", |
| 48 | "*/public/api/android.xml", |
Nan Zhang | 5093521 | 2018-02-27 15:07:04 -0800 | [diff] [blame] | 49 | ], |
| 50 | } |
| 51 | |
| 52 | filegroup { |
| 53 | name: "current-support-api", |
| 54 | srcs: [ |
| 55 | "current/support-api.txt", |
| 56 | ], |
| 57 | } |
Nan Zhang | 4d722a5 | 2018-05-04 18:47:37 -0700 | [diff] [blame] | 58 | |
Nan Zhang | 13177a2 | 2018-08-22 11:07:05 -0700 | [diff] [blame] | 59 | filegroup { |
Charles Munger | 88b9e15 | 2019-11-19 14:02:55 -0800 | [diff] [blame] | 60 | name: "current-androidx-api", |
| 61 | srcs: [ |
| 62 | "current/androidx-api.txt", |
| 63 | ], |
| 64 | } |
| 65 | |
| 66 | filegroup { |
Nan Zhang | 13177a2 | 2018-08-22 11:07:05 -0700 | [diff] [blame] | 67 | name: "metalava-sdk-android-jars", |
| 68 | srcs: [ |
| 69 | "**/android.jar", |
| 70 | ], |
| 71 | } |
| 72 | |
| 73 | droiddoc_exported_dir { |
| 74 | name: "sdk-dir", |
| 75 | path: ".", |
| 76 | } |
| 77 | |
Anton Hansson | 7004711 | 2020-02-19 12:04:35 +0000 | [diff] [blame] | 78 | genrule { |
Jeff Gaston | b77349a | 2019-09-20 14:24:20 -0400 | [diff] [blame] | 79 | name: "last-released-public-api-for-metalava-annotations", |
| 80 | srcs: [ |
| 81 | "*/public/api/android.txt", |
| 82 | ], |
| 83 | cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -t/ -k3 -n | tail -2 | head -1) $(genDir)/last-released-api-for-metalava-annotations.txt", |
| 84 | out: [ |
| 85 | "last-released-api-for-metalava-annotations.txt", |
| 86 | ], |
| 87 | } |
| 88 | |
Jiyong Park | 681c442 | 2020-07-06 12:44:41 +0900 | [diff] [blame] | 89 | // This filegroup is to package android.jar into CtsUsesNativeLibraryTestCase |
| 90 | filegroup { |
| 91 | name: "sdk_public_30_android", |
| 92 | srcs: [ |
| 93 | "30/public/android.jar", |
| 94 | ], |
| 95 | visibility: [ |
| 96 | "//cts/hostsidetests/library", |
| 97 | ], |
| 98 | } |
| 99 | |
Jiyong Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 100 | prebuilt_apis { |
Sundong Ahn | eacb58d | 2018-06-21 15:03:01 +0900 | [diff] [blame] | 101 | name: "sdk", |
| 102 | api_dirs: [ |
| 103 | "1", |
| 104 | "2", |
| 105 | "3", |
| 106 | "4", |
| 107 | "5", |
| 108 | "6", |
| 109 | "7", |
| 110 | "8", |
| 111 | "9", |
| 112 | "10", |
| 113 | "11", |
| 114 | "12", |
| 115 | "13", |
| 116 | "14", |
| 117 | "15", |
| 118 | "16", |
| 119 | "17", |
| 120 | "18", |
| 121 | "19", |
| 122 | "20", |
| 123 | "21", |
| 124 | "22", |
| 125 | "23", |
| 126 | "24", |
| 127 | "25", |
| 128 | "26", |
| 129 | "27", |
| 130 | "28", |
Oussama Ben Abdelbaki | 43a48ea | 2019-05-08 18:01:52 -0400 | [diff] [blame] | 131 | "29", |
Svet Ganov | be8b618 | 2020-04-30 17:19:53 -0700 | [diff] [blame] | 132 | "30", |
Anton Hansson | 56859a2 | 2021-06-07 11:33:47 +0100 | [diff] [blame] | 133 | "31", |
Sundong Ahn | eacb58d | 2018-06-21 15:03:01 +0900 | [diff] [blame] | 134 | "current", |
| 135 | ], |
paulhu | 519cb6d | 2021-11-26 11:18:56 +0800 | [diff] [blame] | 136 | next_api_dir: "33", |
Liz Kammer | 6b36db7 | 2020-08-20 10:19:18 -0700 | [diff] [blame] | 137 | imports_sdk_version: "none", |
Liz Kammer | 19ccaca | 2020-09-02 08:55:43 -0700 | [diff] [blame] | 138 | imports_compile_dex: true, |
Jiyong Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 139 | } |
Yuntao Xu | a8d7760 | 2021-09-09 12:55:07 -0700 | [diff] [blame] | 140 | |
| 141 | filegroup { |
| 142 | name: "prebuilt_sdk_system_public_api_txt", |
| 143 | srcs: [ |
| 144 | "*/system/api/*.txt", |
| 145 | "*/public/api/*.txt", |
Yuntao Xu | 6ed109f | 2021-09-09 17:44:04 -0700 | [diff] [blame] | 146 | ] |
| 147 | } |
| 148 | |
| 149 | filegroup { |
| 150 | name: "prebuilt_sdk_system_api_android_txt", |
| 151 | srcs: [ |
| 152 | "*/system/api/android.txt", |
Yuntao Xu | a8d7760 | 2021-09-09 12:55:07 -0700 | [diff] [blame] | 153 | ], |
| 154 | } |