config("oboe_public") {
  include_dirs = [ "include" ]
}

source_set("oboe") {
  assert(target_os == "android")

  configs -= [ "//build:warnings" ]
  public_configs = [ ":oboe_public" ]

  sources = [
    "include/oboe/AudioStream.h",
    "include/oboe/AudioStreamBase.h",
    "include/oboe/AudioStreamBuilder.h",
    "include/oboe/AudioStreamCallback.h",
    "include/oboe/Definitions.h",
    "include/oboe/FifoBuffer.h",
    "include/oboe/FifoControllerBase.h",
    "include/oboe/LatencyTuner.h",
    "include/oboe/Oboe.h",
    "include/oboe/OboeExtensions.h",
    "include/oboe/ResultWithValue.h",
    "include/oboe/StabilizedCallback.h",
    "include/oboe/Utilities.h",
    "include/oboe/Version.h",
    "src/aaudio/AAudioExtensions.h",
    "src/aaudio/AAudioLoader.cpp",
    "src/aaudio/AAudioLoader.h",
    "src/aaudio/AudioStreamAAudio.cpp",
    "src/aaudio/AudioStreamAAudio.h",
    "src/common/AudioClock.h",
    "src/common/AudioSourceCaller.cpp",
    "src/common/AudioSourceCaller.h",
    "src/common/AudioStream.cpp",
    "src/common/AudioStreamBuilder.cpp",
    "src/common/DataConversionFlowGraph.cpp",
    "src/common/DataConversionFlowGraph.h",
    "src/common/FilterAudioStream.cpp",
    "src/common/FilterAudioStream.h",
    "src/common/FixedBlockAdapter.cpp",
    "src/common/FixedBlockAdapter.h",
    "src/common/FixedBlockReader.cpp",
    "src/common/FixedBlockReader.h",
    "src/common/FixedBlockWriter.cpp",
    "src/common/FixedBlockWriter.h",
    "src/common/LatencyTuner.cpp",
    "src/common/MonotonicCounter.h",
    "src/common/OboeDebug.h",
    "src/common/OboeExtensions.cpp",
    "src/common/QuirksManager.cpp",
    "src/common/QuirksManager.h",
    "src/common/SourceFloatCaller.cpp",
    "src/common/SourceFloatCaller.h",
    "src/common/SourceI16Caller.cpp",
    "src/common/SourceI16Caller.h",
    "src/common/SourceI24Caller.cpp",
    "src/common/SourceI24Caller.h",
    "src/common/SourceI32Caller.cpp",
    "src/common/SourceI32Caller.h",
    "src/common/StabilizedCallback.cpp",
    "src/common/Trace.cpp",
    "src/common/Trace.h",
    "src/common/Utilities.cpp",
    "src/common/Version.cpp",
    "src/fifo/FifoBuffer.cpp",
    "src/fifo/FifoController.cpp",
    "src/fifo/FifoController.h",
    "src/fifo/FifoControllerBase.cpp",
    "src/fifo/FifoControllerIndirect.cpp",
    "src/fifo/FifoControllerIndirect.h",
    "src/flowgraph/ChannelCountConverter.cpp",
    "src/flowgraph/ChannelCountConverter.h",
    "src/flowgraph/ClipToRange.cpp",
    "src/flowgraph/ClipToRange.h",
    "src/flowgraph/FlowGraphNode.cpp",
    "src/flowgraph/FlowGraphNode.h",
    "src/flowgraph/FlowgraphUtilities.h",
    "src/flowgraph/ManyToMultiConverter.cpp",
    "src/flowgraph/ManyToMultiConverter.h",
    "src/flowgraph/MonoBlend.cpp",
    "src/flowgraph/MonoBlend.h",
    "src/flowgraph/MonoToMultiConverter.cpp",
    "src/flowgraph/MonoToMultiConverter.h",
    "src/flowgraph/MultiToManyConverter.cpp",
    "src/flowgraph/MultiToManyConverter.h",
    "src/flowgraph/MultiToMonoConverter.cpp",
    "src/flowgraph/MultiToMonoConverter.h",
    "src/flowgraph/RampLinear.cpp",
    "src/flowgraph/RampLinear.h",
    "src/flowgraph/SampleRateConverter.cpp",
    "src/flowgraph/SampleRateConverter.h",
    "src/flowgraph/SinkFloat.cpp",
    "src/flowgraph/SinkFloat.h",
    "src/flowgraph/SinkI16.cpp",
    "src/flowgraph/SinkI16.h",
    "src/flowgraph/SinkI24.cpp",
    "src/flowgraph/SinkI24.h",
    "src/flowgraph/SinkI32.cpp",
    "src/flowgraph/SinkI32.h",
    "src/flowgraph/SourceFloat.cpp",
    "src/flowgraph/SourceFloat.h",
    "src/flowgraph/SourceI16.cpp",
    "src/flowgraph/SourceI16.h",
    "src/flowgraph/SourceI24.cpp",
    "src/flowgraph/SourceI24.h",
    "src/flowgraph/SourceI32.cpp",
    "src/flowgraph/SourceI32.h",
    "src/flowgraph/resampler/HyperbolicCosineWindow.h",
    "src/flowgraph/resampler/IntegerRatio.cpp",
    "src/flowgraph/resampler/IntegerRatio.h",
    "src/flowgraph/resampler/KaiserWindow.h",
    "src/flowgraph/resampler/LinearResampler.cpp",
    "src/flowgraph/resampler/LinearResampler.h",
    "src/flowgraph/resampler/MultiChannelResampler.cpp",
    "src/flowgraph/resampler/MultiChannelResampler.h",
    "src/flowgraph/resampler/PolyphaseResampler.cpp",
    "src/flowgraph/resampler/PolyphaseResampler.h",
    "src/flowgraph/resampler/PolyphaseResamplerMono.cpp",
    "src/flowgraph/resampler/PolyphaseResamplerMono.h",
    "src/flowgraph/resampler/PolyphaseResamplerStereo.cpp",
    "src/flowgraph/resampler/PolyphaseResamplerStereo.h",
    "src/flowgraph/resampler/ResamplerDefinitions.h",
    "src/flowgraph/resampler/SincResampler.cpp",
    "src/flowgraph/resampler/SincResampler.h",
    "src/flowgraph/resampler/SincResamplerStereo.cpp",
    "src/flowgraph/resampler/SincResamplerStereo.h",
    "src/opensles/AudioInputStreamOpenSLES.cpp",
    "src/opensles/AudioInputStreamOpenSLES.h",
    "src/opensles/AudioOutputStreamOpenSLES.cpp",
    "src/opensles/AudioOutputStreamOpenSLES.h",
    "src/opensles/AudioStreamBuffered.cpp",
    "src/opensles/AudioStreamBuffered.h",
    "src/opensles/AudioStreamOpenSLES.cpp",
    "src/opensles/AudioStreamOpenSLES.h",
    "src/opensles/EngineOpenSLES.cpp",
    "src/opensles/EngineOpenSLES.h",
    "src/opensles/OpenSLESUtilities.cpp",
    "src/opensles/OpenSLESUtilities.h",
    "src/opensles/OutputMixerOpenSLES.cpp",
    "src/opensles/OutputMixerOpenSLES.h",
  ]

  include_dirs = [ "src" ]
  libs = [ "OpenSLES" ]
  deps = []
}
