blob: 342fae89fd3943d61c3982ae541572f5f9f94d12 [file] [log] [blame]
Colin Crossfe6064a2016-08-30 13:49:26 -07001//
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
Bob Badour9150de62021-02-26 03:22:24 -080017package {
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
Colin Crossfe6064a2016-08-30 13:49:26 -070026art_cc_library {
27 name: "libartbenchmark",
28 host_supported: true,
Dan Willemsen2ca27802017-09-27 14:57:43 -070029 defaults: ["art_defaults"],
Colin Crossfe6064a2016-08-30 13:49:26 -070030 srcs: [
Igor Murashkin017efa82016-09-22 15:46:29 -070031 "jni_loader.cc",
Colin Crossfe6064a2016-08-30 13:49:26 -070032 "jobject-benchmark/jobject_benchmark.cc",
33 "jni-perf/perf_jni.cc",
Igor Murashkin017efa82016-09-22 15:46:29 -070034 "micro-native/micro_native.cc",
Colin Crossfe6064a2016-08-30 13:49:26 -070035 "scoped-primitive-array/scoped_primitive_array.cc",
36 ],
Yi Kong75e50892021-09-02 13:07:54 +080037 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 },
Nicolas Geoffrayec64f202020-04-20 15:05:54 +010048 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 "libbase",
55 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070056}
Igor Murashkinf5658b42016-09-30 14:12:14 -070057
58art_cc_library {
59 name: "libartbenchmark-micronative-host",
60 host_supported: true,
61 device_supported: false,
Dan Willemsen2ca27802017-09-27 14:57:43 -070062 defaults: [
63 "art_debug_defaults",
64 "art_defaults",
65 ],
Igor Murashkinf5658b42016-09-30 14:12:14 -070066 srcs: [
67 "jni_loader.cc",
68 "micro-native/micro_native.cc",
69 ],
70 shared_libs: [
71 ],
72 static_libs: [
73 ],
Andreas Gampea78d3b02017-07-17 16:42:44 -070074 header_libs: ["jni_headers"],
Igor Murashkinf5658b42016-09-30 14:12:14 -070075 stl: "libc++_static",
Yi Kong75e50892021-09-02 13:07:54 +080076 target: {
77 // This has to be duplicated for android and host to make sure it
78 // comes after the -Wframe-larger-than warnings inserted by art.go
79 // target-specific properties
80 android: {
81 cflags: ["-Wno-frame-larger-than="],
82 },
83 host: {
84 cflags: ["-Wno-frame-larger-than="],
85 },
86 },
Igor Murashkinf5658b42016-09-30 14:12:14 -070087}