blob: c0bd34c45f5e75411dac12d9876b36a413de843d [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
Kevin Rocard1108d4a2018-11-15 18:51:07 -080042cc_defaults {
43 name: "android.hardware.audio.common-util_default",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080044 defaults: ["hidl_defaults"],
Kevin Rocard1108d4a2018-11-15 18:51:07 -080045
Kevin Rocard96d2cd92018-11-14 16:22:07 -080046 vendor_available: true,
47 srcs: [
48 "HidlUtils.cpp",
49 ],
50
51 export_include_dirs: ["."],
52
Kevin Rocard96d2cd92018-11-14 16:22:07 -080053 shared_libs: [
54 "liblog",
55 "libutils",
56 "libhidlbase",
57 "android.hardware.audio.common-util",
Kevin Rocard96d2cd92018-11-14 16:22:07 -080058 ],
59 export_shared_lib_headers: [
60 "android.hardware.audio.common-util"
61 ],
62
63 header_libs: [
64 "libaudio_system_headers",
65 "libhardware_headers",
66 ],
Kevin Rocard1108d4a2018-11-15 18:51:07 -080067}
68
69cc_library_shared {
70 name: "android.hardware.audio.common@2.0-util",
71 defaults: ["android.hardware.audio.common-util_default"],
72
73 shared_libs: [
74 "android.hardware.audio.common@2.0",
75 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080076 cflags: [
77 "-DMAJOR_VERSION=2",
78 "-DMINOR_VERSION=0",
79 "-include common/all-versions/VersionMacro.h",
80 ]
81}
82
83cc_library_shared {
84 name: "android.hardware.audio.common@4.0-util",
Kevin Rocard1108d4a2018-11-15 18:51:07 -080085 defaults: ["android.hardware.audio.common-util_default"],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080086
87 shared_libs: [
Kevin Rocard96d2cd92018-11-14 16:22:07 -080088 "android.hardware.audio.common@4.0",
89 ],
Kevin Rocard96d2cd92018-11-14 16:22:07 -080090 cflags: [
91 "-DMAJOR_VERSION=4",
92 "-DMINOR_VERSION=0",
93 "-include common/all-versions/VersionMacro.h",
94 ]
95}
Kevin Rocard20614ba2018-11-10 07:20:17 -080096
97cc_library_shared {
98 name: "android.hardware.audio.common@5.0-util",
99 defaults: ["android.hardware.audio.common-util_default"],
100
101 shared_libs: [
102 "android.hardware.audio.common@5.0",
103 ],
104 cflags: [
105 "-DMAJOR_VERSION=5",
106 "-DMINOR_VERSION=0",
107 "-include common/all-versions/VersionMacro.h",
108 ]
109}