blob: 89e1f7e1234a6d4993badb6556446d9c981b8b37 [file] [log] [blame]
Colin Crossc7376e02016-09-08 12:52:18 -07001//
2// Copyright (C) 2016 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
17cc_defaults {
18 name: "profman-defaults",
19 host_supported: true,
20 defaults: ["art_defaults"],
21 srcs: [
Mathieu Chartier2f794552017-06-19 10:58:08 -070022 "boot_image_profile.cc",
Colin Crossc7376e02016-09-08 12:52:18 -070023 "profman.cc",
24 "profile_assistant.cc",
25 ],
26
27 target: {
28 android: {
Roland Levillain38a938e2018-09-21 10:55:51 +010029 // Use the 32-bit version of profman on devices.
Colin Crossc7376e02016-09-08 12:52:18 -070030 compile_multilib: "prefer32",
31 },
32 },
33
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070034 shared_libs: [
35 "libbase",
36 ],
Colin Crossc7376e02016-09-08 12:52:18 -070037}
38
39art_cc_binary {
40 name: "profman",
41 defaults: ["profman-defaults"],
42 shared_libs: [
Mathieu Chartier818cb802018-05-11 05:30:16 +000043 "libart",
David Sehr82d046e2018-04-23 08:14:19 -070044 "libprofile",
David Sehrfcbe15c2018-02-15 09:41:13 -080045 "libdexfile",
David Sehr1f010162018-05-15 08:59:32 -070046 "libartbase",
Colin Crossc7376e02016-09-08 12:52:18 -070047 ],
48}
49
50art_cc_binary {
51 name: "profmand",
52 defaults: [
Colin Crossc7376e02016-09-08 12:52:18 -070053 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -070054 "profman-defaults",
Colin Crossc7376e02016-09-08 12:52:18 -070055 ],
56 shared_libs: [
Mathieu Chartier818cb802018-05-11 05:30:16 +000057 "libartd",
David Sehr82d046e2018-04-23 08:14:19 -070058 "libprofiled",
David Sehrfcbe15c2018-02-15 09:41:13 -080059 "libdexfiled",
David Sehr1f010162018-05-15 08:59:32 -070060 "libartbased",
Colin Crossc7376e02016-09-08 12:52:18 -070061 ],
62}
Colin Cross6e95dd52016-09-12 15:37:10 -070063
64art_cc_test {
65 name: "art_profman_tests",
66 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -070067 "art_gtest_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070068 ],
David Sehr82d046e2018-04-23 08:14:19 -070069 shared_libs: [
70 "libprofiled",
71 ],
Colin Cross6e95dd52016-09-12 15:37:10 -070072 srcs: ["profile_assistant_test.cc"],
73}