blob: 3d5f2e707dce4458fb58c59c91e9a5f2a3cca469 [file] [log] [blame]
Erick Reyesd2918fe2019-01-24 15:26:23 -08001//
2// Copyright (C) 2019 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
16cc_defaults {
17 name: "dmabufinfo_defaults",
18 static_libs: [
19 "libbase",
20 "liblog",
21 "libprocinfo",
22 ],
23
24 cflags: [
25 "-Wall",
26 "-Werror",
27 "-Wextra",
28 ],
29}
30
31cc_library_static {
32 name: "libdmabufinfo",
33 defaults: ["dmabufinfo_defaults"],
34 export_include_dirs: ["include"],
35 static_libs: ["libc++fs"],
36
37 srcs: [
38 "dmabufinfo.cpp",
39 ],
40}
41
42cc_test {
43 name: "dmabufinfo_test",
44 defaults: ["dmabufinfo_defaults"],
45 srcs: [
46 "dmabufinfo_test.cpp"
47 ],
48
49 static_libs: [
50 "libc++fs",
51 "libdmabufinfo",
52 "libion",
53 "libmeminfo",
54 ],
55}