blob: 4aed45c8cc7ed237a561fba06f48e99090268924 [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",
Erick Reyesd2918fe2019-01-24 15:26:23 -080020 "libprocinfo",
21 ],
Erick Reyes2f6792e2019-02-01 19:19:12 -080022 shared_libs: [
23 "liblog",
24 ],
Erick Reyesd2918fe2019-01-24 15:26:23 -080025
26 cflags: [
27 "-Wall",
28 "-Werror",
29 "-Wextra",
30 ],
31}
32
33cc_library_static {
34 name: "libdmabufinfo",
Erick Reyes2f6792e2019-02-01 19:19:12 -080035 vendor_available: true,
Erick Reyesd2918fe2019-01-24 15:26:23 -080036 defaults: ["dmabufinfo_defaults"],
37 export_include_dirs: ["include"],
Erick Reyesd2918fe2019-01-24 15:26:23 -080038 srcs: [
39 "dmabufinfo.cpp",
40 ],
41}
42
43cc_test {
44 name: "dmabufinfo_test",
45 defaults: ["dmabufinfo_defaults"],
46 srcs: [
47 "dmabufinfo_test.cpp"
48 ],
49
50 static_libs: [
51 "libc++fs",
52 "libdmabufinfo",
53 "libion",
54 "libmeminfo",
55 ],
56}