blob: 58926dc28e054681d45dc5c9e465450bd031b596 [file] [log] [blame]
Colin Cross410cdeb2016-10-26 10:23:15 -07001perfprofd_cppflags = [
2 "-Wall",
3 "-Wno-sign-compare",
4 "-Wno-unused-parameter",
5 "-Werror",
6]
7
8//
9// Static library containing guts of AWP daemon.
10//
11
12cc_library_static {
13 name: "libperfprofdcore",
14 clang: true,
15
16 local_include_dirs: ["quipper/kernel-headers"],
17 export_include_dirs: ["."],
18 static_libs: ["libbase"],
19 srcs: [
20 "perf_profile.proto",
21 "quipper/perf_utils.cc",
22 "quipper/base/logging.cc",
23 "quipper/address_mapper.cc",
24 "quipper/perf_reader.cc",
25 "quipper/perf_parser.cc",
26 "perf_data_converter.cc",
27 "configreader.cc",
28 "cpuconfig.cc",
29 "perfprofdcore.cc",
30 ],
31
32 cppflags: perfprofd_cppflags,
33
34 proto: {
35 export_proto_headers: true,
36 },
37}
38
39//
40// Static library with primary utilities layer (called by perfprofd core)
41//
42cc_library_static {
43 name: "libperfprofdutils",
44 clang: true,
45
46 cppflags: perfprofd_cppflags,
47 srcs: ["perfprofdutils.cc"],
48}
49
50//
51// Main daemon
52//
53cc_binary {
54 name: "perfprofd",
55 clang: true,
56
57 srcs: ["perfprofdmain.cc"],
58 static_libs: [
59 "libperfprofdcore",
60 "libperfprofdutils",
61 ],
62 shared_libs: [
63 "liblog",
64 "libprotobuf-cpp-lite",
65 "libbase",
66 "libcutils"
67 ],
68 system_shared_libs: [
69 "libc",
70 ],
71 cppflags: perfprofd_cppflags,
72
73 init_rc: ["perfprofd.rc"],
74}
75
76subdirs = ["tests"]