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 = [ |
| 26 | "libdvrcommon", |
| 27 | "libpdx_default_transport", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 28 | ] |
| 29 | |
| 30 | sharedLibraries = [ |
| 31 | "libbase", |
| 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 | |
| 40 | HeaderLibraries = [ |
| 41 | "libnativebase_headers", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 42 | ] |
| 43 | |
| 44 | cc_library { |
| 45 | srcs: sourceFiles, |
| 46 | cflags: [ |
| 47 | "-DLOG_TAG=\"libbufferhub\"", |
Chih-Hung Hsieh | 91f2522 | 2017-10-11 11:59:33 -0700 | [diff] [blame] | 48 | "-DTRACE=0", |
| 49 | "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", |
Chih-Hung Hsieh | e190083 | 2017-10-05 14:27:38 -0700 | [diff] [blame^] | 50 | "-Wall", |
| 51 | "-Werror", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 52 | ], |
| 53 | export_include_dirs: localIncludeFiles, |
| 54 | static_libs: staticLibraries, |
| 55 | shared_libs: sharedLibraries, |
Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 56 | header_libs: HeaderLibraries, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 57 | name: "libbufferhub", |
Mathias Agopian | 6a3c05b | 2017-04-27 20:06:55 -0700 | [diff] [blame] | 58 | export_header_lib_headers: [ |
| 59 | "libnativebase_headers", |
| 60 | ], |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | cc_test { |
| 64 | tags: ["optional"], |
| 65 | srcs: ["bufferhub_tests.cpp"], |
| 66 | static_libs: ["libbufferhub"] + staticLibraries, |
| 67 | shared_libs: sharedLibraries, |
| 68 | name: "bufferhub_tests", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 69 | } |
| 70 | |