1// 2// Copyright (C) 2020 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_applicable_licenses: ["external_oboe_license"], 19} 20 21// Added automatically by a large-scale-change that took the approach of 22// 'apply every license found to every target'. While this makes sure we respect 23// every license restriction, it may not be entirely correct. 24// 25// e.g. GPL in an MIT project might only apply to the contrib/ directory. 26// 27// Please consider splitting the single license below into multiple licenses, 28// taking care not to lose any license_kind information, and overriding the 29// default license using the 'licenses: [...]' property on targets as needed. 30// 31// For unused files, consider creating a 'fileGroup' with "//visibility:private" 32// to attach the license to, and including a comment whether the files may be 33// used in the current project. 34// 35// large-scale-change included anything that looked like it might be a license 36// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. 37// 38// Please consider removing redundant or irrelevant files from 'license_text:'. 39// See: http://go/android-license-faq 40license { 41 name: "external_oboe_license", 42 visibility: [":__subpackages__"], 43 license_kinds: [ 44 "SPDX-license-identifier-Apache-2.0", 45 "SPDX-license-identifier-GPL-2.0", 46 "SPDX-license-identifier-MIT", 47 ], 48 license_text: [ 49 "LICENSE", 50 "NOTICE", 51 ], 52} 53 54cc_library_static { 55 name: "oboe", 56 srcs: [ 57 "src/aaudio/AAudioLoader.cpp", 58 "src/aaudio/AudioStreamAAudio.cpp", 59 "src/common/AudioSourceCaller.cpp", 60 "src/common/AudioStream.cpp", 61 "src/common/AudioStreamBuilder.cpp", 62 "src/common/DataConversionFlowGraph.cpp", 63 "src/common/FilterAudioStream.cpp", 64 "src/common/FixedBlockAdapter.cpp", 65 "src/common/FixedBlockReader.cpp", 66 "src/common/FixedBlockWriter.cpp", 67 "src/common/LatencyTuner.cpp", 68 "src/common/SourceFloatCaller.cpp", 69 "src/common/SourceI16Caller.cpp", 70 "src/common/Utilities.cpp", 71 "src/common/QuirksManager.cpp", 72 "src/fifo/FifoBuffer.cpp", 73 "src/fifo/FifoController.cpp", 74 "src/fifo/FifoControllerBase.cpp", 75 "src/fifo/FifoControllerIndirect.cpp", 76 "src/flowgraph/FlowGraphNode.cpp", 77 "src/flowgraph/ChannelCountConverter.cpp", 78 "src/flowgraph/ClipToRange.cpp", 79 "src/flowgraph/ManyToMultiConverter.cpp", 80 "src/flowgraph/MonoToMultiConverter.cpp", 81 "src/flowgraph/MultiToMonoConverter.cpp", 82 "src/flowgraph/RampLinear.cpp", 83 "src/flowgraph/SampleRateConverter.cpp", 84 "src/flowgraph/SinkFloat.cpp", 85 "src/flowgraph/SinkI16.cpp", 86 "src/flowgraph/SinkI24.cpp", 87 "src/flowgraph/SourceFloat.cpp", 88 "src/flowgraph/SourceI16.cpp", 89 "src/flowgraph/SourceI24.cpp", 90 "src/flowgraph/resampler/IntegerRatio.cpp", 91 "src/flowgraph/resampler/LinearResampler.cpp", 92 "src/flowgraph/resampler/MultiChannelResampler.cpp", 93 "src/flowgraph/resampler/PolyphaseResampler.cpp", 94 "src/flowgraph/resampler/PolyphaseResamplerMono.cpp", 95 "src/flowgraph/resampler/PolyphaseResamplerStereo.cpp", 96 "src/flowgraph/resampler/SincResampler.cpp", 97 "src/flowgraph/resampler/SincResamplerStereo.cpp", 98 "src/opensles/AudioInputStreamOpenSLES.cpp", 99 "src/opensles/AudioOutputStreamOpenSLES.cpp", 100 "src/opensles/AudioStreamBuffered.cpp", 101 "src/opensles/AudioStreamOpenSLES.cpp", 102 "src/opensles/EngineOpenSLES.cpp", 103 "src/opensles/OpenSLESUtilities.cpp", 104 "src/opensles/OutputMixerOpenSLES.cpp", 105 "src/common/StabilizedCallback.cpp", 106 "src/common/Trace.cpp", 107 "src/common/Version.cpp", 108 ], 109 header_libs: ["jni_headers"], 110 include_dirs: [ 111 "external/oboe/include", 112 "external/oboe/src", 113 "frameworks/wilhelm/include", 114 "frameworks/av/media/libaaudio/include", 115 ], 116 cflags: [ 117 "-std=c++14", 118 "-Wall", 119 "-Wextra-semi", 120 "-Wshadow", 121 "-Wshadow-field", 122 "-Wno-unused-parameter", 123 "-Wno-deprecated-declarations", 124 "-Ofast", 125 "-DOBOE_NO_INCLUDE_AAUDIO", 126 ], 127 sdk_version: "current", 128 stl: "libc++_static", 129} 130