OSDN Git Service

DO NOT MERGE: fec: remove unneeded target executable am: 955d3afe95
[android-x86/system-extras.git] / perfprofd / Android.bp
1 perfprofd_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
12 cc_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 //
42 cc_library_static {
43     name: "libperfprofdutils",
44     clang: true,
45
46         cppflags: perfprofd_cppflags,
47     srcs: ["perfprofdutils.cc"],
48 }
49
50 //
51 // Main daemon
52 //
53 cc_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
76 subdirs = ["tests"]