1*795d594fSAndroid Build Coastguard Worker// Copyright 2018 Google Inc. All rights reserved. 2*795d594fSAndroid Build Coastguard Worker// 3*795d594fSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*795d594fSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*795d594fSAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*795d594fSAndroid Build Coastguard Worker// 7*795d594fSAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*795d594fSAndroid Build Coastguard Worker// 9*795d594fSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*795d594fSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*795d594fSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*795d594fSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*795d594fSAndroid Build Coastguard Worker// limitations under the License. 14*795d594fSAndroid Build Coastguard Worker 15*795d594fSAndroid Build Coastguard Workerpackage { 16*795d594fSAndroid Build Coastguard Worker // See: http://go/android-license-faq 17*795d594fSAndroid Build Coastguard Worker // A large-scale-change added 'default_applicable_licenses' to import 18*795d594fSAndroid Build Coastguard Worker // all of the 'license_kinds' from "art_license" 19*795d594fSAndroid Build Coastguard Worker // to get the below license kinds: 20*795d594fSAndroid Build Coastguard Worker // SPDX-license-identifier-Apache-2.0 21*795d594fSAndroid Build Coastguard Worker default_applicable_licenses: ["art_license"], 22*795d594fSAndroid Build Coastguard Worker} 23*795d594fSAndroid Build Coastguard Worker 24*795d594fSAndroid Build Coastguard Worker// --- ahat.jar ---------------- 25*795d594fSAndroid Build Coastguard Workerjava_binary_host { 26*795d594fSAndroid Build Coastguard Worker name: "ahat", 27*795d594fSAndroid Build Coastguard Worker visibility: [ 28*795d594fSAndroid Build Coastguard Worker "//libcore/metrictests/memory/host", 29*795d594fSAndroid Build Coastguard Worker ], 30*795d594fSAndroid Build Coastguard Worker wrapper: "ahat.sh", 31*795d594fSAndroid Build Coastguard Worker srcs: ["src/main/**/*.java"], 32*795d594fSAndroid Build Coastguard Worker manifest: "etc/ahat.mf", 33*795d594fSAndroid Build Coastguard Worker java_resources: ["etc/style.css"], 34*795d594fSAndroid Build Coastguard Worker // Use a relaxed version to allow distribution against older runtimes. 35*795d594fSAndroid Build Coastguard Worker java_version: "11", 36*795d594fSAndroid Build Coastguard Worker javacflags: ["-Xdoclint:all/protected"], 37*795d594fSAndroid Build Coastguard Worker static_libs: [ 38*795d594fSAndroid Build Coastguard Worker "guava", 39*795d594fSAndroid Build Coastguard Worker ], 40*795d594fSAndroid Build Coastguard Worker} 41*795d594fSAndroid Build Coastguard Worker 42*795d594fSAndroid Build Coastguard Worker// --- ahat-test-dump.jar -------------- 43*795d594fSAndroid Build Coastguard Workerjava_test_helper_library { 44*795d594fSAndroid Build Coastguard Worker name: "ahat-test-dump", 45*795d594fSAndroid Build Coastguard Worker srcs: ["src/test-dump/**/*.java"], 46*795d594fSAndroid Build Coastguard Worker sdk_version: "core_platform", 47*795d594fSAndroid Build Coastguard Worker optimize: { 48*795d594fSAndroid Build Coastguard Worker obfuscate: true, 49*795d594fSAndroid Build Coastguard Worker enabled: true, 50*795d594fSAndroid Build Coastguard Worker proguard_flags_files: ["etc/test-dump.pro"], 51*795d594fSAndroid Build Coastguard Worker }, 52*795d594fSAndroid Build Coastguard Worker} 53*795d594fSAndroid Build Coastguard Worker 54*795d594fSAndroid Build Coastguard Worker// --- ahat-ri-test-dump.jar ------- 55*795d594fSAndroid Build Coastguard Workerjava_test_helper_library { 56*795d594fSAndroid Build Coastguard Worker host_supported: true, 57*795d594fSAndroid Build Coastguard Worker device_supported: false, 58*795d594fSAndroid Build Coastguard Worker name: "ahat-ri-test-dump", 59*795d594fSAndroid Build Coastguard Worker srcs: ["src/ri-test-dump/**/*.java"], 60*795d594fSAndroid Build Coastguard Worker} 61*795d594fSAndroid Build Coastguard Worker 62*795d594fSAndroid Build Coastguard Workercc_library_shared { 63*795d594fSAndroid Build Coastguard Worker name: "libahat-test-jni", 64*795d594fSAndroid Build Coastguard Worker srcs: ["src/test/jni/**/*.cpp"], 65*795d594fSAndroid Build Coastguard Worker header_libs: ["jni_headers"], 66*795d594fSAndroid Build Coastguard Worker host_supported: true, 67*795d594fSAndroid Build Coastguard Worker} 68