Erick Reyes | d2918fe | 2019-01-24 15:26:23 -0800 | [diff] [blame] | 1 | // |
| 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 | |
| 16 | cc_defaults { |
| 17 | name: "dmabufinfo_defaults", |
| 18 | static_libs: [ |
| 19 | "libbase", |
Erick Reyes | d2918fe | 2019-01-24 15:26:23 -0800 | [diff] [blame] | 20 | "libprocinfo", |
| 21 | ], |
Erick Reyes | 2f6792e | 2019-02-01 19:19:12 -0800 | [diff] [blame] | 22 | shared_libs: [ |
| 23 | "liblog", |
| 24 | ], |
Erick Reyes | d2918fe | 2019-01-24 15:26:23 -0800 | [diff] [blame] | 25 | |
| 26 | cflags: [ |
| 27 | "-Wall", |
| 28 | "-Werror", |
| 29 | "-Wextra", |
| 30 | ], |
| 31 | } |
| 32 | |
| 33 | cc_library_static { |
| 34 | name: "libdmabufinfo", |
Erick Reyes | 2f6792e | 2019-02-01 19:19:12 -0800 | [diff] [blame] | 35 | vendor_available: true, |
Erick Reyes | d2918fe | 2019-01-24 15:26:23 -0800 | [diff] [blame] | 36 | defaults: ["dmabufinfo_defaults"], |
| 37 | export_include_dirs: ["include"], |
Erick Reyes | d2918fe | 2019-01-24 15:26:23 -0800 | [diff] [blame] | 38 | srcs: [ |
| 39 | "dmabufinfo.cpp", |
| 40 | ], |
| 41 | } |
| 42 | |
| 43 | cc_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 | } |