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 | |
mbonadei | 9aa3f0a | 2017-01-24 06:58:22 -0800 | [diff] [blame] | 9 | import("../../webrtc.gni") |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 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", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 38 | "../media_file", |
| 39 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 40 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 41 | |
| 42 | if (rtc_include_tests) { |
| 43 | rtc_source_set("utility_unittests") { |
| 44 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 45 | |
| 46 | # Skip restricting visibility on mobile platforms since the tests on those |
| 47 | # gets additional generated targets which would require many lines here to |
| 48 | # cover (which would be confusing to read and hard to maintain). |
| 49 | if (!is_android && !is_ios) { |
| 50 | visibility = [ "//webrtc/modules:modules_unittests" ] |
| 51 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 52 | sources = [ |
| 53 | "source/process_thread_impl_unittest.cc", |
| 54 | ] |
| 55 | deps = [ |
| 56 | ":utility", |
| 57 | "../../base:rtc_task_queue", |
| 58 | "../../test:test_support", |
| 59 | "//testing/gmock", |
| 60 | ] |
| 61 | } |
| 62 | } |