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