blob: f5491cfada55f526b2ef80c21ca368c370b37545 [file] [log] [blame]
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -07001// 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 Badour3306e492021-02-25 15:35:37 -080015package {
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 default_applicable_licenses: ["frameworks_native_license"],
22}
23
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070024sharedLibraries = [
25 "libbase",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070026 "libcutils",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070027 "libgui",
Fan Xucfd12742018-09-14 13:23:52 -070028 "liblog",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070029 "libpdx_default_transport",
Fan Xucfd12742018-09-14 13:23:52 -070030 "libsync",
31 "libui",
32 "libutils",
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070033]
34
Fan Xucfd12742018-09-14 13:23:52 -070035cc_library_static {
36 name: "libbufferhubd",
37 srcs: [
Fan Xucfd12742018-09-14 13:23:52 -070038 "buffer_hub.cpp",
Fan Xucfd12742018-09-14 13:23:52 -070039 "consumer_channel.cpp",
40 "consumer_queue_channel.cpp",
41 "producer_channel.cpp",
42 "producer_queue_channel.cpp",
43 ],
44 cflags: [
45 "-DLOG_TAG=\"libbufferhubd\"",
46 "-DTRACE=0",
47 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
48 ],
49 export_include_dirs: ["include"],
Fan Xu9f9a4612018-12-03 16:32:13 -080050 header_libs: ["libdvr_headers"],
Fan Xucfd12742018-09-14 13:23:52 -070051 shared_libs: sharedLibraries,
52 static_libs: [
53 "libbufferhub",
54 ],
Fan Xucfd12742018-09-14 13:23:52 -070055}
56
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070057cc_binary {
Fan Xucfd12742018-09-14 13:23:52 -070058 srcs: ["bufferhubd.cpp"],
Roman Kiryanov75a46a12020-11-17 21:19:17 -080059 system_ext_specific: true,
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070060 cflags: [
61 "-DLOG_TAG=\"bufferhubd\"",
62 "-DTRACE=0",
63 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
64 ],
Fan Xucfd12742018-09-14 13:23:52 -070065 header_libs: ["libdvr_headers"],
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070066 shared_libs: sharedLibraries,
Fan Xucfd12742018-09-14 13:23:52 -070067 static_libs: [
68 "libbufferhub",
69 "libbufferhubd",
70 "libperformance",
71 ],
Jiwen 'Steve' Caic257da72018-03-11 18:15:22 -070072 name: "bufferhubd",
73 init_rc: ["bufferhubd.rc"],
74}