blob: 099d555f26bc79ce2923fe9cda7424bd7c1ce66c [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 },
David Srbeckyd53f6062019-03-22 14:55:21 +000032 darwin: {
33 enabled: true,
34 },
Colin Crossc7376e02016-09-08 12:52:18 -070035 },
36
Andreas Gampe3fec9ac2016-09-13 10:47:28 -070037 shared_libs: [
38 "libbase",
39 ],
Colin Crossc7376e02016-09-08 12:52:18 -070040}
41
42art_cc_binary {
43 name: "profman",
44 defaults: ["profman-defaults"],
45 shared_libs: [
David Sehr82d046e2018-04-23 08:14:19 -070046 "libprofile",
David Sehrfcbe15c2018-02-15 09:41:13 -080047 "libdexfile",
David Sehr1f010162018-05-15 08:59:32 -070048 "libartbase",
Colin Crossc7376e02016-09-08 12:52:18 -070049 ],
50}
51
52art_cc_binary {
53 name: "profmand",
54 defaults: [
Colin Crossc7376e02016-09-08 12:52:18 -070055 "art_debug_defaults",
Andreas Gampe5115efb2017-05-24 16:55:54 -070056 "profman-defaults",
Colin Crossc7376e02016-09-08 12:52:18 -070057 ],
58 shared_libs: [
David Sehr82d046e2018-04-23 08:14:19 -070059 "libprofiled",
David Sehrfcbe15c2018-02-15 09:41:13 -080060 "libdexfiled",
David Sehr1f010162018-05-15 08:59:32 -070061 "libartbased",
Colin Crossc7376e02016-09-08 12:52:18 -070062 ],
63}
Colin Cross6e95dd52016-09-12 15:37:10 -070064
David Sehr9d9227a2018-12-19 12:32:50 -080065art_cc_binary {
66 name: "profmans",
67 defaults: [
68 "profman-defaults",
69 "libprofile_static_defaults",
70 "libdexfile_static_defaults",
71 "libartbase_static_defaults",
72 ],
73 host_supported: true,
74 device_supported: false,
75 target: {
76 darwin: {
77 enabled: false,
78 },
79 windows: {
80 enabled: true,
Andreas Gampe0dc93b12019-05-15 10:30:22 -070081 cflags: ["-Wno-thread-safety"],
David Sehr9d9227a2018-12-19 12:32:50 -080082 },
83 },
84}
85
Colin Cross6e95dd52016-09-12 15:37:10 -070086art_cc_test {
87 name: "art_profman_tests",
88 defaults: [
Colin Crossafd3c9e2016-09-16 13:47:21 -070089 "art_gtest_defaults",
Colin Cross6e95dd52016-09-12 15:37:10 -070090 ],
David Sehr82d046e2018-04-23 08:14:19 -070091 shared_libs: [
92 "libprofiled",
93 ],
Colin Cross6e95dd52016-09-12 15:37:10 -070094 srcs: ["profile_assistant_test.cc"],
95}