blob: df6945ab2cb37c00e04eb6d8481d287b95d11bf5 [file] [log] [blame]
kjellander@webrtc.org1227ab82014-06-23 19:21:071# 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 14:58:229import("../../webrtc.gni")
kjellander@webrtc.org1227ab82014-06-23 19:21:0710
Mirko Bonadei86d053c2019-10-17 19:32:0411rtc_library("utility") {
Per Kjellandera7f2d842018-01-10 15:54:5312 visibility = [ "*" ]
kjellander@webrtc.org1227ab82014-06-23 19:21:0713 sources = [
Henrik Kjellanderff761fb2015-11-04 07:31:5214 "include/process_thread.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:0715 "source/process_thread_impl.cc",
16 "source/process_thread_impl.h",
kjellander@webrtc.org1227ab82014-06-23 19:21:0717 ]
18
Mirko Bonadei470b2d52019-10-29 18:39:1719 if (is_android) {
20 sources += [
21 "include/helpers_android.h",
22 "include/jvm_android.h",
23 "source/helpers_android.cc",
24 "source/jvm_android.cc",
25 ]
26 }
27
kjellander94cee312016-06-10 08:56:5728 if (is_ios) {
Sylvain Defresnec7f0dff2020-07-03 08:19:3029 frameworks = [ "AVFoundation.framework" ]
kjellander94cee312016-06-10 08:56:5730 }
31
kjellander@webrtc.org1227ab82014-06-23 19:21:0732 deps = [
mbonadei1140f972017-04-26 10:38:3533 "..:module_api",
Danil Chapovalov959e9b62019-01-14 13:29:1834 "../../api/task_queue",
kjellander@webrtc.org1227ab82014-06-23 19:21:0735 "../../common_audio",
Patrik Höglunda8005cf2017-12-13 15:05:4236 "../../rtc_base:checks",
mbonadei95c8f652017-08-28 06:40:1037 "../../rtc_base:rtc_base_approved",
Niels Möllera12c42a2018-07-25 14:05:4838 "../../rtc_base/system:arch",
kjellander@webrtc.org1227ab82014-06-23 19:21:0739 "../../system_wrappers",
kjellander@webrtc.org1227ab82014-06-23 19:21:0740 ]
kjellander@webrtc.org1227ab82014-06-23 19:21:0741}
ehmaldonado36268652017-01-19 16:27:1142
Mirko Bonadei86d053c2019-10-17 19:32:0443rtc_library("mock_process_thread") {
mbonadei5166e542017-08-03 12:57:1144 testonly = true
Per Kjellandera7f2d842018-01-10 15:54:5345 visibility = [ "*" ]
Mirko Bonadeiccbe95f2020-01-21 11:10:1046 sources = [ "include/mock/mock_process_thread.h" ]
mbonadei5166e542017-08-03 12:57:1147 deps = [
48 ":utility",
49 "../../rtc_base:rtc_base_approved",
50 "../../test:test_support",
51 ]
52}
53
ehmaldonado36268652017-01-19 16:27:1154if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 19:32:0455 rtc_library("utility_unittests") {
ehmaldonado36268652017-01-19 16:27:1156 testonly = true
kjellandere0629c02017-04-25 11:04:5057
Mirko Bonadeiccbe95f2020-01-21 11:10:1058 sources = [ "source/process_thread_impl_unittest.cc" ]
ehmaldonado36268652017-01-19 16:27:1159 deps = [
60 ":utility",
mbonadei1140f972017-04-26 10:38:3561 "..:module_api",
Danil Chapovalov471783f2019-03-11 13:26:0262 "../../api/task_queue",
Danil Chapovalov14273de2020-02-27 12:37:4363 "../../api/task_queue:task_queue_test",
mbonadei95c8f652017-08-28 06:40:1064 "../../rtc_base:rtc_base_approved",
ehmaldonado36268652017-01-19 16:27:1165 "../../test:test_support",
ehmaldonado36268652017-01-19 16:27:1166 ]
67 }
68}