1/* 2 * Copyright (C) 2020 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_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21java_library_host { 22 name: "unsupportedappusage-annotation-processor-lib", 23 srcs: [ 24 "*.java", 25 ], 26 static_libs: [ 27 "guava", 28 "//tools/platform-compat/java/android/processor/compat:compat-processor", 29 ], 30 openjdk9: { 31 javacflags: [ 32 "--add-modules=jdk.compiler", 33 "--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED", 34 "--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED", 35 "--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", 36 "--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", 37 ], 38 }, 39 40 visibility: ["//tools/platform-compat/javatest/android/processor/compat/unsupportedappusage:__subpackages__"], 41} 42 43java_plugin { 44 name: "unsupportedappusage-annotation-processor", 45 processor_class: "android.processor.compat.unsupportedappusage.UnsupportedAppUsageProcessor", 46 47 java_resources: [ 48 "META-INF/**/*", 49 ], 50 static_libs: [ 51 "unsupportedappusage-annotation-processor-lib" 52 ], 53 54 use_tools_jar: true, 55 56 visibility: [ 57 "//libcore:__pkg__", 58 "//tools/platform-compat/java/android/compat/annotation:__subpackages__", 59 ], 60} 61