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 { |
Nan Zhang | 5093521 | 2018-02-27 15:07:04 -0800 | [diff] [blame] | 45 | name: "current-support-api", |
| 46 | srcs: [ |
| 47 | "current/support-api.txt", |
| 48 | ], |
| 49 | } |
Nan Zhang | 4d722a5 | 2018-05-04 18:47:37 -0700 | [diff] [blame] | 50 | |
Nan Zhang | 13177a2 | 2018-08-22 11:07:05 -0700 | [diff] [blame] | 51 | filegroup { |
Charles Munger | 88b9e15 | 2019-11-19 14:02:55 -0800 | [diff] [blame] | 52 | name: "current-androidx-api", |
| 53 | srcs: [ |
| 54 | "current/androidx-api.txt", |
| 55 | ], |
| 56 | } |
| 57 | |
| 58 | filegroup { |
Nan Zhang | 13177a2 | 2018-08-22 11:07:05 -0700 | [diff] [blame] | 59 | name: "metalava-sdk-android-jars", |
| 60 | srcs: [ |
| 61 | "**/android.jar", |
| 62 | ], |
| 63 | } |
| 64 | |
| 65 | droiddoc_exported_dir { |
| 66 | name: "sdk-dir", |
| 67 | path: ".", |
| 68 | } |
| 69 | |
Anton Hansson | 7004711 | 2020-02-19 12:04:35 +0000 | [diff] [blame] | 70 | genrule { |
Jeff Gaston | b77349a | 2019-09-20 14:24:20 -0400 | [diff] [blame] | 71 | name: "last-released-public-api-for-metalava-annotations", |
| 72 | srcs: [ |
| 73 | "*/public/api/android.txt", |
| 74 | ], |
| 75 | cmd: "cp -f $$(echo $(in) | tr \" \" \"\\n\" | sort -t/ -k3 -n | tail -2 | head -1) $(genDir)/last-released-api-for-metalava-annotations.txt", |
| 76 | out: [ |
| 77 | "last-released-api-for-metalava-annotations.txt", |
| 78 | ], |
| 79 | } |
| 80 | |
Jiyong Park | 681c442 | 2020-07-06 12:44:41 +0900 | [diff] [blame] | 81 | // This filegroup is to package android.jar into CtsUsesNativeLibraryTestCase |
| 82 | filegroup { |
| 83 | name: "sdk_public_30_android", |
| 84 | srcs: [ |
| 85 | "30/public/android.jar", |
| 86 | ], |
| 87 | visibility: [ |
| 88 | "//cts/hostsidetests/library", |
| 89 | ], |
| 90 | } |
| 91 | |
Jiyong Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 92 | prebuilt_apis { |
Sundong Ahn | eacb58d | 2018-06-21 15:03:01 +0900 | [diff] [blame] | 93 | name: "sdk", |
| 94 | api_dirs: [ |
| 95 | "1", |
| 96 | "2", |
| 97 | "3", |
| 98 | "4", |
| 99 | "5", |
| 100 | "6", |
| 101 | "7", |
| 102 | "8", |
| 103 | "9", |
| 104 | "10", |
| 105 | "11", |
| 106 | "12", |
| 107 | "13", |
| 108 | "14", |
| 109 | "15", |
| 110 | "16", |
| 111 | "17", |
| 112 | "18", |
| 113 | "19", |
| 114 | "20", |
| 115 | "21", |
| 116 | "22", |
| 117 | "23", |
| 118 | "24", |
| 119 | "25", |
| 120 | "26", |
| 121 | "27", |
| 122 | "28", |
Oussama Ben Abdelbaki | 43a48ea | 2019-05-08 18:01:52 -0400 | [diff] [blame] | 123 | "29", |
Svet Ganov | be8b618 | 2020-04-30 17:19:53 -0700 | [diff] [blame] | 124 | "30", |
Anton Hansson | 56859a2 | 2021-06-07 11:33:47 +0100 | [diff] [blame] | 125 | "31", |
Paul Duffin | 6f5c3ae | 2022-01-25 18:12:04 +0000 | [diff] [blame] | 126 | "32", |
Yurii Zubrytskyi | 8440aab | 2022-04-26 12:32:02 -0700 | [diff] [blame] | 127 | "33", |
Sundong Ahn | eacb58d | 2018-06-21 15:03:01 +0900 | [diff] [blame] | 128 | "current", |
| 129 | ], |
Anton Hansson | be66e71 | 2022-02-17 11:28:06 +0000 | [diff] [blame] | 130 | extensions_dir: "extensions", |
paulhu | 519cb6d | 2021-11-26 11:18:56 +0800 | [diff] [blame] | 131 | next_api_dir: "33", |
Liz Kammer | 6b36db7 | 2020-08-20 10:19:18 -0700 | [diff] [blame] | 132 | imports_sdk_version: "none", |
Liz Kammer | 19ccaca | 2020-09-02 08:55:43 -0700 | [diff] [blame] | 133 | imports_compile_dex: true, |
Jiyong Park | d645547 | 2018-05-12 22:15:27 +0900 | [diff] [blame] | 134 | } |
Yuntao Xu | a8d7760 | 2021-09-09 12:55:07 -0700 | [diff] [blame] | 135 | |
| 136 | filegroup { |
| 137 | name: "prebuilt_sdk_system_public_api_txt", |
| 138 | srcs: [ |
| 139 | "*/system/api/*.txt", |
| 140 | "*/public/api/*.txt", |
Yuntao Xu | 6ed109f | 2021-09-09 17:44:04 -0700 | [diff] [blame] | 141 | ] |
| 142 | } |
| 143 | |
| 144 | filegroup { |
| 145 | name: "prebuilt_sdk_system_api_android_txt", |
| 146 | srcs: [ |
| 147 | "*/system/api/android.txt", |
Yuntao Xu | a8d7760 | 2021-09-09 12:55:07 -0700 | [diff] [blame] | 148 | ], |
| 149 | } |