Steven Moreland | c2ed729 | 2017-04-12 22:45:01 -0700 | [diff] [blame] | 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 { |
Kevin Rocard | 6891d7e | 2017-12-14 18:39:39 -0800 | [diff] [blame] | 17 | name: "android.hardware.audio.common-util", |
Chih-Hung Hsieh | 3da5b01 | 2017-09-29 15:15:48 -0700 | [diff] [blame] | 18 | defaults: ["hidl_defaults"], |
Kevin Rocard | 8bdafc1 | 2018-01-24 06:12:44 +0000 | [diff] [blame] | 19 | vendor_available: true, |
Steven Moreland | c2ed729 | 2017-04-12 22:45:01 -0700 | [diff] [blame] | 20 | srcs: [ |
| 21 | "EffectMap.cpp", |
Steven Moreland | c2ed729 | 2017-04-12 22:45:01 -0700 | [diff] [blame] | 22 | ], |
| 23 | |
Kevin Rocard | 6891d7e | 2017-12-14 18:39:39 -0800 | [diff] [blame] | 24 | export_include_dirs: ["include"], |
Steven Moreland | c2ed729 | 2017-04-12 22:45:01 -0700 | [diff] [blame] | 25 | |
| 26 | shared_libs: [ |
Steven Moreland | a8a9cc6 | 2017-04-17 14:35:45 -0700 | [diff] [blame] | 27 | "liblog", |
Steven Moreland | c2ed729 | 2017-04-12 22:45:01 -0700 | [diff] [blame] | 28 | "libutils", |
| 29 | "libhidlbase", |
Steven Moreland | c2ed729 | 2017-04-12 22:45:01 -0700 | [diff] [blame] | 30 | ], |
| 31 | |
Steven Moreland | a8a9cc6 | 2017-04-17 14:35:45 -0700 | [diff] [blame] | 32 | header_libs: [ |
Kevin Rocard | b3f36c0 | 2018-02-26 18:45:07 -0800 | [diff] [blame] | 33 | "android.hardware.audio.common.util@all-versions", |
Kevin Rocard | 8bdafc1 | 2018-01-24 06:12:44 +0000 | [diff] [blame] | 34 | "libaudio_system_headers", |
Steven Moreland | a8a9cc6 | 2017-04-17 14:35:45 -0700 | [diff] [blame] | 35 | "libhardware_headers", |
| 36 | ], |
Kevin Rocard | b3f36c0 | 2018-02-26 18:45:07 -0800 | [diff] [blame] | 37 | export_header_lib_headers: [ |
| 38 | "android.hardware.audio.common.util@all-versions", |
| 39 | ] |
Steven Moreland | c2ed729 | 2017-04-12 22:45:01 -0700 | [diff] [blame] | 40 | } |
Kevin Rocard | 96d2cd9 | 2018-11-14 16:22:07 -0800 | [diff] [blame] | 41 | |
| 42 | cc_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 | |
| 77 | cc_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 | } |