blob: c7f9f6b1dad880292e659cb863637be38e06c3de [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",
Yi Kong456089e2022-08-18 19:50:24 +080054 "libartbase",
Nicolas Geoffrayec64f202020-04-20 15:05:54 +010055 "libbase",
56 ],
Colin Crossfe6064a2016-08-30 13:49:26 -070057}
Igor Murashkinf5658b42016-09-30 14:12:14 -070058
59art_cc_library {
60 name: "libartbenchmark-micronative-host",
61 host_supported: true,
62 device_supported: false,
Martin Stjernholm9dca9192021-10-28 03:01:13 +010063 defaults: ["art_debug_defaults"],
Igor Murashkinf5658b42016-09-30 14:12:14 -070064 srcs: [
65 "jni_loader.cc",
66 "micro-native/micro_native.cc",
67 ],
68 shared_libs: [
69 ],
70 static_libs: [
71 ],
Andreas Gampea78d3b02017-07-17 16:42:44 -070072 header_libs: ["jni_headers"],
Igor Murashkinf5658b42016-09-30 14:12:14 -070073 stl: "libc++_static",
Yi Kong75e50892021-09-02 13:07:54 +080074 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 },
Igor Murashkinf5658b42016-09-30 14:12:14 -070085}
Mythri Alleeed7aec2022-09-26 15:31:34 +000086
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}