blob: 0bda7987a0d48e6dbf1218239f30cad1d8a33bfb [file] [log] [blame]
Stephen Kiazyke77dce22017-03-14 15:38:12 -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
Stephen Kiazyke77dce22017-03-14 15:38:12 -070024sourceFiles = [
25 "buffer_hub_queue_client.cpp",
Jiwen 'Steve' Caia88e3ee2017-11-03 17:33:33 -070026 "buffer_hub_queue_parcelable.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070027]
28
29includeFiles = [
30 "include",
31]
32
33staticLibraries = [
34 "libbufferhub",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070035]
36
37sharedLibraries = [
Stephen Kiazyke77dce22017-03-14 15:38:12 -070038 "libbinder",
39 "libcutils",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070040 "liblog",
41 "libui",
42 "libutils",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080043 "libpdx_default_transport",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070044]
45
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070046headerLibraries = [
Jiwen 'Steve' Caid6cb17f2017-05-08 16:15:35 -070047 "libdvr_headers",
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070048 "libnativebase_headers",
49]
50
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080051cc_library_shared {
Stephen Kiazyke77dce22017-03-14 15:38:12 -070052 name: "libbufferhubqueue",
Alex Vakulenko66fd7cb2017-03-30 10:53:11 -070053 cflags: [
Jiwen 'Steve' Cai2d82ceb2017-03-22 17:26:00 -070054 "-DLOG_TAG=\"libbufferhubqueue\"",
Jiwen 'Steve' Cai25fd3fa2017-03-20 15:30:21 -070055 "-DTRACE=0",
Chih-Hung Hsieh91f25222017-10-11 11:59:33 -070056 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
Chih-Hung Hsiehe1900832017-10-05 14:27:38 -070057 "-Wall",
58 "-Werror",
59 "-Wno-format",
60 "-Wno-unused-parameter",
61 "-Wno-unused-variable",
Jiwen 'Steve' Cai25fd3fa2017-03-20 15:30:21 -070062 ],
Stephen Kiazyke77dce22017-03-14 15:38:12 -070063 srcs: sourceFiles,
64 export_include_dirs: includeFiles,
Jiwen 'Steve' Caia3613612017-03-08 17:41:48 -080065 export_static_lib_headers: staticLibraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070066 static_libs: staticLibraries,
67 shared_libs: sharedLibraries,
Mathias Agopian6a3c05b2017-04-27 20:06:55 -070068 header_libs: headerLibraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070069}
70
Jiwen 'Steve' Caibd21fca2018-01-29 11:44:38 -080071subdirs = ["benchmarks", "tests"]