Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 1 | // |
| 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 | |
| 17 | cc_defaults { |
| 18 | name: "profman-defaults", |
| 19 | host_supported: true, |
| 20 | defaults: ["art_defaults"], |
| 21 | srcs: [ |
Mathieu Chartier | 2f79455 | 2017-06-19 10:58:08 -0700 | [diff] [blame] | 22 | "boot_image_profile.cc", |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 23 | "profman.cc", |
| 24 | "profile_assistant.cc", |
| 25 | ], |
| 26 | |
| 27 | target: { |
| 28 | android: { |
Roland Levillain | 38a938e | 2018-09-21 10:55:51 +0100 | [diff] [blame] | 29 | // Use the 32-bit version of profman on devices. |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 30 | compile_multilib: "prefer32", |
| 31 | }, |
David Srbecky | d53f606 | 2019-03-22 14:55:21 +0000 | [diff] [blame] | 32 | darwin: { |
| 33 | enabled: true, |
| 34 | }, |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 35 | }, |
| 36 | |
Andreas Gampe | 3fec9ac | 2016-09-13 10:47:28 -0700 | [diff] [blame] | 37 | shared_libs: [ |
| 38 | "libbase", |
| 39 | ], |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | art_cc_binary { |
| 43 | name: "profman", |
| 44 | defaults: ["profman-defaults"], |
| 45 | shared_libs: [ |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 46 | "libprofile", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 47 | "libdexfile", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 48 | "libartbase", |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 49 | ], |
Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 50 | apex_available: [ |
| 51 | "com.android.art.release", |
| 52 | "com.android.art.debug", |
| 53 | ], |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | art_cc_binary { |
| 57 | name: "profmand", |
| 58 | defaults: [ |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 59 | "art_debug_defaults", |
Andreas Gampe | 5115efb | 2017-05-24 16:55:54 -0700 | [diff] [blame] | 60 | "profman-defaults", |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 61 | ], |
| 62 | shared_libs: [ |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 63 | "libprofiled", |
David Sehr | fcbe15c | 2018-02-15 09:41:13 -0800 | [diff] [blame] | 64 | "libdexfiled", |
David Sehr | 1f01016 | 2018-05-15 08:59:32 -0700 | [diff] [blame] | 65 | "libartbased", |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 66 | ], |
Jiyong Park | 066dd902 | 2019-12-19 02:11:59 +0000 | [diff] [blame] | 67 | apex_available: [ |
| 68 | "com.android.art.debug", |
| 69 | ], |
Colin Cross | c7376e0 | 2016-09-08 12:52:18 -0700 | [diff] [blame] | 70 | } |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 71 | |
David Sehr | 9d9227a | 2018-12-19 12:32:50 -0800 | [diff] [blame] | 72 | art_cc_binary { |
| 73 | name: "profmans", |
| 74 | defaults: [ |
| 75 | "profman-defaults", |
| 76 | "libprofile_static_defaults", |
| 77 | "libdexfile_static_defaults", |
| 78 | "libartbase_static_defaults", |
| 79 | ], |
| 80 | host_supported: true, |
| 81 | device_supported: false, |
| 82 | target: { |
| 83 | darwin: { |
| 84 | enabled: false, |
| 85 | }, |
| 86 | windows: { |
| 87 | enabled: true, |
Andreas Gampe | 0dc93b1 | 2019-05-15 10:30:22 -0700 | [diff] [blame] | 88 | cflags: ["-Wno-thread-safety"], |
David Sehr | 9d9227a | 2018-12-19 12:32:50 -0800 | [diff] [blame] | 89 | }, |
| 90 | }, |
| 91 | } |
| 92 | |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 93 | art_cc_test { |
| 94 | name: "art_profman_tests", |
| 95 | defaults: [ |
Colin Cross | afd3c9e | 2016-09-16 13:47:21 -0700 | [diff] [blame] | 96 | "art_gtest_defaults", |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 97 | ], |
David Sehr | 82d046e | 2018-04-23 08:14:19 -0700 | [diff] [blame] | 98 | shared_libs: [ |
| 99 | "libprofiled", |
| 100 | ], |
Colin Cross | 6e95dd5 | 2016-09-12 15:37:10 -0700 | [diff] [blame] | 101 | srcs: ["profile_assistant_test.cc"], |
| 102 | } |