blob: 8dcc77b8b906e7edbda3314bc8449611204b2b7a [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 ],
Colin Cross3defd522019-07-18 16:25:15 -070029 target: {
30 darwin: {
31 enabled: false,
32 },
33
34 },
Sandeep Patil54d87212018-08-29 17:10:47 -070035}
36
37cc_library {
38 name: "libmeminfo",
Mathieu Chartierc0c28fa2019-07-16 17:21:10 -070039 host_supported: true,
Sandeep Patil54d87212018-08-29 17:10:47 -070040 defaults: ["libmeminfo_defaults"],
41 export_include_dirs: ["include"],
42 export_shared_lib_headers: ["libbase"],
43 srcs: [
44 "pageacct.cpp",
45 "procmeminfo.cpp",
46 "sysmeminfo.cpp",
47 ],
48}
49
50cc_test {
51 name: "libmeminfo_test",
52 defaults: ["libmeminfo_defaults"],
53
54 static_libs: [
55 "libmeminfo",
Sandeep Patil54d87212018-08-29 17:10:47 -070056 "libbase",
57 "liblog",
58 ],
59
60 srcs: [
61 "libmeminfo_test.cpp"
62 ],
Sandeep Patil70fa72d2018-11-09 19:18:29 -080063
64 data: [
65 "testdata1/*",
66 "testdata2/*"
67 ],
Sandeep Patil54d87212018-08-29 17:10:47 -070068}
69
70cc_benchmark {
71 name: "libmeminfo_benchmark",
72 srcs: [
73 "libmeminfo_benchmark.cpp",
74 ],
75 static_libs : [
76 "libbase",
77 "liblog",
78 "libmeminfo",
79 "libprocinfo",
80 ],
Sandeep Patil70fa72d2018-11-09 19:18:29 -080081
82 data: [
83 "testdata1/*",
84 ],
Sandeep Patil54d87212018-08-29 17:10:47 -070085}