blob: 6b09d546b3a0859c982cc08966774e78033820d4 [file] [log] [blame]
Steven Morelandc2ed7292017-04-12 22:45:01 -07001//
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 {
Kevin Rocard6891d7e2017-12-14 18:39:39 -080017 name: "android.hardware.audio.common-util",
Chih-Hung Hsieh3da5b012017-09-29 15:15:48 -070018 defaults: ["hidl_defaults"],
Kevin Rocard8bdafc12018-01-24 06:12:44 +000019 vendor_available: true,
Steven Morelandc2ed7292017-04-12 22:45:01 -070020 srcs: [
21 "EffectMap.cpp",
Steven Morelandc2ed7292017-04-12 22:45:01 -070022 ],
23
Kevin Rocard6891d7e2017-12-14 18:39:39 -080024 export_include_dirs: ["include"],
Steven Morelandc2ed7292017-04-12 22:45:01 -070025
26 shared_libs: [
Steven Morelanda8a9cc62017-04-17 14:35:45 -070027 "liblog",
Steven Morelandc2ed7292017-04-12 22:45:01 -070028 "libutils",
29 "libhidlbase",
Steven Morelandc2ed7292017-04-12 22:45:01 -070030 ],
31
Steven Morelanda8a9cc62017-04-17 14:35:45 -070032 header_libs: [
Kevin Rocardb3f36c02018-02-26 18:45:07 -080033 "android.hardware.audio.common.util@all-versions",
Kevin Rocard8bdafc12018-01-24 06:12:44 +000034 "libaudio_system_headers",
Steven Morelanda8a9cc62017-04-17 14:35:45 -070035 "libhardware_headers",
36 ],
Kevin Rocardb3f36c02018-02-26 18:45:07 -080037 export_header_lib_headers: [
38 "android.hardware.audio.common.util@all-versions",
39 ]
Steven Morelandc2ed7292017-04-12 22:45:01 -070040}
Kevin Rocard96d2cd92018-11-14 16:22:07 -080041
42cc_library_shared {
43 name: "android.hardware.audio.common@2.0-util",
44 defaults: ["hidl_defaults"],
45 vendor_available: true,
46 srcs: [
47 "HidlUtils.cpp",
48 ],
49
50 export_include_dirs: ["."],
51
52 static_libs: [
53 ],
54
55 shared_libs: [
56 "liblog",
57 "libutils",
58 "libhidlbase",
59 "android.hardware.audio.common-util",
60 "android.hardware.audio.common@2.0",
61 ],
62 export_shared_lib_headers: [
63 "android.hardware.audio.common-util"
64 ],
65
66 header_libs: [
67 "libaudio_system_headers",
68 "libhardware_headers",
69 ],
70 cflags: [
71 "-DMAJOR_VERSION=2",
72 "-DMINOR_VERSION=0",
73 "-include common/all-versions/VersionMacro.h",
74 ]
75}
76
77cc_library_shared {
78 name: "android.hardware.audio.common@4.0-util",
79 defaults: ["hidl_defaults"],
80 vendor_available: true,
81 srcs: [
82 "HidlUtils.cpp",
83 ],
84
85 export_include_dirs: ["."],
86
87 static_libs: [
88 ],
89
90 shared_libs: [
91 "liblog",
92 "libutils",
93 "libhidlbase",
94 "android.hardware.audio.common-util",
95 "android.hardware.audio.common@4.0",
96 ],
97 export_shared_lib_headers: [
98 "android.hardware.audio.common-util"
99 ],
100
101 header_libs: [
102 "libaudio_system_headers",
103 "libhardware_headers",
104 ],
105 cflags: [
106 "-DMAJOR_VERSION=4",
107 "-DMINOR_VERSION=0",
108 "-include common/all-versions/VersionMacro.h",
109 ]
110}