kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 1 | # Copyright (c) 2014 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. |
| 8 | |
| 9 | import("../../build/webrtc.gni") |
| 10 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 11 | rtc_static_library("utility") { |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 12 | sources = [ |
Henrik Kjellander | ff761fb | 2015-11-04 08:31:52 +0100 | [diff] [blame] | 13 | "include/audio_frame_operations.h", |
solenberg | 71b9b58 | 2016-11-25 11:45:05 -0800 | [diff] [blame] | 14 | "include/helpers_android.h", |
| 15 | "include/jvm_android.h", |
Henrik Kjellander | ff761fb | 2015-11-04 08:31:52 +0100 | [diff] [blame] | 16 | "include/process_thread.h", |
solenberg | 71b9b58 | 2016-11-25 11:45:05 -0800 | [diff] [blame] | 17 | "source/helpers_android.cc", |
| 18 | "source/jvm_android.cc", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 19 | "source/process_thread_impl.cc", |
| 20 | "source/process_thread_impl.h", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 21 | ] |
| 22 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 23 | if (!build_with_chromium && is_clang) { |
| 24 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 25 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | 42ee5b5 | 2014-08-25 14:15:35 +0000 | [diff] [blame] | 26 | } |
| 27 | |
kjellander | 94cee31 | 2016-06-10 01:56:57 -0700 | [diff] [blame] | 28 | if (is_ios) { |
| 29 | libs = [ "AVFoundation.framework" ] |
| 30 | } |
| 31 | |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 32 | deps = [ |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 33 | "../..:webrtc_common", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 34 | "../../audio/utility:audio_frame_operations", |
tommi | 435f98b | 2016-05-28 14:57:15 -0700 | [diff] [blame] | 35 | "../../base:rtc_task_queue", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 36 | "../../common_audio", |
| 37 | "../../system_wrappers", |
| 38 | "../audio_coding", |
mbonadei | 05afa8b | 2016-12-27 05:40:15 -0800 | [diff] [blame] | 39 | "../audio_coding:audio_format_conversion", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 40 | "../audio_coding:builtin_audio_decoder_factory", |
| 41 | "../audio_coding:rent_a_codec", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 42 | "../media_file", |
| 43 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 44 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame^] | 45 | |
| 46 | if (rtc_include_tests) { |
| 47 | rtc_source_set("utility_unittests") { |
| 48 | testonly = true |
| 49 | sources = [ |
| 50 | "source/process_thread_impl_unittest.cc", |
| 51 | ] |
| 52 | deps = [ |
| 53 | ":utility", |
| 54 | "../../base:rtc_task_queue", |
| 55 | "../../test:test_support", |
| 56 | "//testing/gmock", |
| 57 | ] |
| 58 | } |
| 59 | } |