Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 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 | |
Bob Badour | 9150de6 | 2021-02-26 03:22:24 -0800 | [diff] [blame] | 17 | package { |
| 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 Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 26 | art_cc_library { |
| 27 | name: "libartbenchmark", |
| 28 | host_supported: true, |
Dan Willemsen | 2ca2780 | 2017-09-27 14:57:43 -0700 | [diff] [blame] | 29 | defaults: ["art_defaults"], |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 30 | srcs: [ |
Igor Murashkin | 017efa8 | 2016-09-22 15:46:29 -0700 | [diff] [blame] | 31 | "jni_loader.cc", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 32 | "jobject-benchmark/jobject_benchmark.cc", |
| 33 | "jni-perf/perf_jni.cc", |
Igor Murashkin | 017efa8 | 2016-09-22 15:46:29 -0700 | [diff] [blame] | 34 | "micro-native/micro_native.cc", |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 35 | "scoped-primitive-array/scoped_primitive_array.cc", |
| 36 | ], |
Yi Kong | 75e5089 | 2021-09-02 13:07:54 +0800 | [diff] [blame] | 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 | }, |
Nicolas Geoffray | ec64f20 | 2020-04-20 15:05:54 +0100 | [diff] [blame] | 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", |
Yi Kong | 456089e | 2022-08-18 19:50:24 +0800 | [diff] [blame] | 54 | "libartbase", |
Nicolas Geoffray | ec64f20 | 2020-04-20 15:05:54 +0100 | [diff] [blame] | 55 | "libbase", |
| 56 | ], |
Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 57 | } |
Igor Murashkin | f5658b4 | 2016-09-30 14:12:14 -0700 | [diff] [blame] | 58 | |
| 59 | art_cc_library { |
| 60 | name: "libartbenchmark-micronative-host", |
| 61 | host_supported: true, |
| 62 | device_supported: false, |
Martin Stjernholm | 9dca919 | 2021-10-28 03:01:13 +0100 | [diff] [blame] | 63 | defaults: ["art_debug_defaults"], |
Igor Murashkin | f5658b4 | 2016-09-30 14:12:14 -0700 | [diff] [blame] | 64 | srcs: [ |
| 65 | "jni_loader.cc", |
| 66 | "micro-native/micro_native.cc", |
| 67 | ], |
| 68 | shared_libs: [ |
| 69 | ], |
| 70 | static_libs: [ |
| 71 | ], |
Andreas Gampe | a78d3b0 | 2017-07-17 16:42:44 -0700 | [diff] [blame] | 72 | header_libs: ["jni_headers"], |
Igor Murashkin | f5658b4 | 2016-09-30 14:12:14 -0700 | [diff] [blame] | 73 | stl: "libc++_static", |
Yi Kong | 75e5089 | 2021-09-02 13:07:54 +0800 | [diff] [blame] | 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 | }, |
Igor Murashkin | f5658b4 | 2016-09-30 14:12:14 -0700 | [diff] [blame] | 85 | } |
Mythri Alle | eed7aec | 2022-09-26 15:31:34 +0000 | [diff] [blame] | 86 | |
| 87 | art_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 | } |