• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17cc_defaults {
18    name: "perfstatsd_defaults",
19
20    shared_libs: [
21        "libbase",
22        "libbinder",
23        "libcutils",
24        "libhidlbase",
25        "libhwbinder",
26        "liblog",
27        "libutils",
28    ],
29
30    cflags: [
31        "-Wall",
32        "-Werror",
33        "-Wextra",
34        "-Wno-unused-parameter"
35    ],
36}
37
38cc_binary {
39    name: "perfstatsd",
40
41    defaults: ["perfstatsd_defaults"],
42
43    srcs: ["main.cpp"],
44    local_include_dirs: ["include"],
45    static_libs: ["libperfstatsd"],
46
47    init_rc: ["perfstatsd.rc"],
48
49    owner: "google",
50    vendor: true,
51}
52
53cc_library_static {
54    name: "libperfstatsd",
55
56    defaults: ["perfstatsd_defaults"],
57
58    srcs: [
59        "perfstatsd.cpp",
60        "perfstatsd_service.cpp",
61        "perfstats_buffer.cpp",
62        "cpu_usage.cpp",
63        "io_usage.cpp",
64	":perfstatsd_aidl_private",
65    ],
66    local_include_dirs: ["include"],
67    aidl: {
68        export_aidl_headers: true,
69        local_include_dirs: ["binder"],
70    },
71    vendor: true,
72}
73
74filegroup {
75    name: "perfstatsd_aidl_private",
76    srcs: [
77        "binder/android/pixel/perfstatsd/IPerfstatsdPrivate.aidl",
78    ],
79    path: "binder",
80}
81