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: [ |
| 20 | "-Wall", |
| 21 | "-Werror", |
| 22 | "-Wextra", |
| 23 | ], |
| 24 | srcs: [ |
| 25 | "BufferHubService.cpp", |
Fan Xu | 574a685 | 2018-11-02 13:22:42 -0700 | [diff] [blame] | 26 | "BufferNode.cpp", |
| 27 | ], |
| 28 | header_libs: [ |
| 29 | "libbufferhub_headers", |
| 30 | "libdvr_headers", |
| 31 | "libnativewindow_headers", |
| 32 | "libpdx_headers", |
Jiwen 'Steve' Cai | d9f2abe | 2018-10-20 17:03:13 -0700 | [diff] [blame] | 33 | ], |
| 34 | shared_libs: [ |
| 35 | "android.frameworks.bufferhub@1.0", |
| 36 | "libhidlbase", |
| 37 | "libhidltransport", |
| 38 | "libhwbinder", |
| 39 | "liblog", |
Fan Xu | 574a685 | 2018-11-02 13:22:42 -0700 | [diff] [blame] | 40 | "libui", |
Jiwen 'Steve' Cai | d9f2abe | 2018-10-20 17:03:13 -0700 | [diff] [blame] | 41 | "libutils", |
| 42 | ], |
| 43 | export_include_dirs: [ |
| 44 | "include" |
| 45 | ], |
| 46 | } |
| 47 | |
| 48 | cc_binary { |
| 49 | name: "android.frameworks.bufferhub@1.0-service", |
| 50 | relative_install_path: "hw", |
| 51 | srcs: [ |
| 52 | "main_bufferhub.cpp" |
| 53 | ], |
| 54 | shared_libs: [ |
| 55 | "android.frameworks.bufferhub@1.0", |
| 56 | "libbufferhubservice", |
| 57 | "libhidltransport", |
| 58 | "libhwbinder", |
| 59 | "liblog", |
Fan Xu | 574a685 | 2018-11-02 13:22:42 -0700 | [diff] [blame] | 60 | "libui", |
Jiwen 'Steve' Cai | d9f2abe | 2018-10-20 17:03:13 -0700 | [diff] [blame] | 61 | "libutils", |
| 62 | ], |
| 63 | cflags: [ |
| 64 | "-Wall", |
| 65 | "-Werror", |
| 66 | "-Wextra", |
| 67 | ], |
| 68 | init_rc: ["android.frameworks.bufferhub@1.0-service.rc"], |
| 69 | vintf_fragments: ["android.frameworks.bufferhub@1.0-service.xml"], |
| 70 | } |