blob: f23495836759df4ae3c1bf416555e440ccc8542a [file] [log] [blame]
Bob Badoureb0cff22021-02-28 19:54:12 -08001// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
2// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
3// DEPENDING ON IT IN YOUR PROJECT. ***
4package {
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
22license {
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 Crossa7158942016-11-23 17:01:45 -080042subdirs=["tools"]
Nan Zhang50935212018-02-27 15:07:04 -080043
44filegroup {
45 name: "api-version-xml",
46 srcs: [
Anton Hansson2615bde2018-04-19 13:30:56 +010047 "*/public/api/android.txt",
48 "*/public/api/android.xml",
Nan Zhang50935212018-02-27 15:07:04 -080049 ],
50}
51
52filegroup {
53 name: "current-support-api",
54 srcs: [
55 "current/support-api.txt",
56 ],
57}
Nan Zhang4d722a52018-05-04 18:47:37 -070058
Nan Zhang13177a22018-08-22 11:07:05 -070059filegroup {
Charles Munger88b9e152019-11-19 14:02:55 -080060 name: "current-androidx-api",
61 srcs: [
62 "current/androidx-api.txt",
63 ],
64}
65
66filegroup {
Nan Zhang13177a22018-08-22 11:07:05 -070067 name: "metalava-sdk-android-jars",
68 srcs: [
69 "**/android.jar",
70 ],
71}
72
73droiddoc_exported_dir {
74 name: "sdk-dir",
75 path: ".",
76}
77
Anton Hansson70047112020-02-19 12:04:35 +000078genrule {
Jeff Gastonb77349a2019-09-20 14:24:20 -040079 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 Park681c4422020-07-06 12:44:41 +090089// This filegroup is to package android.jar into CtsUsesNativeLibraryTestCase
90filegroup {
91 name: "sdk_public_30_android",
92 srcs: [
93 "30/public/android.jar",
94 ],
95 visibility: [
96 "//cts/hostsidetests/library",
97 ],
98}
99
Jiyong Parkd6455472018-05-12 22:15:27 +0900100prebuilt_apis {
Sundong Ahneacb58d2018-06-21 15:03:01 +0900101 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 Abdelbaki43a48ea2019-05-08 18:01:52 -0400131 "29",
Svet Ganovbe8b6182020-04-30 17:19:53 -0700132 "30",
Anton Hansson56859a22021-06-07 11:33:47 +0100133 "31",
Sundong Ahneacb58d2018-06-21 15:03:01 +0900134 "current",
135 ],
paulhu519cb6d2021-11-26 11:18:56 +0800136 next_api_dir: "33",
Liz Kammer6b36db72020-08-20 10:19:18 -0700137 imports_sdk_version: "none",
Liz Kammer19ccaca2020-09-02 08:55:43 -0700138 imports_compile_dex: true,
Jiyong Parkd6455472018-05-12 22:15:27 +0900139}
Yuntao Xua8d77602021-09-09 12:55:07 -0700140
141filegroup {
142 name: "prebuilt_sdk_system_public_api_txt",
143 srcs: [
144 "*/system/api/*.txt",
145 "*/public/api/*.txt",
Yuntao Xu6ed109f2021-09-09 17:44:04 -0700146 ]
147}
148
149filegroup {
150 name: "prebuilt_sdk_system_api_android_txt",
151 srcs: [
152 "*/system/api/android.txt",
Yuntao Xua8d77602021-09-09 12:55:07 -0700153 ],
154}