Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 1 | cc_library { |
| 2 | name: "libaaudio", |
| 3 | |
| 4 | local_include_dirs: [ |
| 5 | "binding", |
| 6 | "client", |
| 7 | "core", |
| 8 | "fifo", |
Phil Burk | 64dce36 | 2018-03-28 15:30:39 -0700 | [diff] [blame] | 9 | "flowgraph", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 10 | "legacy", |
| 11 | "utility", |
| 12 | ], |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 13 | header_libs: [ |
| 14 | "libaaudio_headers", |
| 15 | ], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 16 | export_header_lib_headers: ["libaaudio_headers"], |
dimitry | 8e8a968 | 2019-06-04 15:14:02 +0200 | [diff] [blame] | 17 | version_script: "libaaudio.map.txt", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 18 | |
| 19 | srcs: [ |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 20 | "core/AAudioAudio.cpp", |
| 21 | ], |
| 22 | |
| 23 | cflags: [ |
| 24 | "-Wno-unused-parameter", |
| 25 | "-Wall", |
| 26 | "-Werror", |
| 27 | |
| 28 | // By default, all symbols are hidden. |
| 29 | // "-fvisibility=hidden", |
| 30 | // AAUDIO_API is used to explicitly export a function or a variable as a visible symbol. |
| 31 | "-DAAUDIO_API=__attribute__((visibility(\"default\")))", |
| 32 | ], |
| 33 | |
| 34 | shared_libs: [ |
| 35 | "libaaudio_internal", |
| 36 | "libaudioclient", |
| 37 | "libaudioutils", |
Phil Burk | a987670 | 2020-04-20 18:16:15 -0700 | [diff] [blame] | 38 | "libmedia_helper", |
| 39 | "libmediametrics", |
| 40 | "libmediautils", |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 41 | "liblog", |
| 42 | "libcutils", |
| 43 | "libutils", |
| 44 | "libbinder", |
| 45 | ], |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame] | 46 | |
| 47 | sanitize: { |
| 48 | integer_overflow: true, |
| 49 | misc_undefined: ["bounds"], |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame] | 50 | }, |
| 51 | |
Zach Johnson | 99c47ff | 2019-12-02 15:28:34 -0800 | [diff] [blame] | 52 | stubs: { |
| 53 | symbol_file: "libaaudio.map.txt", |
| 54 | versions: ["28"], |
| 55 | }, |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 56 | } |
| 57 | |
| 58 | cc_library { |
| 59 | name: "libaaudio_internal", |
| 60 | |
| 61 | local_include_dirs: [ |
| 62 | "binding", |
| 63 | "client", |
| 64 | "core", |
| 65 | "fifo", |
| 66 | "legacy", |
| 67 | "utility", |
| 68 | ], |
| 69 | |
| 70 | export_include_dirs: ["."], |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 71 | header_libs: [ |
| 72 | "libaaudio_headers", |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame] | 73 | "libmedia_headers", |
Marco Nelissen | 7c96ea7 | 2020-01-10 15:46:22 -0800 | [diff] [blame] | 74 | "libmediametrics_headers", |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 75 | ], |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 76 | export_header_lib_headers: ["libaaudio_headers"], |
| 77 | |
| 78 | shared_libs: [ |
| 79 | "libaudioclient", |
| 80 | "libaudioutils", |
Phil Burk | a987670 | 2020-04-20 18:16:15 -0700 | [diff] [blame] | 81 | "libmedia_helper", |
| 82 | "libmediametrics", |
| 83 | "libmediautils", |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 84 | "liblog", |
| 85 | "libcutils", |
| 86 | "libutils", |
| 87 | "libbinder", |
Ytai Ben-Tsvi | 0412f73 | 2020-08-17 14:43:36 -0700 | [diff] [blame^] | 88 | "aaudio-aidl-cpp", |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 89 | ], |
| 90 | |
| 91 | cflags: [ |
| 92 | "-Wno-unused-parameter", |
| 93 | "-Wall", |
| 94 | "-Werror", |
| 95 | ], |
| 96 | |
| 97 | srcs: [ |
| 98 | "core/AudioGlobal.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 99 | "core/AudioStream.cpp", |
| 100 | "core/AudioStreamBuilder.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 101 | "core/AAudioStreamParameters.cpp", |
| 102 | "legacy/AudioStreamLegacy.cpp", |
| 103 | "legacy/AudioStreamRecord.cpp", |
| 104 | "legacy/AudioStreamTrack.cpp", |
| 105 | "utility/AAudioUtilities.cpp", |
| 106 | "utility/FixedBlockAdapter.cpp", |
| 107 | "utility/FixedBlockReader.cpp", |
| 108 | "utility/FixedBlockWriter.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 109 | "fifo/FifoBuffer.cpp", |
| 110 | "fifo/FifoControllerBase.cpp", |
Phil Burk | 0127c1b | 2018-03-29 13:48:06 -0700 | [diff] [blame] | 111 | "client/AAudioFlowGraph.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 112 | "client/AudioEndpoint.cpp", |
| 113 | "client/AudioStreamInternal.cpp", |
| 114 | "client/AudioStreamInternalCapture.cpp", |
| 115 | "client/AudioStreamInternalPlay.cpp", |
| 116 | "client/IsochronousClockModel.cpp", |
| 117 | "binding/AudioEndpointParcelable.cpp", |
| 118 | "binding/AAudioBinderClient.cpp", |
| 119 | "binding/AAudioStreamRequest.cpp", |
| 120 | "binding/AAudioStreamConfiguration.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 121 | "binding/IAAudioService.cpp", |
| 122 | "binding/RingBufferParcelable.cpp", |
| 123 | "binding/SharedMemoryParcelable.cpp", |
| 124 | "binding/SharedRegionParcelable.cpp", |
Phil Burk | 64dce36 | 2018-03-28 15:30:39 -0700 | [diff] [blame] | 125 | "flowgraph/AudioProcessorBase.cpp", |
| 126 | "flowgraph/ClipToRange.cpp", |
| 127 | "flowgraph/MonoToMultiConverter.cpp", |
| 128 | "flowgraph/RampLinear.cpp", |
| 129 | "flowgraph/SinkFloat.cpp", |
| 130 | "flowgraph/SinkI16.cpp", |
| 131 | "flowgraph/SinkI24.cpp", |
| 132 | "flowgraph/SourceFloat.cpp", |
| 133 | "flowgraph/SourceI16.cpp", |
| 134 | "flowgraph/SourceI24.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 135 | ], |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame] | 136 | sanitize: { |
| 137 | integer_overflow: true, |
| 138 | misc_undefined: ["bounds"], |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame] | 139 | }, |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 140 | } |
Ytai Ben-Tsvi | 0412f73 | 2020-08-17 14:43:36 -0700 | [diff] [blame^] | 141 | |
| 142 | aidl_interface { |
| 143 | name: "aaudio-aidl", |
| 144 | unstable: true, |
| 145 | local_include_dir: "binding/aidl", |
| 146 | srcs: [ |
| 147 | "binding/aidl/aaudio/IAAudioClient.aidl", |
| 148 | ], |
| 149 | } |