Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -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 | |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 15 | sharedLibraries = [ |
| 16 | "libbase", |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 17 | "libcutils", |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 18 | "libgui", |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 19 | "liblog", |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 20 | "libpdx_default_transport", |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 21 | "libsync", |
| 22 | "libui", |
| 23 | "libutils", |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 24 | ] |
| 25 | |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 26 | cc_library_static { |
| 27 | name: "libbufferhubd", |
| 28 | srcs: [ |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 29 | "buffer_hub.cpp", |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 30 | "consumer_channel.cpp", |
| 31 | "consumer_queue_channel.cpp", |
| 32 | "producer_channel.cpp", |
| 33 | "producer_queue_channel.cpp", |
| 34 | ], |
| 35 | cflags: [ |
| 36 | "-DLOG_TAG=\"libbufferhubd\"", |
| 37 | "-DTRACE=0", |
| 38 | "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", |
| 39 | ], |
| 40 | export_include_dirs: ["include"], |
Fan Xu | 9f9a461 | 2018-12-03 16:32:13 -0800 | [diff] [blame] | 41 | header_libs: ["libdvr_headers"], |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 42 | shared_libs: sharedLibraries, |
| 43 | static_libs: [ |
| 44 | "libbufferhub", |
| 45 | ], |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 46 | } |
| 47 | |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 48 | cc_binary { |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 49 | srcs: ["bufferhubd.cpp"], |
Roman Kiryanov | 75a46a1 | 2020-11-17 21:19:17 -0800 | [diff] [blame^] | 50 | system_ext_specific: true, |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 51 | cflags: [ |
| 52 | "-DLOG_TAG=\"bufferhubd\"", |
| 53 | "-DTRACE=0", |
| 54 | "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", |
| 55 | ], |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 56 | header_libs: ["libdvr_headers"], |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 57 | shared_libs: sharedLibraries, |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 58 | static_libs: [ |
| 59 | "libbufferhub", |
| 60 | "libbufferhubd", |
| 61 | "libperformance", |
| 62 | ], |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 63 | name: "bufferhubd", |
| 64 | init_rc: ["bufferhubd.rc"], |
| 65 | } |