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 17art_cc_library { 18 name: "libartbenchmark", 19 host_supported: true, 20 defaults: ["art_defaults" ], 21 srcs: [ 22 "jni_loader.cc", 23 "jobject-benchmark/jobject_benchmark.cc", 24 "jni-perf/perf_jni.cc", 25 "micro-native/micro_native.cc", 26 "scoped-primitive-array/scoped_primitive_array.cc", 27 ], 28 shared_libs: [ 29 "libart", 30 "libbacktrace", 31 "libbase", 32 "libnativehelper", 33 ], 34 clang: true, 35 target: { 36 android: { 37 shared_libs: ["libdl"], 38 }, 39 host: { 40 host_ldlibs: ["-ldl", "-lpthread"], 41 }, 42 }, 43 cflags: [ 44 "-Wno-frame-larger-than=", 45 ], 46} 47 48art_cc_library { 49 name: "libartbenchmark-micronative-host", 50 host_supported: true, 51 device_supported: false, 52 defaults: ["art_defaults", "art_debug_defaults"], 53 srcs: [ 54 "jni_loader.cc", 55 "micro-native/micro_native.cc", 56 ], 57 shared_libs: [ 58 ], 59 static_libs: [ 60 ], 61 include_dirs: [ 62 "libnativehelper/include/nativehelper" // only for jni.h 63 ], 64 stl: "libc++_static", 65 clang: true, 66 target: { 67 host: { 68 host_ldlibs: ["-ldl", "-lpthread"], 69 }, 70 }, 71 cflags: [ 72 "-Wno-frame-larger-than=", 73 ], 74} 75