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 | |
| 15 | sourceFiles = [ |
Jiwen 'Steve' Cai | c6fcf2f | 2018-09-27 23:34:45 -0700 | [diff] [blame] | 16 | "buffer_hub_base.cpp", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 17 | "buffer_hub_client.cpp", |
Jiwen 'Steve' Cai | 4e566ed | 2018-09-19 22:41:42 -0700 | [diff] [blame^] | 18 | "buffer_hub_metadata.cpp", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 19 | "buffer_hub_rpc.cpp", |
Jiwen 'Steve' Cai | c6fcf2f | 2018-09-27 23:34:45 -0700 | [diff] [blame] | 20 | "consumer_buffer.cpp", |
Jiwen 'Steve' Cai | a8049a2 | 2018-03-28 15:14:02 -0700 | [diff] [blame] | 21 | "detached_buffer.cpp", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 22 | "ion_buffer.cpp", |
Jiwen 'Steve' Cai | c6fcf2f | 2018-09-27 23:34:45 -0700 | [diff] [blame] | 23 | "producer_buffer.cpp", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 24 | ] |
| 25 | |
| 26 | localIncludeFiles = [ |
| 27 | "include", |
| 28 | ] |
| 29 | |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 30 | sharedLibraries = [ |
| 31 | "libbase", |
Jiwen 'Steve' Cai | a88e3ee | 2017-11-03 17:33:33 -0700 | [diff] [blame] | 32 | "libbinder", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 33 | "libcutils", |
| 34 | "libhardware", |
| 35 | "liblog", |
| 36 | "libui", |
| 37 | "libutils", |
Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 38 | "libnativewindow", |
| 39 | "libpdx_default_transport", |
Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 40 | ] |
| 41 | |
Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 42 | headerLibraries = [ |
| 43 | "libdvr_headers", |
Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 44 | "libnativebase_headers", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 45 | ] |
| 46 | |
| 47 | cc_library { |
| 48 | srcs: sourceFiles, |
| 49 | cflags: [ |
| 50 | "-DLOG_TAG=\"libbufferhub\"", |
Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 51 | "-DTRACE=0", |
| 52 | "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", |
Chih-Hung Hsieh | e190083 | 2017-10-05 14:27:38 -0700 | [diff] [blame] | 53 | "-Wall", |
| 54 | "-Werror", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 55 | ], |
| 56 | export_include_dirs: localIncludeFiles, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 57 | shared_libs: sharedLibraries, |
Corey Tabaka | 52ea25c | 2017-09-13 18:02:48 -0700 | [diff] [blame] | 58 | header_libs: headerLibraries, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 59 | name: "libbufferhub", |
Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 60 | export_header_lib_headers: [ |
| 61 | "libnativebase_headers", |
| 62 | ], |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | cc_test { |
Jiwen 'Steve' Cai | 9e7f303 | 2017-10-20 18:39:47 -0700 | [diff] [blame] | 66 | srcs: ["buffer_hub-test.cpp"], |
Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 67 | static_libs: ["libbufferhub"], |
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, |
Jiwen 'Steve' Cai | 9e7f303 | 2017-10-20 18:39:47 -0700 | [diff] [blame] | 70 | name: "buffer_hub-test", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 71 | } |
| 72 | |
Jiwen 'Steve' Cai | 4e566ed | 2018-09-19 22:41:42 -0700 | [diff] [blame^] | 73 | cc_test { |
| 74 | srcs: ["buffer_hub_metadata-test.cpp"], |
| 75 | static_libs: ["libbufferhub"], |
| 76 | shared_libs: sharedLibraries, |
| 77 | header_libs: headerLibraries, |
| 78 | name: "buffer_hub_metadata-test", |
| 79 | } |