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 | |
Neil Fuller | 677bf5e | 2018-09-26 11:09:59 +0100 | [diff] [blame] | 17 | // The set of files that contribute to APIs. |
| 18 | // Generally, apache-xml source files are not marked with @hide so we add them |
| 19 | // one-by-one after having done so. |
| 20 | filegroup { |
| 21 | name: "apache-xml_api_files", |
| 22 | srcs: [], |
| 23 | } |
| 24 | |
Jiyong Park | b4aa5d6 | 2018-03-09 00:16:37 +0900 | [diff] [blame] | 25 | java_library { |
| 26 | name: "apache-xml", |
Jiyong Park | b4aa5d6 | 2018-03-09 00:16:37 +0900 | [diff] [blame] | 27 | srcs: ["src/main/java/**/*.java"], |
Jiyong Park | 07cd5df | 2018-03-12 18:47:49 +0900 | [diff] [blame] | 28 | java_resource_dirs: ["src/main/java"], |
Neil Fuller | 677bf5e | 2018-09-26 11:09:59 +0100 | [diff] [blame] | 29 | |
| 30 | installable: true, |
| 31 | hostdex: true, |
Jiyong Park | b4aa5d6 | 2018-03-09 00:16:37 +0900 | [diff] [blame] | 32 | errorprone: { |
| 33 | javacflags: ["-Xep:MissingOverride:OFF"], |
| 34 | }, |
Neil Fuller | 452ed05 | 2018-09-27 18:30:46 +0100 | [diff] [blame] | 35 | |
| 36 | no_standard_libs: true, |
Neil Fuller | 8d8b897 | 2018-10-19 10:19:24 +0100 | [diff] [blame] | 37 | libs: ["core-all"], |
| 38 | system_modules: "core-all-system-modules", |
Jiyong Park | b4aa5d6 | 2018-03-09 00:16:37 +0900 | [diff] [blame] | 39 | } |
Neil Fuller | 87f721d | 2018-12-06 10:24:43 +0000 | [diff] [blame] | 40 | |
| 41 | // A guaranteed unstripped version of apache-xml for use on device. |
| 42 | // The build system may or may not strip the apache-xml jar, but this one will |
| 43 | // not be stripped. See b/24535627. |
| 44 | java_library { |
| 45 | name: "apache-xml-testdex", |
| 46 | static_libs: ["apache-xml"], |
| 47 | |
| 48 | installable: true, |
| 49 | dex_preopt: { |
| 50 | enabled: false, |
| 51 | }, |
| 52 | |
| 53 | no_framework_libs: true, |
| 54 | } |