Home | History | Annotate | Download | only in libbufferhub
      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 sourceFiles = [
     16     "buffer_hub_client.cpp",
     17     "buffer_hub_rpc.cpp",
     18     "ion_buffer.cpp",
     19 ]
     20 
     21 localIncludeFiles = [
     22     "include",
     23 ]
     24 
     25 staticLibraries = [
     26     "libdvrcommon",
     27     "libpdx_default_transport",
     28 ]
     29 
     30 sharedLibraries = [
     31     "libbase",
     32     "libcutils",
     33     "libhardware",
     34     "liblog",
     35     "libui",
     36     "libutils",
     37     "libnativewindow"
     38 ]
     39 
     40 headerLibraries = [
     41     "libdvr_headers",
     42     "libnativebase_headers",
     43 ]
     44 
     45 cc_library {
     46     srcs: sourceFiles,
     47     cflags: [
     48         "-DLOG_TAG=\"libbufferhub\"",
     49         "-DTRACE=0",
     50         "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
     51     ],
     52     export_include_dirs: localIncludeFiles,
     53     static_libs: staticLibraries,
     54     shared_libs: sharedLibraries,
     55     header_libs: headerLibraries,
     56     name: "libbufferhub",
     57     export_header_lib_headers: [
     58         "libnativebase_headers",
     59     ],
     60 }
     61 
     62 cc_test {
     63     tags: ["optional"],
     64     srcs: ["bufferhub_tests.cpp"],
     65     static_libs: ["libbufferhub"] + staticLibraries,
     66     shared_libs: sharedLibraries,
     67     header_libs: headerLibraries,
     68     name: "bufferhub_tests",
     69 }
     70 
     71