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") { |
| 12 | sources = [ |
| 13 | "data_rate.cc", |
| 14 | "data_rate.h", |
| 15 | ] |
| 16 | |
| 17 | deps = [ |
Sebastian Jansson | e31be15 | 2018-04-16 12:41:47 +0200 | [diff] [blame] | 18 | ":data_size", |
| 19 | ":time_delta", |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 20 | "../../rtc_base:checks", |
| 21 | "../../rtc_base:rtc_base_approved", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 22 | ] |
| 23 | } |
| 24 | |
| 25 | rtc_source_set("data_size") { |
| 26 | sources = [ |
| 27 | "data_size.cc", |
| 28 | "data_size.h", |
| 29 | ] |
| 30 | |
| 31 | deps = [ |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 32 | "../../rtc_base:checks", |
| 33 | "../../rtc_base:rtc_base_approved", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 34 | ] |
| 35 | } |
| 36 | rtc_source_set("time_delta") { |
| 37 | sources = [ |
| 38 | "time_delta.cc", |
| 39 | "time_delta.h", |
| 40 | ] |
| 41 | |
| 42 | deps = [ |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 43 | "../../rtc_base:checks", |
| 44 | "../../rtc_base:rtc_base_approved", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 45 | ] |
| 46 | } |
| 47 | |
| 48 | rtc_source_set("timestamp") { |
| 49 | sources = [ |
| 50 | "timestamp.cc", |
| 51 | "timestamp.h", |
| 52 | ] |
| 53 | |
| 54 | deps = [ |
| 55 | ":time_delta", |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 56 | "../../rtc_base:checks", |
| 57 | "../../rtc_base:rtc_base_approved", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 58 | ] |
| 59 | } |
| 60 | |
| 61 | if (rtc_include_tests) { |
| 62 | rtc_source_set("units_unittests") { |
| 63 | testonly = true |
| 64 | sources = [ |
| 65 | "data_rate_unittest.cc", |
| 66 | "data_size_unittest.cc", |
| 67 | "time_delta_unittest.cc", |
| 68 | "timestamp_unittest.cc", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 69 | ] |
| 70 | deps = [ |
| 71 | ":data_rate", |
| 72 | ":data_size", |
| 73 | ":time_delta", |
| 74 | ":timestamp", |
Sebastian Jansson | 6fae6ec | 2018-05-08 10:43:18 +0200 | [diff] [blame] | 75 | "../../test:test_support", |
Sebastian Jansson | 30bd403 | 2018-04-13 13:56:17 +0200 | [diff] [blame] | 76 | ] |
| 77 | } |
| 78 | } |