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 15sourceFiles = [ 16 "buffer_hub_client.cpp", 17 "buffer_hub_rpc.cpp", 18 "ion_buffer.cpp", 19] 20 21localIncludeFiles = [ 22 "include", 23] 24 25staticLibraries = [ 26 "libdvrcommon", 27 "libpdx_default_transport", 28] 29 30sharedLibraries = [ 31 "libbase", 32 "libcutils", 33 "libhardware", 34 "liblog", 35 "libui", 36 "libutils", 37] 38 39cc_library { 40 srcs: sourceFiles, 41 cflags: [ 42 "-DLOG_TAG=\"libbufferhub\"", 43 "-DTRACE=0" 44 ], 45 export_include_dirs: localIncludeFiles, 46 static_libs: staticLibraries, 47 shared_libs: sharedLibraries, 48 name: "libbufferhub", 49} 50 51cc_test { 52 tags: ["optional"], 53 srcs: ["bufferhub_tests.cpp"], 54 static_libs: ["libbufferhub"] + staticLibraries, 55 shared_libs: sharedLibraries, 56 name: "bufferhub_tests", 57} 58 59