Jiyong Park | b4aa5d6 | 2018-03-09 00:16:37 +0900 | [diff] [blame] | 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 | |
Paul Duffin | 9a3df70 | 2019-06-03 15:18:32 +0100 | [diff] [blame] | 17 | package { |
| 18 | default_visibility: ["//visibility:private"], |
| 19 | } |
| 20 | |
Neil Fuller | 677bf5e | 2018-09-26 11:09:59 +0100 | [diff] [blame] | 21 | // 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. |
| 24 | filegroup { |
| 25 | name: "apache-xml_api_files", |
Paul Duffin | 9a3df70 | 2019-06-03 15:18:32 +0100 | [diff] [blame] | 26 | visibility: ["//libcore"], |
Neil Fuller | 677bf5e | 2018-09-26 11:09:59 +0100 | [diff] [blame] | 27 | srcs: [], |
| 28 | } |
| 29 | |
Jiyong Park | b4aa5d6 | 2018-03-09 00:16:37 +0900 | [diff] [blame] | 30 | java_library { |
| 31 | name: "apache-xml", |
Paul Duffin | 0170403 | 2019-03-28 14:23:25 +0000 | [diff] [blame] | 32 | visibility: [ |
| 33 | "//art/build/apex", |
| 34 | "//libcore", |
| 35 | ], |
Jiyong Park | 45b0de2 | 2019-12-19 02:11:54 +0000 | [diff] [blame] | 36 | apex_available: [ |
| 37 | "com.android.art.release", |
| 38 | "com.android.art.debug", |
| 39 | ], |
Jiyong Park | b4aa5d6 | 2018-03-09 00:16:37 +0900 | [diff] [blame] | 40 | srcs: ["src/main/java/**/*.java"], |
Jiyong Park | 07cd5df | 2018-03-12 18:47:49 +0900 | [diff] [blame] | 41 | java_resource_dirs: ["src/main/java"], |
Neil Fuller | 677bf5e | 2018-09-26 11:09:59 +0100 | [diff] [blame] | 42 | |
| 43 | installable: true, |
| 44 | hostdex: true, |
Jiyong Park | b4aa5d6 | 2018-03-09 00:16:37 +0900 | [diff] [blame] | 45 | errorprone: { |
| 46 | javacflags: ["-Xep:MissingOverride:OFF"], |
| 47 | }, |
Neil Fuller | 452ed05 | 2018-09-27 18:30:46 +0100 | [diff] [blame] | 48 | |
Paul Duffin | e23f857 | 2019-06-11 16:01:00 +0100 | [diff] [blame] | 49 | sdk_version: "none", |
Neil Fuller | 8d8b897 | 2018-10-19 10:19:24 +0100 | [diff] [blame] | 50 | system_modules: "core-all-system-modules", |
Jiyong Park | b4aa5d6 | 2018-03-09 00:16:37 +0900 | [diff] [blame] | 51 | } |
Neil Fuller | 87f721d | 2018-12-06 10:24:43 +0000 | [diff] [blame] | 52 | |
| 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. |
| 56 | java_library { |
| 57 | name: "apache-xml-testdex", |
Paul Duffin | 9a3df70 | 2019-06-03 15:18:32 +0100 | [diff] [blame] | 58 | visibility: [ |
| 59 | "//art:__subpackages__", |
| 60 | ], |
Neil Fuller | 87f721d | 2018-12-06 10:24:43 +0000 | [diff] [blame] | 61 | static_libs: ["apache-xml"], |
| 62 | |
| 63 | installable: true, |
| 64 | dex_preopt: { |
| 65 | enabled: false, |
| 66 | }, |
| 67 | |
Paul Duffin | 7995b95 | 2019-06-12 13:43:45 +0100 | [diff] [blame] | 68 | sdk_version: "core_platform", |
Neil Fuller | 87f721d | 2018-12-06 10:24:43 +0000 | [diff] [blame] | 69 | } |