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 | |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | cc_library { |
| 60 | name: "libaaudio_internal", |
| 61 | |
| 62 | local_include_dirs: [ |
| 63 | "binding", |
| 64 | "client", |
| 65 | "core", |
| 66 | "fifo", |
| 67 | "legacy", |
| 68 | "utility", |
| 69 | ], |
| 70 | |
| 71 | export_include_dirs: ["."], |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 72 | header_libs: [ |
| 73 | "libaaudio_headers", |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame^] | 74 | "libmedia_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", |
| 81 | "liblog", |
| 82 | "libcutils", |
| 83 | "libutils", |
| 84 | "libbinder", |
| 85 | ], |
| 86 | |
| 87 | cflags: [ |
| 88 | "-Wno-unused-parameter", |
| 89 | "-Wall", |
| 90 | "-Werror", |
| 91 | ], |
| 92 | |
| 93 | srcs: [ |
| 94 | "core/AudioGlobal.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 95 | "core/AudioStream.cpp", |
| 96 | "core/AudioStreamBuilder.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 97 | "core/AAudioStreamParameters.cpp", |
| 98 | "legacy/AudioStreamLegacy.cpp", |
| 99 | "legacy/AudioStreamRecord.cpp", |
| 100 | "legacy/AudioStreamTrack.cpp", |
| 101 | "utility/AAudioUtilities.cpp", |
| 102 | "utility/FixedBlockAdapter.cpp", |
| 103 | "utility/FixedBlockReader.cpp", |
| 104 | "utility/FixedBlockWriter.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 105 | "fifo/FifoBuffer.cpp", |
| 106 | "fifo/FifoControllerBase.cpp", |
Phil Burk | 0127c1b | 2018-03-29 13:48:06 -0700 | [diff] [blame] | 107 | "client/AAudioFlowGraph.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 108 | "client/AudioEndpoint.cpp", |
| 109 | "client/AudioStreamInternal.cpp", |
| 110 | "client/AudioStreamInternalCapture.cpp", |
| 111 | "client/AudioStreamInternalPlay.cpp", |
| 112 | "client/IsochronousClockModel.cpp", |
| 113 | "binding/AudioEndpointParcelable.cpp", |
| 114 | "binding/AAudioBinderClient.cpp", |
| 115 | "binding/AAudioStreamRequest.cpp", |
| 116 | "binding/AAudioStreamConfiguration.cpp", |
| 117 | "binding/IAAudioClient.cpp", |
| 118 | "binding/IAAudioService.cpp", |
| 119 | "binding/RingBufferParcelable.cpp", |
| 120 | "binding/SharedMemoryParcelable.cpp", |
| 121 | "binding/SharedRegionParcelable.cpp", |
Phil Burk | 64dce36 | 2018-03-28 15:30:39 -0700 | [diff] [blame] | 122 | "flowgraph/AudioProcessorBase.cpp", |
| 123 | "flowgraph/ClipToRange.cpp", |
| 124 | "flowgraph/MonoToMultiConverter.cpp", |
| 125 | "flowgraph/RampLinear.cpp", |
| 126 | "flowgraph/SinkFloat.cpp", |
| 127 | "flowgraph/SinkI16.cpp", |
| 128 | "flowgraph/SinkI24.cpp", |
| 129 | "flowgraph/SourceFloat.cpp", |
| 130 | "flowgraph/SourceI16.cpp", |
| 131 | "flowgraph/SourceI24.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 132 | ], |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame^] | 133 | sanitize: { |
| 134 | integer_overflow: true, |
| 135 | misc_undefined: ["bounds"], |
| 136 | diag: { |
| 137 | integer_overflow: true, |
| 138 | misc_undefined: ["bounds"], |
| 139 | no_recover: [ |
| 140 | "bounds", |
| 141 | "integer", |
| 142 | ], |
| 143 | }, |
| 144 | }, |
| 145 | |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 146 | } |