• 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        "liblog",
26        "libutils",
27    ],
28
29    cflags: [
30        "-Wall",
31        "-Werror",
32        "-Wextra",
33        "-Wno-unused-parameter"
34    ],
35}
36
37cc_binary {
38    name: "perfstatsd",
39
40    defaults: ["perfstatsd_defaults"],
41
42    srcs: ["main.cpp"],
43    local_include_dirs: ["include"],
44    static_libs: ["libperfstatsd"],
45
46    init_rc: ["perfstatsd.rc"],
47
48    owner: "google",
49    vendor: true,
50}
51
52cc_library_static {
53    name: "libperfstatsd",
54
55    defaults: ["perfstatsd_defaults"],
56
57    srcs: [
58        "perfstatsd.cpp",
59        "perfstatsd_service.cpp",
60        "perfstats_buffer.cpp",
61        "cpu_usage.cpp",
62        "io_usage.cpp",
63	":perfstatsd_aidl_private",
64    ],
65    local_include_dirs: ["include"],
66    aidl: {
67        export_aidl_headers: true,
68        local_include_dirs: ["binder"],
69    },
70    vendor: true,
71}
72
73filegroup {
74    name: "perfstatsd_aidl_private",
75    srcs: [
76        "binder/android/pixel/perfstatsd/IPerfstatsdPrivate.aidl",
77    ],
78    path: "binder",
79}
80