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", |
| 9 | "legacy", |
| 10 | "utility", |
| 11 | ], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 12 | header_libs: ["libaaudio_headers"], |
| 13 | export_header_lib_headers: ["libaaudio_headers"], |
| 14 | |
| 15 | srcs: [ |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame^] | 16 | "core/AAudioAudio.cpp", |
| 17 | ], |
| 18 | |
| 19 | cflags: [ |
| 20 | "-Wno-unused-parameter", |
| 21 | "-Wall", |
| 22 | "-Werror", |
| 23 | |
| 24 | // By default, all symbols are hidden. |
| 25 | // "-fvisibility=hidden", |
| 26 | // AAUDIO_API is used to explicitly export a function or a variable as a visible symbol. |
| 27 | "-DAAUDIO_API=__attribute__((visibility(\"default\")))", |
| 28 | ], |
| 29 | |
| 30 | shared_libs: [ |
| 31 | "libaaudio_internal", |
| 32 | "libaudioclient", |
| 33 | "libaudioutils", |
| 34 | "liblog", |
| 35 | "libcutils", |
| 36 | "libutils", |
| 37 | "libbinder", |
| 38 | ], |
| 39 | } |
| 40 | |
| 41 | cc_library { |
| 42 | name: "libaaudio_internal", |
| 43 | |
| 44 | local_include_dirs: [ |
| 45 | "binding", |
| 46 | "client", |
| 47 | "core", |
| 48 | "fifo", |
| 49 | "legacy", |
| 50 | "utility", |
| 51 | ], |
| 52 | |
| 53 | export_include_dirs: ["."], |
| 54 | header_libs: ["libaaudio_headers"], |
| 55 | export_header_lib_headers: ["libaaudio_headers"], |
| 56 | |
| 57 | shared_libs: [ |
| 58 | "libaudioclient", |
| 59 | "libaudioutils", |
| 60 | "liblog", |
| 61 | "libcutils", |
| 62 | "libutils", |
| 63 | "libbinder", |
| 64 | ], |
| 65 | |
| 66 | cflags: [ |
| 67 | "-Wno-unused-parameter", |
| 68 | "-Wall", |
| 69 | "-Werror", |
| 70 | ], |
| 71 | |
| 72 | srcs: [ |
| 73 | "core/AudioGlobal.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 74 | "core/AudioStream.cpp", |
| 75 | "core/AudioStreamBuilder.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 76 | "core/AAudioStreamParameters.cpp", |
| 77 | "legacy/AudioStreamLegacy.cpp", |
| 78 | "legacy/AudioStreamRecord.cpp", |
| 79 | "legacy/AudioStreamTrack.cpp", |
| 80 | "utility/AAudioUtilities.cpp", |
| 81 | "utility/FixedBlockAdapter.cpp", |
| 82 | "utility/FixedBlockReader.cpp", |
| 83 | "utility/FixedBlockWriter.cpp", |
| 84 | "utility/LinearRamp.cpp", |
| 85 | "fifo/FifoBuffer.cpp", |
| 86 | "fifo/FifoControllerBase.cpp", |
| 87 | "client/AudioEndpoint.cpp", |
| 88 | "client/AudioStreamInternal.cpp", |
| 89 | "client/AudioStreamInternalCapture.cpp", |
| 90 | "client/AudioStreamInternalPlay.cpp", |
| 91 | "client/IsochronousClockModel.cpp", |
| 92 | "binding/AudioEndpointParcelable.cpp", |
| 93 | "binding/AAudioBinderClient.cpp", |
| 94 | "binding/AAudioStreamRequest.cpp", |
| 95 | "binding/AAudioStreamConfiguration.cpp", |
| 96 | "binding/IAAudioClient.cpp", |
| 97 | "binding/IAAudioService.cpp", |
| 98 | "binding/RingBufferParcelable.cpp", |
| 99 | "binding/SharedMemoryParcelable.cpp", |
| 100 | "binding/SharedRegionParcelable.cpp", |
| 101 | ], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 102 | } |