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    ],
31}
32
33cc_binary {
34    name: "procmem",
35    cflags: [
36        "-Wall",
37        "-Werror",
38    ],
39
40    srcs: ["procmem.cpp"],
41    shared_libs: [
42        "libbase",
43        "libmeminfo",
44    ],
45}
46
47cc_binary {
48    name: "procrank",
49    cflags: [
50        "-Wall",
51        "-Werror",
52    ],
53
54    srcs: ["procrank.cpp"],
55    shared_libs: [
56        "libbase",
57        "libmeminfo",
58    ],
59}
60
61cc_binary {
62    name: "showmap",
63    host_supported: true,
64    cflags: [
65        "-Wall",
66        "-Werror",
67    ],
68
69    srcs: ["showmap.cpp"],
70    shared_libs: [
71        "libbase",
72        "libmeminfo",
73    ],
74
75    target: {
76        darwin: {
77            enabled: false,
78        },
79    },
80}
81
82cc_binary {
83    name: "wsstop",
84    cflags: [
85        "-Wall",
86        "-Werror",
87    ],
88    srcs: ["wsstop.cpp"],
89    shared_libs: [
90        "libbase",
91        "liblog",
92        "libmeminfo",
93    ],
94}
95