1// Copyright (C) 2018 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19cc_binary {
20    name: "librank",
21    cflags: [
22        "-Wall",
23        "-Werror",
24    ],
25
26    srcs: ["librank.cpp"],
27    shared_libs: [
28        "libbase",
29        "libmeminfo",
30        "libsmapinfo",
31    ],
32}
33
34cc_binary {
35    name: "procmem",
36    cflags: [
37        "-Wall",
38        "-Werror",
39    ],
40
41    srcs: ["procmem.cpp"],
42    shared_libs: [
43        "libbase",
44        "libmeminfo",
45    ],
46}
47
48cc_binary {
49    name: "procrank",
50    cflags: [
51        "-Wall",
52        "-Werror",
53    ],
54
55    srcs: ["procrank.cpp"],
56    shared_libs: [
57        "libbase",
58        "libmeminfo",
59        "libprocinfo",
60        "libsmapinfo",
61    ],
62}
63
64cc_binary {
65    name: "showmap",
66    host_supported: true,
67    cflags: [
68        "-Wall",
69        "-Werror",
70    ],
71
72    srcs: ["showmap.cpp"],
73    shared_libs: [
74        "libbase",
75        "libmeminfo",
76        "libsmapinfo",
77    ],
78
79    target: {
80        darwin: {
81            enabled: false,
82        },
83    },
84}
85
86cc_binary {
87    name: "wsstop",
88    cflags: [
89        "-Wall",
90        "-Werror",
91    ],
92    srcs: ["wsstop.cpp"],
93    shared_libs: [
94        "libbase",
95        "liblog",
96        "libmeminfo",
97    ],
98}
99
100cc_binary {
101    name: "bugreport_procdump",
102    cflags: [
103        "-Wall",
104        "-Werror",
105    ],
106
107    srcs: ["bugreport_procdump.cpp"],
108    shared_libs: [
109        "libbase",
110        "libmeminfo",
111        "libsmapinfo",
112    ],
113}
114