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 9import("../../webrtc.gni") 10 11rtc_library("utility") { 12 visibility = [ "*" ] 13 sources = [ 14 "include/process_thread.h", 15 "source/process_thread_impl.cc", 16 "source/process_thread_impl.h", 17 ] 18 19 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 28 if (is_ios) { 29 frameworks = [ "AVFoundation.framework" ] 30 } 31 32 deps = [ 33 "..:module_api", 34 "../../api/task_queue", 35 "../../common_audio", 36 "../../rtc_base:checks", 37 "../../rtc_base:rtc_base_approved", 38 "../../rtc_base/system:arch", 39 "../../system_wrappers", 40 ] 41} 42 43rtc_library("mock_process_thread") { 44 testonly = true 45 visibility = [ "*" ] 46 sources = [ "include/mock/mock_process_thread.h" ] 47 deps = [ 48 ":utility", 49 "../../rtc_base:rtc_base_approved", 50 "../../test:test_support", 51 ] 52} 53 54if (rtc_include_tests) { 55 rtc_library("utility_unittests") { 56 testonly = true 57 58 sources = [ "source/process_thread_impl_unittest.cc" ] 59 deps = [ 60 ":utility", 61 "..:module_api", 62 "../../api/task_queue", 63 "../../api/task_queue:task_queue_test", 64 "../../rtc_base:rtc_base_approved", 65 "../../test:test_support", 66 ] 67 } 68} 69