| Jiwen 'Steve' Cai | d9f2abe | 2018-10-20 17:03:13 -0700 | [diff] [blame] | 1 | // | 
|  | 2 | // Copyright (C) 2018 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_shared { | 
|  | 18 | name: "libbufferhubservice", | 
|  | 19 | cflags: [ | 
| Tianyu Jiang | de43a5b | 2018-11-20 11:22:52 -0800 | [diff] [blame] | 20 | "-DLOG_TAG=\"libbufferhubservice\"", | 
| Jiwen 'Steve' Cai | d9f2abe | 2018-10-20 17:03:13 -0700 | [diff] [blame] | 21 | "-Wall", | 
|  | 22 | "-Werror", | 
|  | 23 | "-Wextra", | 
|  | 24 | ], | 
|  | 25 | srcs: [ | 
| Fan Xu | ca70b7b | 2018-10-31 13:20:12 -0700 | [diff] [blame] | 26 | "BufferClient.cpp", | 
| Fan Xu | 1c16df5 | 2018-11-19 16:27:27 -0800 | [diff] [blame] | 27 | "BufferHubIdGenerator.cpp", | 
| Jiwen 'Steve' Cai | d9f2abe | 2018-10-20 17:03:13 -0700 | [diff] [blame] | 28 | "BufferHubService.cpp", | 
| Fan Xu | 574a685 | 2018-11-02 13:22:42 -0700 | [diff] [blame] | 29 | "BufferNode.cpp", | 
|  | 30 | ], | 
|  | 31 | header_libs: [ | 
|  | 32 | "libbufferhub_headers", | 
|  | 33 | "libdvr_headers", | 
|  | 34 | "libnativewindow_headers", | 
|  | 35 | "libpdx_headers", | 
| Jiwen 'Steve' Cai | d9f2abe | 2018-10-20 17:03:13 -0700 | [diff] [blame] | 36 | ], | 
|  | 37 | shared_libs: [ | 
|  | 38 | "android.frameworks.bufferhub@1.0", | 
| Fan Xu | 18d90ea | 2018-11-06 15:46:44 -0800 | [diff] [blame] | 39 | "libcutils", | 
| Jiwen 'Steve' Cai | d9f2abe | 2018-10-20 17:03:13 -0700 | [diff] [blame] | 40 | "libhidlbase", | 
|  | 41 | "libhidltransport", | 
|  | 42 | "libhwbinder", | 
|  | 43 | "liblog", | 
| Fan Xu | 574a685 | 2018-11-02 13:22:42 -0700 | [diff] [blame] | 44 | "libui", | 
| Jiwen 'Steve' Cai | d9f2abe | 2018-10-20 17:03:13 -0700 | [diff] [blame] | 45 | "libutils", | 
|  | 46 | ], | 
|  | 47 | export_include_dirs: [ | 
|  | 48 | "include" | 
|  | 49 | ], | 
|  | 50 | } | 
|  | 51 |  | 
|  | 52 | cc_binary { | 
|  | 53 | name: "android.frameworks.bufferhub@1.0-service", | 
|  | 54 | relative_install_path: "hw", | 
|  | 55 | srcs: [ | 
|  | 56 | "main_bufferhub.cpp" | 
|  | 57 | ], | 
| Fan Xu | 93c9490 | 2018-11-01 12:22:05 -0700 | [diff] [blame] | 58 | header_libs: [ | 
|  | 59 | "libbufferhub_headers", | 
|  | 60 | "libdvr_headers", | 
|  | 61 | "libnativewindow_headers", | 
|  | 62 | "libpdx_headers", | 
|  | 63 | ], | 
| Jiwen 'Steve' Cai | d9f2abe | 2018-10-20 17:03:13 -0700 | [diff] [blame] | 64 | shared_libs: [ | 
|  | 65 | "android.frameworks.bufferhub@1.0", | 
|  | 66 | "libbufferhubservice", | 
| Fan Xu | 18d90ea | 2018-11-06 15:46:44 -0800 | [diff] [blame] | 67 | "libcutils", | 
| Jiwen 'Steve' Cai | d9f2abe | 2018-10-20 17:03:13 -0700 | [diff] [blame] | 68 | "libhidltransport", | 
|  | 69 | "libhwbinder", | 
|  | 70 | "liblog", | 
| Fan Xu | 574a685 | 2018-11-02 13:22:42 -0700 | [diff] [blame] | 71 | "libui", | 
| Jiwen 'Steve' Cai | d9f2abe | 2018-10-20 17:03:13 -0700 | [diff] [blame] | 72 | "libutils", | 
|  | 73 | ], | 
|  | 74 | cflags: [ | 
| Tianyu Jiang | de43a5b | 2018-11-20 11:22:52 -0800 | [diff] [blame] | 75 | "-DLOG_TAG=\"bufferhub\"", | 
| Jiwen 'Steve' Cai | d9f2abe | 2018-10-20 17:03:13 -0700 | [diff] [blame] | 76 | "-Wall", | 
|  | 77 | "-Werror", | 
|  | 78 | "-Wextra", | 
|  | 79 | ], | 
|  | 80 | init_rc: ["android.frameworks.bufferhub@1.0-service.rc"], | 
|  | 81 | vintf_fragments: ["android.frameworks.bufferhub@1.0-service.xml"], | 
|  | 82 | } |