Bob Badour | 948e6aa | 2021-02-12 21:02:31 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_av_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_av_license"], |
| 8 | } |
| 9 | |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 10 | cc_library { |
| 11 | name: "libaaudio", |
| 12 | |
| 13 | local_include_dirs: [ |
| 14 | "binding", |
| 15 | "client", |
| 16 | "core", |
| 17 | "fifo", |
Phil Burk | 64dce36 | 2018-03-28 15:30:39 -0700 | [diff] [blame] | 18 | "flowgraph", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 19 | "legacy", |
| 20 | "utility", |
| 21 | ], |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 22 | header_libs: [ |
| 23 | "libaaudio_headers", |
| 24 | ], |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 25 | export_header_lib_headers: ["libaaudio_headers"], |
dimitry | 8e8a968 | 2019-06-04 15:14:02 +0200 | [diff] [blame] | 26 | version_script: "libaaudio.map.txt", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 27 | |
| 28 | srcs: [ |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 29 | "core/AAudioAudio.cpp", |
| 30 | ], |
| 31 | |
| 32 | cflags: [ |
| 33 | "-Wno-unused-parameter", |
| 34 | "-Wall", |
| 35 | "-Werror", |
| 36 | |
| 37 | // By default, all symbols are hidden. |
| 38 | // "-fvisibility=hidden", |
| 39 | // AAUDIO_API is used to explicitly export a function or a variable as a visible symbol. |
| 40 | "-DAAUDIO_API=__attribute__((visibility(\"default\")))", |
| 41 | ], |
| 42 | |
| 43 | shared_libs: [ |
| 44 | "libaaudio_internal", |
| 45 | "libaudioclient", |
| 46 | "libaudioutils", |
Phil Burk | a987670 | 2020-04-20 18:16:15 -0700 | [diff] [blame] | 47 | "libmedia_helper", |
| 48 | "libmediametrics", |
| 49 | "libmediautils", |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 50 | "liblog", |
| 51 | "libcutils", |
| 52 | "libutils", |
| 53 | "libbinder", |
| 54 | ], |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame] | 55 | |
| 56 | sanitize: { |
| 57 | integer_overflow: true, |
| 58 | misc_undefined: ["bounds"], |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame] | 59 | }, |
| 60 | |
Zach Johnson | 99c47ff | 2019-12-02 15:28:34 -0800 | [diff] [blame] | 61 | stubs: { |
| 62 | symbol_file: "libaaudio.map.txt", |
| 63 | versions: ["28"], |
| 64 | }, |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 65 | } |
| 66 | |
| 67 | cc_library { |
| 68 | name: "libaaudio_internal", |
| 69 | |
| 70 | local_include_dirs: [ |
| 71 | "binding", |
| 72 | "client", |
| 73 | "core", |
| 74 | "fifo", |
| 75 | "legacy", |
| 76 | "utility", |
| 77 | ], |
| 78 | |
| 79 | export_include_dirs: ["."], |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 80 | header_libs: [ |
| 81 | "libaaudio_headers", |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame] | 82 | "libmedia_headers", |
Marco Nelissen | 7c96ea7 | 2020-01-10 15:46:22 -0800 | [diff] [blame] | 83 | "libmediametrics_headers", |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 84 | ], |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 85 | export_header_lib_headers: ["libaaudio_headers"], |
| 86 | |
| 87 | shared_libs: [ |
| 88 | "libaudioclient", |
| 89 | "libaudioutils", |
Phil Burk | a987670 | 2020-04-20 18:16:15 -0700 | [diff] [blame] | 90 | "libmedia_helper", |
| 91 | "libmediametrics", |
| 92 | "libmediautils", |
dimitry | d81a84a | 2019-07-17 13:55:16 +0200 | [diff] [blame] | 93 | "liblog", |
| 94 | "libcutils", |
| 95 | "libutils", |
| 96 | "libbinder", |
| 97 | ], |
| 98 | |
| 99 | cflags: [ |
| 100 | "-Wno-unused-parameter", |
| 101 | "-Wall", |
| 102 | "-Werror", |
| 103 | ], |
| 104 | |
| 105 | srcs: [ |
| 106 | "core/AudioGlobal.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 107 | "core/AudioStream.cpp", |
| 108 | "core/AudioStreamBuilder.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 109 | "core/AAudioStreamParameters.cpp", |
| 110 | "legacy/AudioStreamLegacy.cpp", |
| 111 | "legacy/AudioStreamRecord.cpp", |
| 112 | "legacy/AudioStreamTrack.cpp", |
| 113 | "utility/AAudioUtilities.cpp", |
| 114 | "utility/FixedBlockAdapter.cpp", |
| 115 | "utility/FixedBlockReader.cpp", |
| 116 | "utility/FixedBlockWriter.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 117 | "fifo/FifoBuffer.cpp", |
| 118 | "fifo/FifoControllerBase.cpp", |
Phil Burk | 0127c1b | 2018-03-29 13:48:06 -0700 | [diff] [blame] | 119 | "client/AAudioFlowGraph.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 120 | "client/AudioEndpoint.cpp", |
| 121 | "client/AudioStreamInternal.cpp", |
| 122 | "client/AudioStreamInternalCapture.cpp", |
| 123 | "client/AudioStreamInternalPlay.cpp", |
| 124 | "client/IsochronousClockModel.cpp", |
| 125 | "binding/AudioEndpointParcelable.cpp", |
| 126 | "binding/AAudioBinderClient.cpp", |
| 127 | "binding/AAudioStreamRequest.cpp", |
| 128 | "binding/AAudioStreamConfiguration.cpp", |
| 129 | "binding/IAAudioClient.cpp", |
| 130 | "binding/IAAudioService.cpp", |
| 131 | "binding/RingBufferParcelable.cpp", |
| 132 | "binding/SharedMemoryParcelable.cpp", |
| 133 | "binding/SharedRegionParcelable.cpp", |
Phil Burk | 64dce36 | 2018-03-28 15:30:39 -0700 | [diff] [blame] | 134 | "flowgraph/AudioProcessorBase.cpp", |
| 135 | "flowgraph/ClipToRange.cpp", |
| 136 | "flowgraph/MonoToMultiConverter.cpp", |
| 137 | "flowgraph/RampLinear.cpp", |
| 138 | "flowgraph/SinkFloat.cpp", |
| 139 | "flowgraph/SinkI16.cpp", |
| 140 | "flowgraph/SinkI24.cpp", |
| 141 | "flowgraph/SourceFloat.cpp", |
| 142 | "flowgraph/SourceI16.cpp", |
| 143 | "flowgraph/SourceI24.cpp", |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 144 | ], |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame] | 145 | sanitize: { |
| 146 | integer_overflow: true, |
| 147 | misc_undefined: ["bounds"], |
Cindy Zhou | 30ed594 | 2019-10-30 13:24:37 -0700 | [diff] [blame] | 148 | }, |
Dan Willemsen | b44c69e | 2017-10-23 17:15:03 -0700 | [diff] [blame] | 149 | } |