1# Copyright (c) 2018 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("data_rate") { 12 visibility = [ "*" ] 13 sources = [ 14 "data_rate.cc", 15 "data_rate.h", 16 ] 17 18 deps = [ 19 ":data_size", 20 ":frequency", 21 ":time_delta", 22 "..:array_view", 23 "../../rtc_base:checks", 24 "../../rtc_base:stringutils", 25 "../../rtc_base/units:unit_base", 26 ] 27} 28 29rtc_library("data_size") { 30 visibility = [ "*" ] 31 sources = [ 32 "data_size.cc", 33 "data_size.h", 34 ] 35 36 deps = [ 37 "..:array_view", 38 "../../rtc_base:checks", 39 "../../rtc_base:stringutils", 40 "../../rtc_base/units:unit_base", 41 ] 42} 43 44rtc_library("time_delta") { 45 visibility = [ "*" ] 46 sources = [ 47 "time_delta.cc", 48 "time_delta.h", 49 ] 50 51 deps = [ 52 "..:array_view", 53 "../../rtc_base:checks", 54 "../../rtc_base:stringutils", 55 "../../rtc_base/units:unit_base", 56 ] 57} 58 59rtc_library("frequency") { 60 visibility = [ "*" ] 61 sources = [ 62 "frequency.cc", 63 "frequency.h", 64 ] 65 66 deps = [ 67 ":time_delta", 68 "..:array_view", 69 "../../rtc_base:checks", 70 "../../rtc_base:stringutils", 71 "../../rtc_base/units:unit_base", 72 ] 73} 74 75rtc_library("timestamp") { 76 visibility = [ "*" ] 77 sources = [ 78 "timestamp.cc", 79 "timestamp.h", 80 ] 81 82 deps = [ 83 ":time_delta", 84 "..:array_view", 85 "../../rtc_base:checks", 86 "../../rtc_base:stringutils", 87 "../../rtc_base/units:unit_base", 88 ] 89} 90 91if (rtc_include_tests) { 92 rtc_library("units_unittests") { 93 testonly = true 94 sources = [ 95 "data_rate_unittest.cc", 96 "data_size_unittest.cc", 97 "frequency_unittest.cc", 98 "time_delta_unittest.cc", 99 "timestamp_unittest.cc", 100 ] 101 deps = [ 102 ":data_rate", 103 ":data_size", 104 ":frequency", 105 ":time_delta", 106 ":timestamp", 107 "../../rtc_base:logging", 108 "../../test:test_support", 109 ] 110 } 111} 112