Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 1 | // Copyright 2012 The Android Open Source Project |
| 2 | |
Bob Badour | 3c53823 | 2021-02-12 21:26:48 -0800 | [diff] [blame] | 3 | package { |
| 4 | default_applicable_licenses: ["frameworks_native_cmds_atrace_license"], |
| 5 | } |
| 6 | |
| 7 | // Added automatically by a large-scale-change |
| 8 | // See: http://go/android-license-faq |
| 9 | license { |
| 10 | name: "frameworks_native_cmds_atrace_license", |
| 11 | visibility: [":__subpackages__"], |
| 12 | license_kinds: [ |
| 13 | "SPDX-license-identifier-Apache-2.0", |
| 14 | ], |
| 15 | license_text: [ |
| 16 | "NOTICE", |
| 17 | ], |
| 18 | } |
| 19 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 20 | cc_binary { |
| 21 | name: "atrace", |
| 22 | srcs: ["atrace.cpp"], |
Chih-Hung Hsieh | 734e378 | 2017-10-05 13:44:13 -0700 | [diff] [blame] | 23 | cflags: [ |
| 24 | "-Wall", |
| 25 | "-Werror", |
| 26 | ], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 27 | |
| 28 | shared_libs: [ |
| 29 | "libbinder", |
Martijn Coenen | ee9b97e | 2016-11-16 16:00:26 +0100 | [diff] [blame] | 30 | "libhidlbase", |
Dimitry Ivanov | 421e658 | 2016-09-23 17:22:33 -0700 | [diff] [blame] | 31 | "liblog", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 32 | "libutils", |
Corey Tabaka | c9f1c32 | 2017-10-11 10:49:57 -0700 | [diff] [blame] | 33 | "libcutils", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 34 | "libz", |
| 35 | "libbase", |
Wei Wang | 16a63a4 | 2018-09-21 15:47:45 -0700 | [diff] [blame] | 36 | "android.hardware.atrace@1.0", |
Corey Tabaka | a6c0a72 | 2017-05-31 16:37:40 -0700 | [diff] [blame] | 37 | ], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 38 | |
| 39 | init_rc: ["atrace.rc"], |
Ioannis Ilkos | 9eeff80 | 2023-04-04 23:04:50 +0000 | [diff] [blame] | 40 | required: ["ftrace_synthetic_events.conf"], |
Carmen Jackson | 4acf7ca | 2017-04-14 11:58:58 -0700 | [diff] [blame] | 41 | |
| 42 | product_variables: { |
| 43 | debuggable: { |
| 44 | init_rc: ["atrace_userdebug.rc"], |
| 45 | }, |
| 46 | }, |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 47 | } |
Ioannis Ilkos | 9eeff80 | 2023-04-04 23:04:50 +0000 | [diff] [blame] | 48 | |
| 49 | prebuilt_etc { |
| 50 | name: "ftrace_synthetic_events.conf", |
| 51 | src: "ftrace_synthetic_events.conf", |
| 52 | } |