| Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 1 | // Copyright (C) 2016 The Android Open Source Project | 
|  | 2 | // | 
|  | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); | 
|  | 4 | // you may not use this file except in compliance with the License. | 
|  | 5 | // You may obtain a copy of the License at | 
|  | 6 | // | 
|  | 7 | //      http://www.apache.org/licenses/LICENSE-2.0 | 
|  | 8 | // | 
|  | 9 | // Unless required by applicable law or agreed to in writing, software | 
|  | 10 | // distributed under the License is distributed on an "AS IS" BASIS, | 
|  | 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
|  | 12 | // See the License for the specific language governing permissions and | 
|  | 13 | // limitations under the License. | 
|  | 14 |  | 
| Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 15 | package { | 
|  | 16 | // See: http://go/android-license-faq | 
|  | 17 | // A large-scale-change added 'default_applicable_licenses' to import | 
|  | 18 | // all of the 'license_kinds' from "frameworks_native_license" | 
|  | 19 | // to get the below license kinds: | 
|  | 20 | //   SPDX-license-identifier-Apache-2.0 | 
|  | 21 | default_applicable_licenses: ["frameworks_native_license"], | 
|  | 22 | } | 
|  | 23 |  | 
| Jiwen 'Steve' Cai | 8f51ec6 | 2018-08-07 21:50:51 -0700 | [diff] [blame] | 24 | cc_library_headers { | 
|  | 25 | name: "libbufferhub_headers", | 
|  | 26 | export_include_dirs: ["include"], | 
|  | 27 | vendor_available: true,  // TODO(b/112338314): Does shouldn't be available to vendor. | 
| Jooyung Han | 2cf9404 | 2020-06-05 17:30:54 +0900 | [diff] [blame] | 28 | apex_available: [ | 
|  | 29 | "//apex_available:platform", | 
|  | 30 | "com.android.media", | 
|  | 31 | "com.android.media.swcodec", | 
|  | 32 | ], | 
|  | 33 | min_sdk_version: "29", | 
| Jiwen 'Steve' Cai | 8f51ec6 | 2018-08-07 21:50:51 -0700 | [diff] [blame] | 34 | } | 
|  | 35 |  | 
| Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 36 | sourceFiles = [ | 
| Jiwen 'Steve' Cai | c6fcf2f | 2018-09-27 23:34:45 -0700 | [diff] [blame] | 37 | "buffer_hub_base.cpp", | 
| Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 38 | "buffer_hub_rpc.cpp", | 
| Jiwen 'Steve' Cai | c6fcf2f | 2018-09-27 23:34:45 -0700 | [diff] [blame] | 39 | "consumer_buffer.cpp", | 
| Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 40 | "ion_buffer.cpp", | 
| Jiwen 'Steve' Cai | c6fcf2f | 2018-09-27 23:34:45 -0700 | [diff] [blame] | 41 | "producer_buffer.cpp", | 
| Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 42 | ] | 
|  | 43 |  | 
| Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 44 | sharedLibraries = [ | 
|  | 45 | "libbase", | 
|  | 46 | "libcutils", | 
| Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 47 | "liblog", | 
|  | 48 | "libui", | 
|  | 49 | "libutils", | 
| Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 50 | "libpdx_default_transport", | 
| Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 51 | ] | 
|  | 52 |  | 
| Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 53 | headerLibraries = [ | 
| Jiwen 'Steve' Cai | 8f51ec6 | 2018-08-07 21:50:51 -0700 | [diff] [blame] | 54 | "libbufferhub_headers", | 
| Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 55 | "libdvr_headers", | 
| Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 56 | "libnativebase_headers", | 
| Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 57 | ] | 
|  | 58 |  | 
|  | 59 | cc_library { | 
|  | 60 | srcs: sourceFiles, | 
|  | 61 | cflags: [ | 
|  | 62 | "-DLOG_TAG=\"libbufferhub\"", | 
| Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 63 | "-DTRACE=0", | 
|  | 64 | "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", | 
| Chih-Hung Hsieh | e190083 | 2017-10-05 14:27:38 -0700 | [diff] [blame] | 65 | "-Wall", | 
|  | 66 | "-Werror", | 
| Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 67 | ], | 
| Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 68 | shared_libs: sharedLibraries, | 
| Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 69 | header_libs: headerLibraries, | 
| Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 70 | name: "libbufferhub", | 
| Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 71 | export_header_lib_headers: [ | 
| Jiwen 'Steve' Cai | 8f51ec6 | 2018-08-07 21:50:51 -0700 | [diff] [blame] | 72 | "libbufferhub_headers", | 
| Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 73 | "libnativebase_headers", | 
|  | 74 | ], | 
| Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 75 | } | 
|  | 76 |  | 
|  | 77 | cc_test { | 
| Jiwen 'Steve' Cai | 9e7f303 | 2017-10-20 18:39:47 -0700 | [diff] [blame] | 78 | srcs: ["buffer_hub-test.cpp"], | 
| Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 79 | static_libs: ["libbufferhub"], | 
| Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 80 | shared_libs: sharedLibraries, | 
| Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 81 | header_libs: headerLibraries, | 
| Jiwen 'Steve' Cai | 9e7f303 | 2017-10-20 18:39:47 -0700 | [diff] [blame] | 82 | name: "buffer_hub-test", | 
| Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 83 | } |