blob: fbfa61ec1680d1ab705a8cd8e9c512783016acd4 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +00001# 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
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../../webrtc.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000010
kjellanderb62dbbe2016-09-23 00:38:52 -070011rtc_static_library("utility") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000012 visibility = [ "*" ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000013 sources = [
Henrik Kjellanderff761fb2015-11-04 08:31:52 +010014 "include/audio_frame_operations.h",
solenberg71b9b582016-11-25 11:45:05 -080015 "include/helpers_android.h",
16 "include/jvm_android.h",
Henrik Kjellanderff761fb2015-11-04 08:31:52 +010017 "include/process_thread.h",
solenberg71b9b582016-11-25 11:45:05 -080018 "source/helpers_android.cc",
19 "source/jvm_android.cc",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000020 "source/process_thread_impl.cc",
21 "source/process_thread_impl.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000022 ]
23
kjellandere40a7ee2016-10-16 23:56:12 -070024 if (!build_with_chromium && is_clang) {
25 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
ehmaldonado38a21322016-09-02 04:10:34 -070026 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
kjellander@webrtc.org42ee5b52014-08-25 14:15:35 +000027 }
28
kjellander94cee312016-06-10 01:56:57 -070029 if (is_ios) {
30 libs = [ "AVFoundation.framework" ]
31 }
32
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000033 deps = [
mbonadei1140f972017-04-26 03:38:35 -070034 "..:module_api",
kwiberg@webrtc.orgac2d27d2015-02-26 13:59:22 +000035 "../..:webrtc_common",
Patrik Höglund3e113432017-12-15 14:40:10 +010036 "../../:typedefs",
aleloi6321b492016-12-05 01:46:09 -080037 "../../audio/utility:audio_frame_operations",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000038 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010039 "../../rtc_base:checks",
mbonadei95c8f652017-08-27 23:40:10 -070040 "../../rtc_base:rtc_base_approved",
ehmaldonadof6a861a2017-07-19 10:40:47 -070041 "../../rtc_base:rtc_task_queue",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000042 "../../system_wrappers",
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000043 "../media_file",
44 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:07 +000045}
ehmaldonado36268652017-01-19 08:27:11 -080046
mbonadei5166e542017-08-03 05:57:11 -070047rtc_source_set("mock_process_thread") {
48 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:53 +000049 visibility = [ "*" ]
mbonadei5166e542017-08-03 05:57:11 -070050 sources = [
51 "include/mock/mock_process_thread.h",
52 ]
53 deps = [
54 ":utility",
55 "../../rtc_base:rtc_base_approved",
56 "../../test:test_support",
57 ]
58}
59
ehmaldonado36268652017-01-19 08:27:11 -080060if (rtc_include_tests) {
61 rtc_source_set("utility_unittests") {
62 testonly = true
kjellandere0629c02017-04-25 04:04:50 -070063
ehmaldonado36268652017-01-19 08:27:11 -080064 sources = [
65 "source/process_thread_impl_unittest.cc",
66 ]
67 deps = [
68 ":utility",
mbonadei1140f972017-04-26 03:38:35 -070069 "..:module_api",
mbonadei95c8f652017-08-27 23:40:10 -070070 "../../rtc_base:rtc_base_approved",
ehmaldonadof6a861a2017-07-19 10:40:47 -070071 "../../rtc_base:rtc_task_queue",
ehmaldonado36268652017-01-19 08:27:11 -080072 "../../test:test_support",
73 "//testing/gmock",
74 ]
75 }
76}