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", |
| 38 | "liblog", |
| 39 | "libcutils", |
| 40 | "libutils", |
| 41 | "libbinder", |
| 42 | ], |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame] | 43 | |
| 44 | sanitize: { |
| 45 | integer_overflow: true, |
| 46 | misc_undefined: ["bounds"], |
| 47 | diag: { |
| 48 | integer_overflow: true, |
| 49 | misc_undefined: ["bounds"], |
| 50 | no_recover: [ |
| 51 | "bounds", |
| 52 | "integer", |
| 53 | ], |
| 54 | }, |
| 55 | }, |
| 56 | |
Zach Johnson | 99c47ff | 2019-12-02 15:28:34 -0800 | [diff] [blame^] | 57 | stubs: { |
| 58 | symbol_file: "libaaudio.map.txt", |
| 59 | versions: ["28"], |
| 60 | }, |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | cc_library { |
| 64 | name: "libaaudio_internal", |
| 65 | |
| 66 | local_include_dirs: [ |
| 67 | "binding", |
| 68 | "client", |
| 69 | "core", |
| 70 | "fifo", |
| 71 | "legacy", |
| 72 | "utility", |
| 73 | ], |
| 74 | |
| 75 | export_include_dirs: ["."], |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 76 | header_libs: [ |
| 77 | "libaaudio_headers", |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame] | 78 | "libmedia_headers", |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 79 | ], |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 80 | export_header_lib_headers: ["libaaudio_headers"], |
| 81 | |
| 82 | shared_libs: [ |
| 83 | "libaudioclient", |
| 84 | "libaudioutils", |
| 85 | "liblog", |
| 86 | "libcutils", |
| 87 | "libutils", |
| 88 | "libbinder", |
| 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", |
| 121 | "binding/IAAudioClient.cpp", |
| 122 | "binding/IAAudioService.cpp", |
| 123 | "binding/RingBufferParcelable.cpp", |
| 124 | "binding/SharedMemoryParcelable.cpp", |
| 125 | "binding/SharedRegionParcelable.cpp", |
Phil Burk | 64dce36 | 2018-03-28 15:30:39 -0700 | [diff] [blame] | 126 | "flowgraph/AudioProcessorBase.cpp", |
| 127 | "flowgraph/ClipToRange.cpp", |
| 128 | "flowgraph/MonoToMultiConverter.cpp", |
| 129 | "flowgraph/RampLinear.cpp", |
| 130 | "flowgraph/SinkFloat.cpp", |
| 131 | "flowgraph/SinkI16.cpp", |
| 132 | "flowgraph/SinkI24.cpp", |
| 133 | "flowgraph/SourceFloat.cpp", |
| 134 | "flowgraph/SourceI16.cpp", |
| 135 | "flowgraph/SourceI24.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 136 | ], |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame] | 137 | sanitize: { |
| 138 | integer_overflow: true, |
| 139 | misc_undefined: ["bounds"], |
| 140 | diag: { |
| 141 | integer_overflow: true, |
| 142 | misc_undefined: ["bounds"], |
| 143 | no_recover: [ |
| 144 | "bounds", |
| 145 | "integer", |
| 146 | ], |
| 147 | }, |
| 148 | }, |
| 149 | |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 150 | } |