• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
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
17package {
18    default_visibility: ["//visibility:private"],
19    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    ],
46}
47
48// 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",
53    visibility: ["//libcore"],
54    srcs: [],
55}
56
57java_library {
58    name: "apache-xml",
59    visibility: [
60        "//art/build/apex",
61        "//art/build/sdk",
62        "//libcore",
63        "//packages/modules/ArtPrebuilt",
64    ],
65    apex_available: [
66        "com.android.art",
67        "com.android.art.debug",
68    ],
69    srcs: ["src/main/java/**/*.java"],
70    java_resource_dirs: ["src/main/java"],
71
72    installable: true,
73    hostdex: true,
74    errorprone: {
75        javacflags: ["-Xep:MissingOverride:OFF"],
76    },
77
78    sdk_version: "none",
79    system_modules: "core-all-system-modules",
80    min_sdk_version: "31",
81}
82