blob: 1c4e63e323af3e008802670ae49a3349ed5b2f7b [file] [log] [blame]
Dan Willemsen59e086f2016-07-25 17:13:45 -07001// Copyright 2012 The Android Open Source Project
2
Bob Badour3c538232021-02-12 21:26:48 -08003package {
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
9license {
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 Willemsen59e086f2016-07-25 17:13:45 -070020cc_binary {
21 name: "atrace",
22 srcs: ["atrace.cpp"],
Chih-Hung Hsieh734e3782017-10-05 13:44:13 -070023 cflags: [
24 "-Wall",
25 "-Werror",
26 ],
Dan Willemsen59e086f2016-07-25 17:13:45 -070027
28 shared_libs: [
29 "libbinder",
Martijn Coenenee9b97e2016-11-16 16:00:26 +010030 "libhidlbase",
Dimitry Ivanov421e6582016-09-23 17:22:33 -070031 "liblog",
Dan Willemsen59e086f2016-07-25 17:13:45 -070032 "libutils",
Corey Tabakac9f1c322017-10-11 10:49:57 -070033 "libcutils",
Dan Willemsen59e086f2016-07-25 17:13:45 -070034 "libz",
35 "libbase",
Corey Tabakaa6c0a722017-05-31 16:37:40 -070036 "libpdx_default_transport",
Wei Wang16a63a42018-09-21 15:47:45 -070037 "android.hardware.atrace@1.0",
Corey Tabakaa6c0a722017-05-31 16:37:40 -070038 ],
Dan Willemsen59e086f2016-07-25 17:13:45 -070039
40 init_rc: ["atrace.rc"],
Ioannis Ilkos9eeff802023-04-04 23:04:50 +000041 required: ["ftrace_synthetic_events.conf"],
Carmen Jackson4acf7ca2017-04-14 11:58:58 -070042
43 product_variables: {
44 debuggable: {
45 init_rc: ["atrace_userdebug.rc"],
46 },
47 },
Dan Willemsen59e086f2016-07-25 17:13:45 -070048}
Ioannis Ilkos9eeff802023-04-04 23:04:50 +000049
50prebuilt_etc {
51 name: "ftrace_synthetic_events.conf",
52 src: "ftrace_synthetic_events.conf",
53}