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", |
Patrik Höglund | 3e11343 | 2017-12-15 14:40:10 +0100 | [diff] [blame] | 35 | "../../:typedefs", |
aleloi | 6321b49 | 2016-12-05 01:46:09 -0800 | [diff] [blame] | 36 | "../../audio/utility:audio_frame_operations", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 37 | "../../common_audio", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 38 | "../../rtc_base:checks", |
mbonadei | 95c8f65 | 2017-08-27 23:40:10 -0700 | [diff] [blame] | 39 | "../../rtc_base:rtc_base_approved", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 40 | "../../rtc_base:rtc_task_queue", |
kjellander@webrtc.org | 1227ab8 | 2014-06-23 19:21:07 +0000 | [diff] [blame] | 41 | "../../system_wrappers", |
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 | |
mbonadei | 5166e54 | 2017-08-03 05:57:11 -0700 | [diff] [blame] | 46 | rtc_source_set("mock_process_thread") { |
| 47 | testonly = true |
| 48 | sources = [ |
| 49 | "include/mock/mock_process_thread.h", |
| 50 | ] |
| 51 | deps = [ |
| 52 | ":utility", |
| 53 | "../../rtc_base:rtc_base_approved", |
| 54 | "../../test:test_support", |
| 55 | ] |
| 56 | } |
| 57 | |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 58 | if (rtc_include_tests) { |
| 59 | rtc_source_set("utility_unittests") { |
| 60 | testonly = true |
kjellander | e0629c0 | 2017-04-25 04:04:50 -0700 | [diff] [blame] | 61 | |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 62 | sources = [ |
| 63 | "source/process_thread_impl_unittest.cc", |
| 64 | ] |
| 65 | deps = [ |
| 66 | ":utility", |
mbonadei | 1140f97 | 2017-04-26 03:38:35 -0700 | [diff] [blame] | 67 | "..:module_api", |
mbonadei | 95c8f65 | 2017-08-27 23:40:10 -0700 | [diff] [blame] | 68 | "../../rtc_base:rtc_base_approved", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 69 | "../../rtc_base:rtc_task_queue", |
ehmaldonado | 3626865 | 2017-01-19 08:27:11 -0800 | [diff] [blame] | 70 | "../../test:test_support", |
| 71 | "//testing/gmock", |
| 72 | ] |
| 73 | } |
| 74 | } |