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 | ], |
| 13 | export_include_dirs: ["."], |
| 14 | header_libs: ["libaaudio_headers"], |
| 15 | export_header_lib_headers: ["libaaudio_headers"], |
| 16 | |
| 17 | srcs: [ |
| 18 | "core/AudioStream.cpp", |
| 19 | "core/AudioStreamBuilder.cpp", |
| 20 | "core/AAudioAudio.cpp", |
| 21 | "core/AAudioStreamParameters.cpp", |
| 22 | "legacy/AudioStreamLegacy.cpp", |
| 23 | "legacy/AudioStreamRecord.cpp", |
| 24 | "legacy/AudioStreamTrack.cpp", |
| 25 | "utility/AAudioUtilities.cpp", |
| 26 | "utility/FixedBlockAdapter.cpp", |
| 27 | "utility/FixedBlockReader.cpp", |
| 28 | "utility/FixedBlockWriter.cpp", |
| 29 | "utility/LinearRamp.cpp", |
| 30 | "fifo/FifoBuffer.cpp", |
| 31 | "fifo/FifoControllerBase.cpp", |
| 32 | "client/AudioEndpoint.cpp", |
| 33 | "client/AudioStreamInternal.cpp", |
| 34 | "client/AudioStreamInternalCapture.cpp", |
| 35 | "client/AudioStreamInternalPlay.cpp", |
| 36 | "client/IsochronousClockModel.cpp", |
| 37 | "binding/AudioEndpointParcelable.cpp", |
| 38 | "binding/AAudioBinderClient.cpp", |
| 39 | "binding/AAudioStreamRequest.cpp", |
| 40 | "binding/AAudioStreamConfiguration.cpp", |
| 41 | "binding/IAAudioClient.cpp", |
| 42 | "binding/IAAudioService.cpp", |
| 43 | "binding/RingBufferParcelable.cpp", |
| 44 | "binding/SharedMemoryParcelable.cpp", |
| 45 | "binding/SharedRegionParcelable.cpp", |
Phil Burk | 64dce36 | 2018-03-28 15:30:39 -0700 | [diff] [blame^] | 46 | "flowgraph/AudioProcessorBase.cpp", |
| 47 | "flowgraph/ClipToRange.cpp", |
| 48 | "flowgraph/MonoToMultiConverter.cpp", |
| 49 | "flowgraph/RampLinear.cpp", |
| 50 | "flowgraph/SinkFloat.cpp", |
| 51 | "flowgraph/SinkI16.cpp", |
| 52 | "flowgraph/SinkI24.cpp", |
| 53 | "flowgraph/SourceFloat.cpp", |
| 54 | "flowgraph/SourceI16.cpp", |
| 55 | "flowgraph/SourceI24.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 56 | ], |
| 57 | |
| 58 | cflags: [ |
| 59 | "-Wno-unused-parameter", |
| 60 | "-Wall", |
| 61 | "-Werror", |
| 62 | |
| 63 | // By default, all symbols are hidden. |
| 64 | // "-fvisibility=hidden", |
| 65 | // AAUDIO_API is used to explicitly export a function or a variable as a visible symbol. |
| 66 | "-DAAUDIO_API=__attribute__((visibility(\"default\")))", |
| 67 | ], |
| 68 | |
| 69 | shared_libs: [ |
| 70 | "libaudioclient", |
Phil Burk | 3d786cb | 2018-04-09 11:58:09 -0700 | [diff] [blame] | 71 | "libaudioutils", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 72 | "liblog", |
| 73 | "libcutils", |
| 74 | "libutils", |
| 75 | "libbinder", |
| 76 | "libaudiomanager", |
| 77 | ], |
| 78 | } |