| # Copyright 2021 The Cobalt Authors. All Rights Reserved. |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| static_library("audio") { |
| has_pedantic_warnings = true |
| |
| # Includes event_target.h and dom_settings.h from //cobalt/dom which depends |
| # on this target |
| check_includes = false |
| |
| sources = [ |
| "async_audio_decoder.cc", |
| "async_audio_decoder.h", |
| "audio_buffer.cc", |
| "audio_buffer.h", |
| "audio_buffer_source_node.cc", |
| "audio_buffer_source_node.h", |
| "audio_context.cc", |
| "audio_context.h", |
| "audio_destination_node.cc", |
| "audio_destination_node.h", |
| "audio_device.cc", |
| "audio_device.h", |
| "audio_file_reader.cc", |
| "audio_file_reader.h", |
| "audio_file_reader_wav.cc", |
| "audio_file_reader_wav.h", |
| "audio_helpers.h", |
| "audio_node.cc", |
| "audio_node.h", |
| "audio_node_input.cc", |
| "audio_node_input.h", |
| "audio_node_output.cc", |
| "audio_node_output.h", |
| ] |
| |
| configs -= [ "//starboard/build/config:size" ] |
| configs += [ "//starboard/build/config:speed" ] |
| |
| public_deps = [ |
| # Additionally, ensure that the include directories for generated |
| # headers are put on the include directories for targets that depend |
| # on this one. |
| "//cobalt/browser:generated_types", |
| ] |
| |
| deps = [ |
| "//cobalt/base", |
| "//cobalt/media", |
| "//cobalt/script", |
| "//cobalt/web:dom_exception", |
| "//starboard:starboard_headers_only", |
| ] |
| deps += cobalt_platform_dependencies |
| } |
| |
| target(gtest_target_type, "audio_test") { |
| testonly = true |
| has_pedantic_warnings = true |
| |
| sources = [ "audio_node_input_output_test.cc" ] |
| |
| deps = [ |
| ":audio", |
| "//cobalt/dom", |
| "//cobalt/dom/testing:dom_testing", |
| "//cobalt/media", |
| "//cobalt/script", |
| "//cobalt/test:run_all_unittests", |
| "//testing/gtest", |
| ] |
| deps += cobalt_platform_dependencies |
| } |