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 | |
Bob Badour | 3c53823 | 2021-02-12 21:26:48 -0800 | [diff] [blame] | 15 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // all of the 'license_kinds' from "frameworks_native_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | // SPDX-license-identifier-MIT |
| 22 | // SPDX-license-identifier-Unicode-DFS |
| 23 | default_applicable_licenses: ["frameworks_native_license"], |
| 24 | } |
| 25 | |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 26 | sharedLibraries = [ |
| 27 | "libbase", |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 28 | "libcutils", |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 29 | "libgui", |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 30 | "liblog", |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 31 | "libpdx_default_transport", |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 32 | "libsync", |
| 33 | "libui", |
| 34 | "libutils", |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 35 | ] |
| 36 | |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 37 | cc_library_static { |
| 38 | name: "libbufferhubd", |
| 39 | srcs: [ |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 40 | "buffer_hub.cpp", |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 41 | "consumer_channel.cpp", |
| 42 | "consumer_queue_channel.cpp", |
| 43 | "producer_channel.cpp", |
| 44 | "producer_queue_channel.cpp", |
| 45 | ], |
| 46 | cflags: [ |
| 47 | "-DLOG_TAG=\"libbufferhubd\"", |
| 48 | "-DTRACE=0", |
| 49 | "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", |
| 50 | ], |
| 51 | export_include_dirs: ["include"], |
Fan Xu | 9f9a461 | 2018-12-03 16:32:13 -0800 | [diff] [blame] | 52 | header_libs: ["libdvr_headers"], |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 53 | shared_libs: sharedLibraries, |
| 54 | static_libs: [ |
| 55 | "libbufferhub", |
| 56 | ], |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 57 | } |
| 58 | |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 59 | cc_binary { |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 60 | srcs: ["bufferhubd.cpp"], |
Roman Kiryanov | 75a46a1 | 2020-11-17 21:19:17 -0800 | [diff] [blame] | 61 | system_ext_specific: true, |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 62 | cflags: [ |
| 63 | "-DLOG_TAG=\"bufferhubd\"", |
| 64 | "-DTRACE=0", |
| 65 | "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", |
| 66 | ], |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 67 | header_libs: ["libdvr_headers"], |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 68 | shared_libs: sharedLibraries, |
Fan Xu | cfd1274 | 2018-09-14 13:23:52 -0700 | [diff] [blame] | 69 | static_libs: [ |
| 70 | "libbufferhub", |
| 71 | "libbufferhubd", |
| 72 | "libperformance", |
| 73 | ], |
Jiwen 'Steve' Cai | c257da7 | 2018-03-11 18:15:22 -0700 | [diff] [blame] | 74 | name: "bufferhubd", |
| 75 | init_rc: ["bufferhubd.rc"], |
| 76 | } |