blob: 8eb41b92470e237e792e3a882c6290df3d290a75 [file] [log] [blame]
Sandeep Patil54d87212018-08-29 17:10:47 -07001//
2// Copyright (C) 2018 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: "libmeminfo_defaults",
19 cflags: [
20 "-Wall",
21 "-Werror",
22 ],
23
24 shared_libs: [
25 "libbase",
26 "liblog",
27 "libprocinfo",
28 ],
29}
30
31cc_library {
32 name: "libmeminfo",
Mathieu Chartierc0c28fa2019-07-16 17:21:10 -070033 host_supported: true,
Sandeep Patil54d87212018-08-29 17:10:47 -070034 defaults: ["libmeminfo_defaults"],
35 export_include_dirs: ["include"],
36 export_shared_lib_headers: ["libbase"],
37 srcs: [
38 "pageacct.cpp",
39 "procmeminfo.cpp",
40 "sysmeminfo.cpp",
41 ],
42}
43
44cc_test {
45 name: "libmeminfo_test",
46 defaults: ["libmeminfo_defaults"],
47
48 static_libs: [
49 "libmeminfo",
Sandeep Patil54d87212018-08-29 17:10:47 -070050 "libbase",
51 "liblog",
52 ],
53
54 srcs: [
55 "libmeminfo_test.cpp"
56 ],
Sandeep Patil70fa72d2018-11-09 19:18:29 -080057
58 data: [
59 "testdata1/*",
60 "testdata2/*"
61 ],
Sandeep Patil54d87212018-08-29 17:10:47 -070062}
63
64cc_benchmark {
65 name: "libmeminfo_benchmark",
66 srcs: [
67 "libmeminfo_benchmark.cpp",
68 ],
69 static_libs : [
70 "libbase",
71 "liblog",
72 "libmeminfo",
73 "libprocinfo",
74 ],
Sandeep Patil70fa72d2018-11-09 19:18:29 -080075
76 data: [
77 "testdata1/*",
78 ],
Sandeep Patil54d87212018-08-29 17:10:47 -070079}