Hridya Valsaraju | 0a83387 | 2020-05-13 10:43:30 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2020 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 | |
| 17 | cc_library { |
| 18 | srcs: [ |
| 19 | "BufferAllocator.cpp", |
Hridya Valsaraju | 77a3ad6 | 2020-06-22 17:41:16 -0700 | [diff] [blame] | 20 | "BufferAllocatorWrapper.cpp", |
Hridya Valsaraju | 0a83387 | 2020-05-13 10:43:30 -0700 | [diff] [blame] | 21 | ], |
| 22 | name: "libdmabufheap", |
John Stultz | 067685c | 2020-07-11 04:31:18 +0000 | [diff] [blame] | 23 | vendor_available: true, |
John Stultz | 30b801d | 2020-09-12 01:46:58 +0000 | [diff] [blame] | 24 | |
John Stultz | 04afbcd | 2020-11-05 04:36:15 +0000 | [diff] [blame] | 25 | vndk: { |
| 26 | enabled: true, |
| 27 | support_system_process: true, |
| 28 | }, |
| 29 | |
John Stultz | 30b801d | 2020-09-12 01:46:58 +0000 | [diff] [blame] | 30 | // Added because codec2 is double_loadable. |
| 31 | // See b/147147883, b/147147992 |
| 32 | double_loadable:true, |
John Stultz | 067685c | 2020-07-11 04:31:18 +0000 | [diff] [blame] | 33 | apex_available: [ |
| 34 | "//apex_available:platform", |
| 35 | "//apex_available:anyapex", |
| 36 | ], |
| 37 | min_sdk_version: "29", |
Hridya Valsaraju | 0a83387 | 2020-05-13 10:43:30 -0700 | [diff] [blame] | 38 | cflags: [ |
| 39 | "-Wall", |
| 40 | "-Werror", |
| 41 | ], |
| 42 | local_include_dirs: [ |
| 43 | "include", |
| 44 | ], |
| 45 | export_include_dirs: [ |
| 46 | "include", |
| 47 | ], |
| 48 | static_libs: [ |
| 49 | "libbase", |
| 50 | "libion", |
| 51 | "libutils", |
John Stultz | 067685c | 2020-07-11 04:31:18 +0000 | [diff] [blame] | 52 | ], |
| 53 | shared_libs: [ |
Hridya Valsaraju | 0a83387 | 2020-05-13 10:43:30 -0700 | [diff] [blame] | 54 | "liblog", |
| 55 | ], |
Hridya Valsaraju | cf3aee6 | 2020-07-20 14:55:11 -0700 | [diff] [blame] | 56 | export_static_lib_headers: [ |
Hridya Valsaraju | eecd55b | 2020-11-16 18:37:07 -0800 | [diff] [blame] | 57 | "libbase", |
Hridya Valsaraju | cf3aee6 | 2020-07-20 14:55:11 -0700 | [diff] [blame] | 58 | "libion", |
| 59 | ], |
Hridya Valsaraju | 0a83387 | 2020-05-13 10:43:30 -0700 | [diff] [blame] | 60 | } |