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