• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17package {
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    default_team: "trendy_team_art_performance",
25}
26
27art_cc_library {
28    name: "libartbenchmark",
29    host_supported: true,
30    defaults: ["art_defaults"],
31    srcs: [
32        "jni_loader.cc",
33        "jobject-benchmark/jobject_benchmark.cc",
34        "jni-perf/perf_jni.cc",
35        "micro-native/micro_native.cc",
36        "scoped-primitive-array/scoped_primitive_array.cc",
37    ],
38    target: {
39        // This has to be duplicated for android and host to make sure it
40        // comes after the -Wframe-larger-than warnings inserted by art.go
41        // target-specific properties
42        android: {
43            cflags: ["-Wno-frame-larger-than="],
44        },
45        host: {
46            cflags: ["-Wno-frame-larger-than="],
47        },
48    },
49    header_libs: [
50        "libnativehelper_header_only",
51    ],
52    // TODO(ngeoffray): find a way to link against the libraries in the apex.
53    shared_libs: [
54        "libart",
55        "libartbase",
56        "libbase",
57    ],
58}
59
60art_cc_library {
61    name: "libartbenchmark-micronative-host",
62    host_supported: true,
63    device_supported: false,
64    defaults: ["art_debug_defaults"],
65    srcs: [
66        "jni_loader.cc",
67        "micro-native/micro_native.cc",
68    ],
69    shared_libs: [
70    ],
71    static_libs: [
72    ],
73    header_libs: ["jni_headers"],
74    stl: "libc++_static",
75    target: {
76        // This has to be duplicated for android and host to make sure it
77        // comes after the -Wframe-larger-than warnings inserted by art.go
78        // target-specific properties
79        android: {
80            cflags: ["-Wno-frame-larger-than="],
81        },
82        host: {
83            cflags: ["-Wno-frame-larger-than="],
84        },
85    },
86}
87
88art_cc_library {
89    name: "libgolemtiagent",
90    host_supported: true,
91    defaults: ["art_defaults"],
92    srcs: [
93        "golem-tiagent/golem-tiagent.cc",
94    ],
95    target: {
96        // This has to be duplicated for android and host to make sure it
97        // comes after the -Wframe-larger-than warnings inserted by art.go
98        // target-specific properties
99        android: {
100            cflags: ["-Wno-frame-larger-than="],
101        },
102        host: {
103            cflags: ["-Wno-frame-larger-than="],
104        },
105    },
106    header_libs: [
107        "libnativehelper_header_only",
108        "libopenjdkjvmti_headers",
109    ],
110    shared_libs: [
111        "libbase",
112    ],
113}
114