aleloi | 939e08f | 2016-11-29 07:32:07 -0800 | [diff] [blame] | 1 | # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license |
| 4 | # that can be found in the LICENSE file in the root of the source |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 8 | import("../../webrtc.gni") |
aleloi | 939e08f | 2016-11-29 07:32:07 -0800 | [diff] [blame] | 9 | |
| 10 | group("utility") { |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 11 | public_deps = [ |
| 12 | ":audio_frame_operations", |
| 13 | ] |
| 14 | } |
| 15 | |
| 16 | rtc_static_library("audio_frame_operations") { |
| 17 | sources = [ |
| 18 | "audio_frame_operations.cc", |
| 19 | "audio_frame_operations.h", |
| 20 | ] |
| 21 | |
| 22 | deps = [ |
| 23 | "../..:webrtc_common", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 24 | "../../modules:module_api", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 25 | "../../modules/audio_coding:audio_format_conversion", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 26 | "../../rtc_base:rtc_base_approved", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 27 | ] |
aleloi | 939e08f | 2016-11-29 07:32:07 -0800 | [diff] [blame] | 28 | } |
ehmaldonado | 894c2bb | 2017-01-05 06:03:24 -0800 | [diff] [blame] | 29 | |
| 30 | if (rtc_include_tests) { |
| 31 | rtc_source_set("utility_tests") { |
| 32 | testonly = true |
| 33 | sources = [ |
| 34 | "audio_frame_operations_unittest.cc", |
| 35 | ] |
| 36 | deps = [ |
| 37 | ":audio_frame_operations", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 38 | "../../modules:module_api", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 39 | "../../rtc_base:rtc_base_approved", |
ehmaldonado | 894c2bb | 2017-01-05 06:03:24 -0800 | [diff] [blame] | 40 | "../../test:test_support", |
| 41 | "//testing/gtest", |
| 42 | ] |
| 43 | if (!build_with_chromium && is_clang) { |
| 44 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 45 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 46 | } |
| 47 | } |
| 48 | } |