blob: 5f8f505b173dd9389ef2883851ab8f1a8175f449 [file] [log] [blame]
Jiyong Parkb4aa5d62018-03-09 00:16:37 +09001//
2// Copyright (C) 2011 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Paul Duffin9a3df702019-06-03 15:18:32 +010017package {
18 default_visibility: ["//visibility:private"],
Bob Badour3e3dcc72021-02-12 19:51:26 -080019 default_applicable_licenses: ["external_apache-xml_license"],
20}
21
22// Added automatically by a large-scale-change that took the approach of
23// 'apply every license found to every target'. While this makes sure we respect
24// every license restriction, it may not be entirely correct.
25//
26// e.g. GPL in an MIT project might only apply to the contrib/ directory.
27//
28// Please consider splitting the single license below into multiple licenses,
29// taking care not to lose any license_kind information, and overriding the
30// default license using the 'licenses: [...]' property on targets as needed.
31//
32// For unused files, consider creating a 'fileGroup' with "//visibility:private"
33// to attach the license to, and including a comment whether the files may be
34// used in the current project.
35// See: http://go/android-license-faq
36license {
37 name: "external_apache-xml_license",
38 visibility: [":__subpackages__"],
39 license_kinds: [
40 "SPDX-license-identifier-Apache-2.0",
41 "SPDX-license-identifier-W3C",
42 ],
43 license_text: [
44 "NOTICE",
45 ],
Paul Duffin9a3df702019-06-03 15:18:32 +010046}
47
Neil Fuller677bf5e2018-09-26 11:09:59 +010048// The set of files that contribute to APIs.
49// Generally, apache-xml source files are not marked with @hide so we add them
50// one-by-one after having done so.
51filegroup {
52 name: "apache-xml_api_files",
Paul Duffin9a3df702019-06-03 15:18:32 +010053 visibility: ["//libcore"],
Neil Fuller677bf5e2018-09-26 11:09:59 +010054 srcs: [],
55}
56
Jiyong Parkb4aa5d62018-03-09 00:16:37 +090057java_library {
58 name: "apache-xml",
Paul Duffin01704032019-03-28 14:23:25 +000059 visibility: [
60 "//art/build/apex",
Martin Stjernholme349c2d2020-12-17 17:57:19 +000061 "//art/build/sdk",
Paul Duffin01704032019-03-28 14:23:25 +000062 "//libcore",
Martin Stjernholme349c2d2020-12-17 17:57:19 +000063 "//packages/modules/ArtPrebuilt",
Paul Duffin01704032019-03-28 14:23:25 +000064 ],
Jiyong Park45b0de22019-12-19 02:11:54 +000065 apex_available: [
Martin Stjernholmcde542f2020-10-12 15:10:39 +010066 "com.android.art",
Jiyong Park45b0de22019-12-19 02:11:54 +000067 "com.android.art.debug",
68 ],
Jiyong Parkb4aa5d62018-03-09 00:16:37 +090069 srcs: ["src/main/java/**/*.java"],
Jiyong Park07cd5df2018-03-12 18:47:49 +090070 java_resource_dirs: ["src/main/java"],
Neil Fuller677bf5e2018-09-26 11:09:59 +010071
72 installable: true,
73 hostdex: true,
Jiyong Parkb4aa5d62018-03-09 00:16:37 +090074 errorprone: {
75 javacflags: ["-Xep:MissingOverride:OFF"],
76 },
Neil Fuller452ed052018-09-27 18:30:46 +010077
Paul Duffine23f8572019-06-11 16:01:00 +010078 sdk_version: "none",
Neil Fuller8d8b8972018-10-19 10:19:24 +010079 system_modules: "core-all-system-modules",
Nicolas Geoffray7e8aff42021-03-03 22:01:30 +000080 min_sdk_version: "31",
Jiyong Parkb4aa5d62018-03-09 00:16:37 +090081}