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 15 sharedLibraries = [ 16 "libbase", 17 "libcutils", 18 "libgtest_prod", 19 "libgui", 20 "liblog", 21 "libpdx_default_transport", 22 "libsync", 23 "libui", 24 "libutils", 25 ] 26 27 cc_library_static { 28 name: "libbufferhubd", 29 srcs: [ 30 "buffer_hub.cpp", 31 "consumer_channel.cpp", 32 "consumer_queue_channel.cpp", 33 "producer_channel.cpp", 34 "producer_queue_channel.cpp", 35 ], 36 cflags: [ 37 "-DLOG_TAG=\"libbufferhubd\"", 38 "-DTRACE=0", 39 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", 40 ], 41 export_include_dirs: ["include"], 42 header_libs: ["libdvr_headers"], 43 shared_libs: sharedLibraries, 44 static_libs: [ 45 "libbufferhub", 46 ], 47 } 48 49 cc_binary { 50 srcs: ["bufferhubd.cpp"], 51 cflags: [ 52 "-DLOG_TAG=\"bufferhubd\"", 53 "-DTRACE=0", 54 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", 55 ], 56 header_libs: ["libdvr_headers"], 57 shared_libs: sharedLibraries, 58 static_libs: [ 59 "libbufferhub", 60 "libbufferhubd", 61 "libperformance", 62 ], 63 name: "bufferhubd", 64 init_rc: ["bufferhubd.rc"], 65 } 66