Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 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 | |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 9 | import("../../webrtc.gni") |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 10 | |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 11 | rtc_source_set("data_rate") { |
Mirko Bonadei | 38537ed | 2018-10-05 21:09:00 +0200 | [diff] [blame] | 12 | visibility = [ "*" ] |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 13 | sources = [ |
| 14 | "data_rate.cc", |
| 15 | "data_rate.h", |
| 16 | ] |
| 17 | |
| 18 | deps = [ |
Sebastian Jansson | e31be15 | 2018-04-16 12:41:47 +0200 | [diff] [blame] | 19 | ":data_size", |
Sebastian Jansson | 26b5e35 | 2019-06-07 11:05:31 +0200 | [diff] [blame] | 20 | ":frequency", |
Sebastian Jansson | e31be15 | 2018-04-16 12:41:47 +0200 | [diff] [blame] | 21 | ":time_delta", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 22 | "..:array_view", |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 23 | "../../rtc_base:checks", |
Sebastian Jansson | 0753675 | 2018-10-16 11:34:04 +0200 | [diff] [blame] | 24 | "../../rtc_base:stringutils", |
Sebastian Jansson | 72bba62 | 2018-11-19 11:17:12 +0100 | [diff] [blame] | 25 | "../../rtc_base/units:unit_base", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 26 | ] |
| 27 | } |
| 28 | |
| 29 | rtc_source_set("data_size") { |
Mirko Bonadei | 38537ed | 2018-10-05 21:09:00 +0200 | [diff] [blame] | 30 | visibility = [ "*" ] |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 31 | sources = [ |
| 32 | "data_size.cc", |
| 33 | "data_size.h", |
| 34 | ] |
| 35 | |
| 36 | deps = [ |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 37 | "..:array_view", |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 38 | "../../rtc_base:checks", |
Sebastian Jansson | 0753675 | 2018-10-16 11:34:04 +0200 | [diff] [blame] | 39 | "../../rtc_base:stringutils", |
Sebastian Jansson | 72bba62 | 2018-11-19 11:17:12 +0100 | [diff] [blame] | 40 | "../../rtc_base/units:unit_base", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 41 | ] |
| 42 | } |
Mirko Bonadei | 38537ed | 2018-10-05 21:09:00 +0200 | [diff] [blame] | 43 | |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 44 | rtc_source_set("time_delta") { |
Mirko Bonadei | 38537ed | 2018-10-05 21:09:00 +0200 | [diff] [blame] | 45 | visibility = [ "*" ] |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 46 | sources = [ |
| 47 | "time_delta.cc", |
| 48 | "time_delta.h", |
| 49 | ] |
| 50 | |
| 51 | deps = [ |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 52 | "..:array_view", |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 53 | "../../rtc_base:checks", |
Sebastian Jansson | 0753675 | 2018-10-16 11:34:04 +0200 | [diff] [blame] | 54 | "../../rtc_base:stringutils", |
Sebastian Jansson | 72bba62 | 2018-11-19 11:17:12 +0100 | [diff] [blame] | 55 | "../../rtc_base/units:unit_base", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 56 | ] |
| 57 | } |
| 58 | |
Sebastian Jansson | 26b5e35 | 2019-06-07 11:05:31 +0200 | [diff] [blame] | 59 | rtc_source_set("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 | |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 75 | rtc_source_set("timestamp") { |
Mirko Bonadei | 38537ed | 2018-10-05 21:09:00 +0200 | [diff] [blame] | 76 | visibility = [ "*" ] |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 77 | sources = [ |
| 78 | "timestamp.cc", |
| 79 | "timestamp.h", |
| 80 | ] |
| 81 | |
| 82 | deps = [ |
| 83 | ":time_delta", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 84 | "..:array_view", |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 85 | "../../rtc_base:checks", |
Sebastian Jansson | 0753675 | 2018-10-16 11:34:04 +0200 | [diff] [blame] | 86 | "../../rtc_base:stringutils", |
Sebastian Jansson | 72bba62 | 2018-11-19 11:17:12 +0100 | [diff] [blame] | 87 | "../../rtc_base/units:unit_base", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 88 | ] |
| 89 | } |
| 90 | |
| 91 | if (rtc_include_tests) { |
| 92 | rtc_source_set("units_unittests") { |
| 93 | testonly = true |
| 94 | sources = [ |
| 95 | "data_rate_unittest.cc", |
| 96 | "data_size_unittest.cc", |
Sebastian Jansson | 26b5e35 | 2019-06-07 11:05:31 +0200 | [diff] [blame] | 97 | "frequency_unittest.cc", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 98 | "time_delta_unittest.cc", |
| 99 | "timestamp_unittest.cc", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 100 | ] |
| 101 | deps = [ |
| 102 | ":data_rate", |
| 103 | ":data_size", |
Sebastian Jansson | 26b5e35 | 2019-06-07 11:05:31 +0200 | [diff] [blame] | 104 | ":frequency", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 105 | ":time_delta", |
| 106 | ":timestamp", |
Sebastian Jansson | b113862 | 2019-04-11 16:48:15 +0200 | [diff] [blame] | 107 | "../../rtc_base:logging", |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 108 | "../../test:test_support", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 109 | ] |
| 110 | } |
| 111 | } |