1// 2// Copyright (C) 2015 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 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "art_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: ["art_license"], 24} 25 26art_cc_library { 27 name: "libartbenchmark", 28 host_supported: true, 29 defaults: ["art_defaults"], 30 srcs: [ 31 "jni_loader.cc", 32 "jobject-benchmark/jobject_benchmark.cc", 33 "jni-perf/perf_jni.cc", 34 "micro-native/micro_native.cc", 35 "scoped-primitive-array/scoped_primitive_array.cc", 36 ], 37 target: { 38 // This has to be duplicated for android and host to make sure it 39 // comes after the -Wframe-larger-than warnings inserted by art.go 40 // target-specific properties 41 android: { 42 cflags: ["-Wno-frame-larger-than="], 43 }, 44 host: { 45 cflags: ["-Wno-frame-larger-than="], 46 }, 47 }, 48 header_libs: [ 49 "libnativehelper_header_only", 50 ], 51 // TODO(ngeoffray): find a way to link against the libraries in the apex. 52 shared_libs: [ 53 "libart", 54 "libartbase", 55 "libbase", 56 ], 57} 58 59art_cc_library { 60 name: "libartbenchmark-micronative-host", 61 host_supported: true, 62 device_supported: false, 63 defaults: ["art_debug_defaults"], 64 srcs: [ 65 "jni_loader.cc", 66 "micro-native/micro_native.cc", 67 ], 68 shared_libs: [ 69 ], 70 static_libs: [ 71 ], 72 header_libs: ["jni_headers"], 73 stl: "libc++_static", 74 target: { 75 // This has to be duplicated for android and host to make sure it 76 // comes after the -Wframe-larger-than warnings inserted by art.go 77 // target-specific properties 78 android: { 79 cflags: ["-Wno-frame-larger-than="], 80 }, 81 host: { 82 cflags: ["-Wno-frame-larger-than="], 83 }, 84 }, 85} 86 87art_cc_library { 88 name: "libgolemtiagent", 89 host_supported: true, 90 defaults: ["art_defaults"], 91 srcs: [ 92 "golem-tiagent/golem-tiagent.cc", 93 ], 94 target: { 95 // This has to be duplicated for android and host to make sure it 96 // comes after the -Wframe-larger-than warnings inserted by art.go 97 // target-specific properties 98 android: { 99 cflags: ["-Wno-frame-larger-than="], 100 }, 101 host: { 102 cflags: ["-Wno-frame-larger-than="], 103 }, 104 }, 105 header_libs: [ 106 "libnativehelper_header_only", 107 "libopenjdkjvmti_headers" 108 ], 109 shared_libs: [ 110 "libbase", 111 ], 112} 113