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 "libprocinfo", 59 ], 60} 61 62cc_binary { 63 name: "showmap", 64 host_supported: true, 65 cflags: [ 66 "-Wall", 67 "-Werror", 68 ], 69 70 srcs: ["showmap.cpp"], 71 shared_libs: [ 72 "libbase", 73 "libmeminfo", 74 ], 75 76 target: { 77 darwin: { 78 enabled: false, 79 }, 80 }, 81} 82 83cc_binary { 84 name: "wsstop", 85 cflags: [ 86 "-Wall", 87 "-Werror", 88 ], 89 srcs: ["wsstop.cpp"], 90 shared_libs: [ 91 "libbase", 92 "liblog", 93 "libmeminfo", 94 ], 95} 96