blob: d781f84e1e3bf0c4a66440043bf0b26047807dbd [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,
Martin Stjernholm9dca9192021-10-28 03:01:13 +010062 defaults: ["art_debug_defaults"],
Igor Murashkinf5658b42016-09-30 14:12:14 -070063 srcs: [
64 "jni_loader.cc",
65 "micro-native/micro_native.cc",
66 ],
67 shared_libs: [
68 ],
69 static_libs: [
70 ],
Andreas Gampea78d3b02017-07-17 16:42:44 -070071 header_libs: ["jni_headers"],
Igor Murashkinf5658b42016-09-30 14:12:14 -070072 stl: "libc++_static",
Yi Kong75e50892021-09-02 13:07:54 +080073 target: {
74 // This has to be duplicated for android and host to make sure it
75 // comes after the -Wframe-larger-than warnings inserted by art.go
76 // target-specific properties
77 android: {
78 cflags: ["-Wno-frame-larger-than="],
79 },
80 host: {
81 cflags: ["-Wno-frame-larger-than="],
82 },
83 },
Igor Murashkinf5658b42016-09-30 14:12:14 -070084}