OSDN Git Service

Add missing libdl dependencies
[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
15     local_include_dirs: ["quipper/kernel-headers"],
16     export_include_dirs: ["."],
17     static_libs: ["libbase"],
18     srcs: [
19         "perf_profile.proto",
20         "quipper/perf_utils.cc",
21         "quipper/base/logging.cc",
22         "quipper/address_mapper.cc",
23         "quipper/perf_reader.cc",
24         "quipper/perf_parser.cc",
25         "perf_data_converter.cc",
26         "configreader.cc",
27         "cpuconfig.cc",
28         "perfprofdcore.cc",
29     ],
30
31     cppflags: perfprofd_cppflags,
32
33     proto: {
34         export_proto_headers: true,
35     },
36 }
37
38 //
39 // Static library with primary utilities layer (called by perfprofd core)
40 //
41 cc_library_static {
42     name: "libperfprofdutils",
43
44         cppflags: perfprofd_cppflags,
45     srcs: ["perfprofdutils.cc"],
46 }
47
48 //
49 // Main daemon
50 //
51 cc_binary {
52     name: "perfprofd",
53
54     srcs: ["perfprofdmain.cc"],
55     static_libs: [
56         "libperfprofdcore",
57         "libperfprofdutils",
58     ],
59     shared_libs: [
60         "liblog",
61         "libprotobuf-cpp-lite",
62         "libbase",
63         "libcutils"
64     ],
65     system_shared_libs: [
66         "libc", "libdl",
67     ],
68     cppflags: perfprofd_cppflags,
69
70     init_rc: ["perfprofd.rc"],
71 }
72
73 subdirs = ["tests"]