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 15package { 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 24sourceFiles = [ 25 "buffer_hub_queue_client.cpp", 26 "buffer_hub_queue_parcelable.cpp", 27] 28 29includeFiles = [ 30 "include", 31] 32 33staticLibraries = [ 34 "libbufferhub", 35] 36 37sharedLibraries = [ 38 "libbinder", 39 "libcutils", 40 "liblog", 41 "libui", 42 "libutils", 43 "libpdx_default_transport", 44] 45 46headerLibraries = [ 47 "libdvr_headers", 48 "libnativebase_headers", 49] 50 51cc_library_shared { 52 name: "libbufferhubqueue", 53 cflags: [ 54 "-DLOG_TAG=\"libbufferhubqueue\"", 55 "-DTRACE=0", 56 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", 57 "-Wall", 58 "-Werror", 59 "-Wno-format", 60 "-Wno-unused-parameter", 61 "-Wno-unused-variable", 62 ], 63 srcs: sourceFiles, 64 export_include_dirs: includeFiles, 65 export_static_lib_headers: staticLibraries, 66 static_libs: staticLibraries, 67 shared_libs: sharedLibraries, 68 header_libs: headerLibraries, 69} 70 71subdirs = ["benchmarks", "tests"] 72