Home | History | Annotate | Download | only in default
      1 //
      2 // Copyright (C) 2016 The Android Open Source Project
      3 //
      4 // Licensed under the Apache License, Version 2.0 (the "License");
      5 // you may not use this file except in compliance with the License.
      6 // You may obtain a copy of the License at
      7 //
      8 //      http://www.apache.org/licenses/LICENSE-2.0
      9 //
     10 // Unless required by applicable law or agreed to in writing, software
     11 // distributed under the License is distributed on an "AS IS" BASIS,
     12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 // See the License for the specific language governing permissions and
     14 // limitations under the License.
     15 
     16 cc_library_shared {
     17     name: "android.hardware.audio.common-util",
     18     defaults: ["hidl_defaults"],
     19     vendor_available: true,
     20     srcs: [
     21         "EffectMap.cpp",
     22     ],
     23 
     24     export_include_dirs: ["include"],
     25 
     26     shared_libs: [
     27         "liblog",
     28         "libutils",
     29         "libhidlbase",
     30     ],
     31 
     32     header_libs: [
     33         "android.hardware.audio.common.util@all-versions",
     34         "libaudio_system_headers",
     35         "libhardware_headers",
     36     ],
     37     export_header_lib_headers: [
     38         "android.hardware.audio.common.util@all-versions",
     39     ]
     40 }
     41 
     42 cc_defaults {
     43     name: "android.hardware.audio.common-util_default",
     44     defaults: ["hidl_defaults"],
     45 
     46     vendor_available: true,
     47     srcs: [
     48         "HidlUtils.cpp",
     49     ],
     50 
     51     export_include_dirs: ["."],
     52 
     53     shared_libs: [
     54         "liblog",
     55         "libutils",
     56         "libhidlbase",
     57         "android.hardware.audio.common-util",
     58     ],
     59     export_shared_lib_headers: [
     60         "android.hardware.audio.common-util"
     61     ],
     62 
     63     header_libs: [
     64         "libaudio_system_headers",
     65         "libhardware_headers",
     66     ],
     67 }
     68 
     69 cc_library_shared {
     70     name: "android.hardware.audio.common (a] 2.0-util",
     71     defaults: ["android.hardware.audio.common-util_default"],
     72 
     73     shared_libs: [
     74         "android.hardware.audio.common (a] 2.0",
     75     ],
     76     cflags: [
     77         "-DMAJOR_VERSION=2",
     78         "-DMINOR_VERSION=0",
     79         "-include common/all-versions/VersionMacro.h",
     80     ]
     81 }
     82 
     83 cc_library_shared {
     84     name: "android.hardware.audio.common (a] 4.0-util",
     85     defaults: ["android.hardware.audio.common-util_default"],
     86 
     87     shared_libs: [
     88         "android.hardware.audio.common (a] 4.0",
     89     ],
     90     cflags: [
     91         "-DMAJOR_VERSION=4",
     92         "-DMINOR_VERSION=0",
     93         "-include common/all-versions/VersionMacro.h",
     94     ]
     95 }
     96 
     97 cc_library_shared {
     98     name: "android.hardware.audio.common (a] 5.0-util",
     99     defaults: ["android.hardware.audio.common-util_default"],
    100 
    101     shared_libs: [
    102         "android.hardware.audio.common (a] 5.0",
    103     ],
    104     cflags: [
    105         "-DMAJOR_VERSION=5",
    106         "-DMINOR_VERSION=0",
    107         "-include common/all-versions/VersionMacro.h",
    108     ]
    109 }
    110