1*89a63228SAndroid Build Coastguard Worker// Copyright (C) 2022 The Android Open Source Project 2*89a63228SAndroid Build Coastguard Worker// 3*89a63228SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*89a63228SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*89a63228SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*89a63228SAndroid Build Coastguard Worker// 7*89a63228SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*89a63228SAndroid Build Coastguard Worker// 9*89a63228SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*89a63228SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*89a63228SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*89a63228SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*89a63228SAndroid Build Coastguard Worker// limitations under the License. 14*89a63228SAndroid Build Coastguard Worker 15*89a63228SAndroid Build Coastguard Workerpackage { 16*89a63228SAndroid Build Coastguard Worker // See: http://go/android-license-faq 17*89a63228SAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 18*89a63228SAndroid Build Coastguard Worker // all of the 'license_kinds' from "libcore_license" 19*89a63228SAndroid Build Coastguard Worker // to get the below license kinds: 20*89a63228SAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 21*89a63228SAndroid Build Coastguard Worker default_applicable_licenses: ["libcore_license"], 22*89a63228SAndroid Build Coastguard Worker} 23*89a63228SAndroid Build Coastguard Worker 24*89a63228SAndroid Build Coastguard Workerjava_binary_host { 25*89a63228SAndroid Build Coastguard Worker name: "libcore-openjdk-analyzer", 26*89a63228SAndroid Build Coastguard Worker srcs: ["src/**/*.java"], 27*89a63228SAndroid Build Coastguard Worker java_resources: [":libcore-openjdk-analyzer-resources"], 28*89a63228SAndroid Build Coastguard Worker manifest: "src/manifest.txt", 29*89a63228SAndroid Build Coastguard Worker static_libs: [ 30*89a63228SAndroid Build Coastguard Worker "jcommander", 31*89a63228SAndroid Build Coastguard Worker "ow2-asm", 32*89a63228SAndroid Build Coastguard Worker "ow2-asm-tree", 33*89a63228SAndroid Build Coastguard Worker "ow2-asm-util", 34*89a63228SAndroid Build Coastguard Worker ], 35*89a63228SAndroid Build Coastguard Worker} 36*89a63228SAndroid Build Coastguard Worker 37*89a63228SAndroid Build Coastguard Workerfilegroup { 38*89a63228SAndroid Build Coastguard Worker name: "libcore-openjdk-analyzer-resources", 39*89a63228SAndroid Build Coastguard Worker // Set path to keep the resources and .class files in the same directory in the jar file. 40*89a63228SAndroid Build Coastguard Worker path: "src", 41*89a63228SAndroid Build Coastguard Worker srcs: ["src/libcore/**/*"], 42*89a63228SAndroid Build Coastguard Worker exclude_srcs: ["src/libcore/**/*.java"], 43*89a63228SAndroid Build Coastguard Worker} 44