Steven Moreland | 25a9e55 | 2017-04-17 14:30:39 -0700 | [diff] [blame] | 1 | cc_library_headers { |
| 2 | name: "libaudioclient_headers", |
| 3 | vendor_available: true, |
jiabin | 4381040 | 2019-10-24 14:58:31 -0700 | [diff] [blame] | 4 | header_libs: [ |
| 5 | "libaudiofoundation_headers", |
| 6 | ], |
| 7 | export_include_dirs: [ |
| 8 | "include", |
| 9 | ], |
| 10 | export_header_lib_headers: [ |
| 11 | "libaudiofoundation_headers", |
| 12 | ], |
Steven Moreland | 25a9e55 | 2017-04-17 14:30:39 -0700 | [diff] [blame] | 13 | } |
| 14 | |
Jack He | d92d34e | 2016-12-08 15:44:14 -0800 | [diff] [blame] | 15 | cc_library_shared { |
François Gaffie | d0ba9ed | 2018-11-05 11:50:42 +0100 | [diff] [blame] | 16 | name: "libaudiopolicy", |
| 17 | srcs: [ |
| 18 | "AudioAttributes.cpp", |
| 19 | "AudioPolicy.cpp", |
| 20 | "AudioProductStrategy.cpp", |
François Gaffie | 4b2018b | 2018-11-07 11:18:59 +0100 | [diff] [blame] | 21 | "AudioVolumeGroup.cpp", |
François Gaffie | d0ba9ed | 2018-11-05 11:50:42 +0100 | [diff] [blame] | 22 | ], |
| 23 | shared_libs: [ |
Ytai Ben-Tsvi | 987d12c | 2020-03-24 17:35:44 -0700 | [diff] [blame] | 24 | "capture_state_listener-aidl-cpp", |
jiabin | 05b5edd | 2019-11-04 14:10:42 -0800 | [diff] [blame] | 25 | "libaudiofoundation", |
François Gaffie | d0ba9ed | 2018-11-05 11:50:42 +0100 | [diff] [blame] | 26 | "libaudioutils", |
| 27 | "libbinder", |
| 28 | "libcutils", |
| 29 | "liblog", |
| 30 | "libutils", |
| 31 | ], |
| 32 | cflags: [ |
| 33 | "-Werror", |
| 34 | "-Wall", |
| 35 | ], |
| 36 | include_dirs: ["system/media/audio_utils/include"], |
| 37 | export_include_dirs: ["include"], |
Ytai Ben-Tsvi | 987d12c | 2020-03-24 17:35:44 -0700 | [diff] [blame] | 38 | export_shared_lib_headers: [ |
| 39 | "capture_state_listener-aidl-cpp", |
| 40 | ], |
François Gaffie | d0ba9ed | 2018-11-05 11:50:42 +0100 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | cc_library_shared { |
Jack He | d92d34e | 2016-12-08 15:44:14 -0800 | [diff] [blame] | 44 | name: "libaudioclient", |
Ivan Lozano | ff6900d | 2017-08-01 15:47:38 -0700 | [diff] [blame] | 45 | |
| 46 | aidl: { |
| 47 | export_aidl_headers: true, |
| 48 | local_include_dirs: ["aidl"], |
| 49 | include_dirs: [ |
| 50 | "frameworks/av/media/libaudioclient/aidl", |
| 51 | ], |
| 52 | }, |
| 53 | |
Jack He | d92d34e | 2016-12-08 15:44:14 -0800 | [diff] [blame] | 54 | srcs: [ |
Ivan Lozano | ff6900d | 2017-08-01 15:47:38 -0700 | [diff] [blame] | 55 | // AIDL files for audioclient interfaces |
| 56 | // The headers for these interfaces will be available to any modules that |
| 57 | // include libaudioclient, at the path "aidl/package/path/BnFoo.h" |
jiabin | f6eb4c3 | 2020-02-25 14:06:25 -0800 | [diff] [blame] | 58 | ":libaudioclient_aidl_callback", |
Dan Willemsen | faeab0f | 2018-09-14 21:17:46 -0700 | [diff] [blame] | 59 | ":libaudioclient_aidl_private", |
Colin Cross | 6bf135b | 2017-11-14 13:05:37 -0800 | [diff] [blame] | 60 | ":libaudioclient_aidl", |
Ivan Lozano | ff6900d | 2017-08-01 15:47:38 -0700 | [diff] [blame] | 61 | |
Jack He | d92d34e | 2016-12-08 15:44:14 -0800 | [diff] [blame] | 62 | "AudioEffect.cpp", |
Jack He | d92d34e | 2016-12-08 15:44:14 -0800 | [diff] [blame] | 63 | "AudioRecord.cpp", |
| 64 | "AudioSystem.cpp", |
| 65 | "AudioTrack.cpp", |
| 66 | "AudioTrackShared.cpp", |
| 67 | "IAudioFlinger.cpp", |
| 68 | "IAudioFlingerClient.cpp", |
| 69 | "IAudioPolicyService.cpp", |
| 70 | "IAudioPolicyServiceClient.cpp", |
Jack He | d92d34e | 2016-12-08 15:44:14 -0800 | [diff] [blame] | 71 | "IAudioTrack.cpp", |
| 72 | "IEffect.cpp", |
| 73 | "IEffectClient.cpp", |
| 74 | "ToneGenerator.cpp", |
Eric Laurent | b532322 | 2017-05-31 15:01:56 -0700 | [diff] [blame] | 75 | "PlayerBase.cpp", |
Mikhail Naganov | 2996f67 | 2019-04-18 12:29:59 -0700 | [diff] [blame] | 76 | "RecordingActivityTracker.cpp", |
Eric Laurent | b532322 | 2017-05-31 15:01:56 -0700 | [diff] [blame] | 77 | "TrackPlayerBase.cpp", |
Jack He | d92d34e | 2016-12-08 15:44:14 -0800 | [diff] [blame] | 78 | ], |
| 79 | shared_libs: [ |
Ytai Ben-Tsvi | 85093d5 | 2020-03-26 09:41:15 -0700 | [diff] [blame^] | 80 | "capture_state_listener-aidl-cpp", |
jiabin | 4381040 | 2019-10-24 14:58:31 -0700 | [diff] [blame] | 81 | "libaudiofoundation", |
Kevin Rocard | 07be14f | 2018-01-24 06:14:03 +0000 | [diff] [blame] | 82 | "libaudioutils", |
François Gaffie | d0ba9ed | 2018-11-05 11:50:42 +0100 | [diff] [blame] | 83 | "libaudiopolicy", |
Eric Laurent | b532322 | 2017-05-31 15:01:56 -0700 | [diff] [blame] | 84 | "libaudiomanager", |
Eric Tan | ace588c | 2018-09-12 11:44:43 -0700 | [diff] [blame] | 85 | "libbinder", |
| 86 | "libcutils", |
| 87 | "libdl", |
| 88 | "liblog", |
Ray Essick | ed30470 | 2017-12-12 14:00:57 -0800 | [diff] [blame] | 89 | "libmedia_helper", |
| 90 | "libmediametrics", |
Andy Hung | 4ef19fa | 2018-05-15 19:35:29 -0700 | [diff] [blame] | 91 | "libmediautils", |
Eric Tan | ace588c | 2018-09-12 11:44:43 -0700 | [diff] [blame] | 92 | "libnblog", |
Suren Baghdasaryan | 7435e7d | 2018-12-19 17:09:28 -0800 | [diff] [blame] | 93 | "libprocessgroup", |
Eric Tan | ace588c | 2018-09-12 11:44:43 -0700 | [diff] [blame] | 94 | "libutils", |
jiabin | bf6b0ec | 2019-02-12 12:30:12 -0800 | [diff] [blame] | 95 | "libvibrator", |
Jack He | d92d34e | 2016-12-08 15:44:14 -0800 | [diff] [blame] | 96 | ], |
| 97 | export_shared_lib_headers: ["libbinder"], |
Steven Moreland | 25a9e55 | 2017-04-17 14:30:39 -0700 | [diff] [blame] | 98 | |
Marco Nelissen | a51151a | 2020-01-07 13:37:47 -0800 | [diff] [blame] | 99 | include_dirs: [ |
| 100 | "frameworks/av/media/libnbaio/include_mono/", |
| 101 | ], |
| 102 | local_include_dirs: [ |
| 103 | "include/media", "aidl" |
| 104 | ], |
Chih-Hung Hsieh | ffe3558 | 2018-09-13 13:59:28 -0700 | [diff] [blame] | 105 | header_libs: [ |
| 106 | "libaudioclient_headers", |
| 107 | "libbase_headers", |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 108 | "libmedia_headers", |
Chih-Hung Hsieh | ffe3558 | 2018-09-13 13:59:28 -0700 | [diff] [blame] | 109 | ], |
Steven Moreland | 25a9e55 | 2017-04-17 14:30:39 -0700 | [diff] [blame] | 110 | export_header_lib_headers: ["libaudioclient_headers"], |
| 111 | |
Jack He | d92d34e | 2016-12-08 15:44:14 -0800 | [diff] [blame] | 112 | // for memory heap analysis |
| 113 | static_libs: [ |
| 114 | "libc_malloc_debug_backtrace", |
Jack He | d92d34e | 2016-12-08 15:44:14 -0800 | [diff] [blame] | 115 | ], |
| 116 | cflags: [ |
Steven Moreland | 25a9e55 | 2017-04-17 14:30:39 -0700 | [diff] [blame] | 117 | "-Wall", |
Jack He | d92d34e | 2016-12-08 15:44:14 -0800 | [diff] [blame] | 118 | "-Werror", |
| 119 | "-Wno-error=deprecated-declarations", |
Jack He | d92d34e | 2016-12-08 15:44:14 -0800 | [diff] [blame] | 120 | ], |
| 121 | sanitize: { |
| 122 | misc_undefined : [ |
| 123 | "unsigned-integer-overflow", |
| 124 | "signed-integer-overflow", |
| 125 | ], |
| 126 | }, |
| 127 | } |
Colin Cross | 6bf135b | 2017-11-14 13:05:37 -0800 | [diff] [blame] | 128 | |
| 129 | // AIDL interface between libaudioclient and framework.jar |
| 130 | filegroup { |
| 131 | name: "libaudioclient_aidl", |
| 132 | srcs: [ |
| 133 | "aidl/android/media/IPlayer.aidl", |
| 134 | ], |
Dan Willemsen | faeab0f | 2018-09-14 21:17:46 -0700 | [diff] [blame] | 135 | path: "aidl", |
| 136 | } |
| 137 | |
| 138 | // Used to strip the "aidl/" from the path, so the build system can predict the |
| 139 | // output filename. |
| 140 | filegroup { |
| 141 | name: "libaudioclient_aidl_private", |
| 142 | srcs: [ |
| 143 | "aidl/android/media/IAudioRecord.aidl", |
| 144 | ], |
| 145 | path: "aidl", |
Colin Cross | 6bf135b | 2017-11-14 13:05:37 -0800 | [diff] [blame] | 146 | } |
jiabin | f6eb4c3 | 2020-02-25 14:06:25 -0800 | [diff] [blame] | 147 | |
| 148 | // AIDL interface for audio track callback |
| 149 | filegroup { |
| 150 | name: "libaudioclient_aidl_callback", |
| 151 | srcs: [ |
| 152 | "aidl/android/media/IAudioTrackCallback.aidl", |
| 153 | ], |
| 154 | path: "aidl", |
| 155 | } |
Ytai Ben-Tsvi | 987d12c | 2020-03-24 17:35:44 -0700 | [diff] [blame] | 156 | |
| 157 | aidl_interface { |
| 158 | name: "capture_state_listener-aidl", |
| 159 | local_include_dir: "aidl", |
| 160 | srcs: [ |
| 161 | "aidl/android/media/ICaptureStateListener.aidl", |
| 162 | ], |
| 163 | } |