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", |
| 20 | ":time_delta", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame^] | 21 | "..:array_view", |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 22 | "../../rtc_base:checks", |
Sebastian Jansson | 0753675 | 2018-10-16 11:34:04 +0200 | [diff] [blame] | 23 | "../../rtc_base:stringutils", |
Sebastian Jansson | 72bba62 | 2018-11-19 11:17:12 +0100 | [diff] [blame] | 24 | "../../rtc_base/units:unit_base", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 25 | ] |
| 26 | } |
| 27 | |
| 28 | rtc_source_set("data_size") { |
Mirko Bonadei | 38537ed | 2018-10-05 21:09:00 +0200 | [diff] [blame] | 29 | visibility = [ "*" ] |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 30 | sources = [ |
| 31 | "data_size.cc", |
| 32 | "data_size.h", |
| 33 | ] |
| 34 | |
| 35 | deps = [ |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame^] | 36 | "..:array_view", |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 37 | "../../rtc_base:checks", |
Sebastian Jansson | 0753675 | 2018-10-16 11:34:04 +0200 | [diff] [blame] | 38 | "../../rtc_base:stringutils", |
Sebastian Jansson | 72bba62 | 2018-11-19 11:17:12 +0100 | [diff] [blame] | 39 | "../../rtc_base/units:unit_base", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 40 | ] |
| 41 | } |
Mirko Bonadei | 38537ed | 2018-10-05 21:09:00 +0200 | [diff] [blame] | 42 | |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 43 | rtc_source_set("time_delta") { |
Mirko Bonadei | 38537ed | 2018-10-05 21:09:00 +0200 | [diff] [blame] | 44 | visibility = [ "*" ] |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 45 | sources = [ |
| 46 | "time_delta.cc", |
| 47 | "time_delta.h", |
| 48 | ] |
| 49 | |
| 50 | deps = [ |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame^] | 51 | "..:array_view", |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 52 | "../../rtc_base:checks", |
Sebastian Jansson | 0753675 | 2018-10-16 11:34:04 +0200 | [diff] [blame] | 53 | "../../rtc_base:stringutils", |
Sebastian Jansson | 72bba62 | 2018-11-19 11:17:12 +0100 | [diff] [blame] | 54 | "../../rtc_base/units:unit_base", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 55 | ] |
| 56 | } |
| 57 | |
| 58 | rtc_source_set("timestamp") { |
Mirko Bonadei | 38537ed | 2018-10-05 21:09:00 +0200 | [diff] [blame] | 59 | visibility = [ "*" ] |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 60 | sources = [ |
| 61 | "timestamp.cc", |
| 62 | "timestamp.h", |
| 63 | ] |
| 64 | |
| 65 | deps = [ |
| 66 | ":time_delta", |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame^] | 67 | "..:array_view", |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 68 | "../../rtc_base:checks", |
Sebastian Jansson | 0753675 | 2018-10-16 11:34:04 +0200 | [diff] [blame] | 69 | "../../rtc_base:stringutils", |
Sebastian Jansson | 72bba62 | 2018-11-19 11:17:12 +0100 | [diff] [blame] | 70 | "../../rtc_base/units:unit_base", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 71 | ] |
| 72 | } |
| 73 | |
| 74 | if (rtc_include_tests) { |
| 75 | rtc_source_set("units_unittests") { |
| 76 | testonly = true |
| 77 | sources = [ |
| 78 | "data_rate_unittest.cc", |
| 79 | "data_size_unittest.cc", |
| 80 | "time_delta_unittest.cc", |
| 81 | "timestamp_unittest.cc", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 82 | ] |
| 83 | deps = [ |
| 84 | ":data_rate", |
| 85 | ":data_size", |
| 86 | ":time_delta", |
| 87 | ":timestamp", |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 88 | "../../test:test_support", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 89 | ] |
| 90 | } |
| 91 | } |