• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16cc_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
42cc_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
69cc_library_shared {
70    name: "android.hardware.audio.common@2.0-util",
71    defaults: ["android.hardware.audio.common-util_default"],
72    shared_libs: [
73        "android.hardware.audio.common@2.0",
74    ],
75    cflags: [
76        "-DMAJOR_VERSION=2",
77        "-DMINOR_VERSION=0",
78        "-include common/all-versions/VersionMacro.h",
79    ]
80}
81
82cc_library_shared {
83    name: "android.hardware.audio.common@4.0-util",
84    defaults: ["android.hardware.audio.common-util_default"],
85    shared_libs: [
86        "android.hardware.audio.common@4.0",
87    ],
88    cflags: [
89        "-DMAJOR_VERSION=4",
90        "-DMINOR_VERSION=0",
91        "-include common/all-versions/VersionMacro.h",
92    ]
93}
94
95cc_library_shared {
96    name: "android.hardware.audio.common@5.0-util",
97    defaults: ["android.hardware.audio.common-util_default"],
98    shared_libs: [
99        "android.hardware.audio.common@5.0",
100    ],
101    cflags: [
102        "-DMAJOR_VERSION=5",
103        "-DMINOR_VERSION=0",
104        "-include common/all-versions/VersionMacro.h",
105    ]
106}
107
108cc_library_shared {
109    name: "android.hardware.audio.common@6.0-util",
110    defaults: ["android.hardware.audio.common-util_default"],
111    shared_libs: [
112        "android.hardware.audio.common@6.0",
113    ],
114    cflags: [
115        "-DMAJOR_VERSION=6",
116        "-DMINOR_VERSION=0",
117        "-include common/all-versions/VersionMacro.h",
118    ]
119}
120