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: [ 76 "-Xep:MissingOverride:OFF", 77 "-Xep:LockOnBoxedPrimitive:WARN", 78 ], 79 }, 80 lint: { 81 warning_checks: ["SuspiciousIndentation"], 82 }, 83 84 sdk_version: "none", 85 system_modules: "core-all-system-modules", 86 min_sdk_version: "31", 87} 88 89java_library_static { 90 name: "apache-xml-tests", 91 visibility: [ 92 "//libcore", 93 "//packages/modules/ArtPrebuilt", 94 ], 95 srcs: [ 96 "test/android_src/**/*.java", 97 "test/java/src/**/*.java", 98 "test/tests/bugzilla/**/*.java", 99 "test/tests/extensions/java/**/*.java", 100 // org.apache.xalan.trace package in xalan-java has to be imported because 101 // the test version is 2.7.3 while the implementation version is 2_7_1. 102 "test/trace-src/org/apache/xalan/trace/**/*.java", 103 ], 104 exclude_srcs: [ 105 // The following java files fail to build. 106 "test/java/src/org/apache/qetest/xsl/XSLApiTestsResultTask.java", 107 "test/java/src/org/apache/qetest/xsl/XSLTestAntTask.java", 108 "test/java/src/org/apache/qetest/xsl/XsltcTestsTask.java", 109 "test/java/src/org/apache/qetest/xslwrapper/XTWrapper.java", 110 "test/java/src/org/apache/qetest/xslwrapper/XsltcMainWrapper.java", 111 "test/tests/bugzilla/Bugzilla1110.java", 112 "test/tests/bugzilla/Bugzilla1288.java", 113 "test/tests/bugzilla/Bugzilla6181.java", 114 "test/tests/extensions/java/javaElem01.java", 115 "test/tests/extensions/java/javaSample4.java", 116 "test/java/src/org/apache/qetest/xalanj2/TraceListenerTest.java", 117 "test/java/src/org/apache/qetest/xslwrapper/XalanProcessWrapper.java", 118 "test/tests/bugzilla/BugzillaNodeInfo.java", 119 ], 120 java_resource_dirs: [ 121 "test/tests", 122 "test/java/xdocs", 123 ], 124 // soong_zip doesn't accept this file, likely due to unescaped space characters. 125 exclude_java_resources: ["test/tests/conf-gold/output/Test 31 Gif.gif"], 126 127 errorprone: { 128 javacflags: [ 129 "-Xep:MissingOverride:OFF", 130 "-Xep:LockOnBoxedPrimitive:WARN", 131 ], 132 }, 133 static_libs: [ 134 "apache-xml-jtidy-prebuilt", 135 ], 136 libs: [ 137 "apache-xml", 138 "junit", 139 "platform-test-annotations", 140 ], 141 sdk_version: "none", 142 system_modules: "core-all-system-modules", 143} 144 145java_import { 146 name: "apache-xml-jtidy-prebuilt", 147 jars: ["test/tools/jtidy-1.0.3.jar"], 148} 149