blob: e909fd2f9f0414958fc6b367a666c6fc2b69080f [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"],
19}
20
Neil Fuller677bf5e2018-09-26 11:09:59 +010021// The set of files that contribute to APIs.
22// Generally, apache-xml source files are not marked with @hide so we add them
23// one-by-one after having done so.
24filegroup {
25 name: "apache-xml_api_files",
Paul Duffin9a3df702019-06-03 15:18:32 +010026 visibility: ["//libcore"],
Neil Fuller677bf5e2018-09-26 11:09:59 +010027 srcs: [],
28}
29
Jiyong Parkb4aa5d62018-03-09 00:16:37 +090030java_library {
31 name: "apache-xml",
Paul Duffin01704032019-03-28 14:23:25 +000032 visibility: [
33 "//art/build/apex",
34 "//libcore",
35 ],
Jiyong Park45b0de22019-12-19 02:11:54 +000036 apex_available: [
37 "com.android.art.release",
38 "com.android.art.debug",
39 ],
Jiyong Parkb4aa5d62018-03-09 00:16:37 +090040 srcs: ["src/main/java/**/*.java"],
Jiyong Park07cd5df2018-03-12 18:47:49 +090041 java_resource_dirs: ["src/main/java"],
Neil Fuller677bf5e2018-09-26 11:09:59 +010042
43 installable: true,
44 hostdex: true,
Jiyong Parkb4aa5d62018-03-09 00:16:37 +090045 errorprone: {
46 javacflags: ["-Xep:MissingOverride:OFF"],
47 },
Neil Fuller452ed052018-09-27 18:30:46 +010048
Paul Duffine23f8572019-06-11 16:01:00 +010049 sdk_version: "none",
Neil Fuller8d8b8972018-10-19 10:19:24 +010050 system_modules: "core-all-system-modules",
Jiyong Parkb4aa5d62018-03-09 00:16:37 +090051}
Neil Fuller87f721d2018-12-06 10:24:43 +000052
53// A guaranteed unstripped version of apache-xml for use on device.
54// The build system may or may not strip the apache-xml jar, but this one will
55// not be stripped. See b/24535627.
56java_library {
57 name: "apache-xml-testdex",
Paul Duffin9a3df702019-06-03 15:18:32 +010058 visibility: [
59 "//art:__subpackages__",
60 ],
Neil Fuller87f721d2018-12-06 10:24:43 +000061 static_libs: ["apache-xml"],
62
63 installable: true,
64 dex_preopt: {
65 enabled: false,
66 },
67
Paul Duffin7995b952019-06-12 13:43:45 +010068 sdk_version: "core_platform",
Neil Fuller87f721d2018-12-06 10:24:43 +000069}