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 | ], |
| 43 | } |
| 44 | |
| 45 | cc_library { |
| 46 | name: "libaaudio_internal", |
| 47 | |
| 48 | local_include_dirs: [ |
| 49 | "binding", |
| 50 | "client", |
| 51 | "core", |
| 52 | "fifo", |
| 53 | "legacy", |
| 54 | "utility", |
| 55 | ], |
| 56 | |
| 57 | export_include_dirs: ["."], |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame^] | 58 | header_libs: [ |
| 59 | "libaaudio_headers", |
| 60 | "libmedia_headers" |
| 61 | ], |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 62 | export_header_lib_headers: ["libaaudio_headers"], |
| 63 | |
| 64 | shared_libs: [ |
| 65 | "libaudioclient", |
| 66 | "libaudioutils", |
| 67 | "liblog", |
| 68 | "libcutils", |
| 69 | "libutils", |
| 70 | "libbinder", |
| 71 | ], |
| 72 | |
| 73 | cflags: [ |
| 74 | "-Wno-unused-parameter", |
| 75 | "-Wall", |
| 76 | "-Werror", |
| 77 | ], |
| 78 | |
| 79 | srcs: [ |
| 80 | "core/AudioGlobal.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 81 | "core/AudioStream.cpp", |
| 82 | "core/AudioStreamBuilder.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 83 | "core/AAudioStreamParameters.cpp", |
| 84 | "legacy/AudioStreamLegacy.cpp", |
| 85 | "legacy/AudioStreamRecord.cpp", |
| 86 | "legacy/AudioStreamTrack.cpp", |
| 87 | "utility/AAudioUtilities.cpp", |
| 88 | "utility/FixedBlockAdapter.cpp", |
| 89 | "utility/FixedBlockReader.cpp", |
| 90 | "utility/FixedBlockWriter.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 91 | "fifo/FifoBuffer.cpp", |
| 92 | "fifo/FifoControllerBase.cpp", |
Phil Burk | 0127c1b | 2018-03-29 13:48:06 -0700 | [diff] [blame] | 93 | "client/AAudioFlowGraph.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 94 | "client/AudioEndpoint.cpp", |
| 95 | "client/AudioStreamInternal.cpp", |
| 96 | "client/AudioStreamInternalCapture.cpp", |
| 97 | "client/AudioStreamInternalPlay.cpp", |
| 98 | "client/IsochronousClockModel.cpp", |
| 99 | "binding/AudioEndpointParcelable.cpp", |
| 100 | "binding/AAudioBinderClient.cpp", |
| 101 | "binding/AAudioStreamRequest.cpp", |
| 102 | "binding/AAudioStreamConfiguration.cpp", |
| 103 | "binding/IAAudioClient.cpp", |
| 104 | "binding/IAAudioService.cpp", |
| 105 | "binding/RingBufferParcelable.cpp", |
| 106 | "binding/SharedMemoryParcelable.cpp", |
| 107 | "binding/SharedRegionParcelable.cpp", |
Phil Burk | 64dce36 | 2018-03-28 15:30:39 -0700 | [diff] [blame] | 108 | "flowgraph/AudioProcessorBase.cpp", |
| 109 | "flowgraph/ClipToRange.cpp", |
| 110 | "flowgraph/MonoToMultiConverter.cpp", |
| 111 | "flowgraph/RampLinear.cpp", |
| 112 | "flowgraph/SinkFloat.cpp", |
| 113 | "flowgraph/SinkI16.cpp", |
| 114 | "flowgraph/SinkI24.cpp", |
| 115 | "flowgraph/SourceFloat.cpp", |
| 116 | "flowgraph/SourceI16.cpp", |
| 117 | "flowgraph/SourceI24.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 118 | ], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 119 | } |