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 = [ |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 33 | "..:module_api", |
kwiberg@webrtc.org | ac2d27d | 2015-02-26 13:59:22 +0000 | [diff] [blame] | 34 | "../..:webrtc_common", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 35 | "../../audio/utility:audio_frame_operations", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 36 | "../../common_audio", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame^] | 37 | "../../rtc_base:rtc_task_queue", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 38 | "../../system_wrappers", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 39 | "../media_file", |
| 40 | ] |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 41 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 42 | |
| 43 | if (rtc_include_tests) { |
| 44 | rtc_source_set("utility_unittests") { |
| 45 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 46 | |
| 47 | # Skip restricting visibility on mobile platforms since the tests on those |
| 48 | # gets additional generated targets which would require many lines here to |
| 49 | # cover (which would be confusing to read and hard to maintain). |
| 50 | if (!is_android && !is_ios) { |
jianjun.zhu | c024740 | 2017-07-11 06:20:45 -0700 | [diff] [blame] | 51 | visibility = [ "..:modules_unittests" ] |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 52 | } |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 53 | sources = [ |
| 54 | "source/process_thread_impl_unittest.cc", |
| 55 | ] |
| 56 | deps = [ |
| 57 | ":utility", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 58 | "..:module_api", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame^] | 59 | "../../rtc_base:rtc_task_queue", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 60 | "../../test:test_support", |
| 61 | "//testing/gmock", |
| 62 | ] |
| 63 | } |
| 64 | } |