blob: 7dbddf4e622f4ed7fbc1f73fcc952de3428fbe6b [file] [log] [blame]
Sebastian Jansson30bd4032018-04-13 13:56:17 +02001# 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 Jansson6fae6ec2018-05-08 10:43:18 +02009import("../../webrtc.gni")
Sebastian Jansson30bd4032018-04-13 13:56:17 +020010
Sebastian Jansson30bd4032018-04-13 13:56:17 +020011rtc_source_set("data_rate") {
12 sources = [
13 "data_rate.cc",
14 "data_rate.h",
15 ]
16
17 deps = [
Sebastian Janssone31be152018-04-16 12:41:47 +020018 ":data_size",
19 ":time_delta",
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +020020 "../../rtc_base:checks",
21 "../../rtc_base:rtc_base_approved",
Sebastian Jansson30bd4032018-04-13 13:56:17 +020022 ]
23}
24
25rtc_source_set("data_size") {
26 sources = [
27 "data_size.cc",
28 "data_size.h",
29 ]
30
31 deps = [
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +020032 "../../rtc_base:checks",
33 "../../rtc_base:rtc_base_approved",
Sebastian Jansson30bd4032018-04-13 13:56:17 +020034 ]
35}
36rtc_source_set("time_delta") {
37 sources = [
38 "time_delta.cc",
39 "time_delta.h",
40 ]
41
42 deps = [
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +020043 "../../rtc_base:checks",
44 "../../rtc_base:rtc_base_approved",
Sebastian Jansson30bd4032018-04-13 13:56:17 +020045 ]
46}
47
48rtc_source_set("timestamp") {
49 sources = [
50 "timestamp.cc",
51 "timestamp.h",
52 ]
53
54 deps = [
55 ":time_delta",
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +020056 "../../rtc_base:checks",
57 "../../rtc_base:rtc_base_approved",
Sebastian Jansson30bd4032018-04-13 13:56:17 +020058 ]
59}
60
61if (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 Jansson30bd4032018-04-13 13:56:17 +020069 ]
70 deps = [
71 ":data_rate",
72 ":data_size",
73 ":time_delta",
74 ":timestamp",
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +020075 "../../test:test_support",
Sebastian Jansson30bd4032018-04-13 13:56:17 +020076 ]
77 }
78}