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", |
| 17 | "libbinder", |
Fan Xu | 574a685 | 2018-11-02 13:22:42 -0700 | [diff] [blame] | 18 | "libbufferhubservice", |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 19 | "libcutils", |
Jiwen 'Steve' Cai | 9004b8c | 2018-10-03 18:52:23 -0700 | [diff] [blame] | 20 | "libgtest_prod", |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 21 | "libgui", |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 22 | "liblog", |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 23 | "libpdx_default_transport", |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 24 | "libsync", |
| 25 | "libui", |
| 26 | "libutils", |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 27 | ] |
| 28 | |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 29 | cc_library_static { |
| 30 | name: "libbufferhubd", |
| 31 | srcs: [ |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 32 | "buffer_channel.cpp", |
Fan Xu | d94e2ee | 2018-10-19 14:42:45 -0700 | [diff] [blame] | 33 | "buffer_client.cpp", |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 34 | "buffer_hub.cpp", |
| 35 | "buffer_hub_binder.cpp", |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 36 | "consumer_channel.cpp", |
| 37 | "consumer_queue_channel.cpp", |
Fan Xu | f35719a | 2018-10-10 11:38:31 -0700 | [diff] [blame] | 38 | "IBufferHub.cpp", |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 39 | "producer_channel.cpp", |
| 40 | "producer_queue_channel.cpp", |
| 41 | ], |
| 42 | cflags: [ |
| 43 | "-DLOG_TAG=\"libbufferhubd\"", |
| 44 | "-DTRACE=0", |
| 45 | "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", |
| 46 | ], |
| 47 | export_include_dirs: ["include"], |
Fan Xu | bb094a5 | 2018-10-26 15:05:02 -0700 | [diff] [blame] | 48 | header_libs: [ |
| 49 | "libdvr_headers", |
| 50 | "libnativewindow_headers", |
| 51 | ], |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 52 | shared_libs: sharedLibraries, |
| 53 | static_libs: [ |
| 54 | "libbufferhub", |
| 55 | ], |
Jiwen 'Steve' Cai | 9f7b7f3 | 2018-10-10 15:05:01 -0700 | [diff] [blame] | 56 | |
| 57 | // TODO(b/117568153): Temporarily opt out using libcrt. |
| 58 | no_libcrt: true, |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 59 | } |
| 60 | |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 61 | cc_binary { |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 62 | srcs: ["bufferhubd.cpp"], |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 63 | cflags: [ |
| 64 | "-DLOG_TAG=\"bufferhubd\"", |
| 65 | "-DTRACE=0", |
| 66 | "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", |
| 67 | ], |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 68 | header_libs: ["libdvr_headers"], |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 69 | shared_libs: sharedLibraries, |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 70 | static_libs: [ |
| 71 | "libbufferhub", |
| 72 | "libbufferhubd", |
| 73 | "libperformance", |
| 74 | ], |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 75 | name: "bufferhubd", |
| 76 | init_rc: ["bufferhubd.rc"], |
| 77 | } |