OLD | NEW |
1 # Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 { | 9 { |
10 'includes': [ | 10 'includes': [ |
11 '../../build/common.gypi', | 11 '../../build/common.gypi', |
12 ], | 12 ], |
| 13 'variables': { |
| 14 # Set this to true to enable BWE test logging. |
| 15 'enable_bwe_test_logging%': 0, |
| 16 }, |
13 'targets': [ | 17 'targets': [ |
14 { | 18 { |
15 'target_name': 'remote_bitrate_estimator', | 19 'target_name': 'remote_bitrate_estimator', |
16 'type': 'static_library', | 20 'type': 'static_library', |
17 'dependencies': [ | 21 'dependencies': [ |
18 '<(webrtc_root)/common.gyp:webrtc_common', | 22 '<(webrtc_root)/common.gyp:webrtc_common', |
19 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', | 23 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers', |
20 ], | 24 ], |
21 'sources': [ | 25 'sources': [ |
22 'include/bwe_defines.h', | 26 'include/bwe_defines.h', |
23 'include/remote_bitrate_estimator.h', | 27 'include/remote_bitrate_estimator.h', |
24 'include/send_time_history.h', | 28 'include/send_time_history.h', |
25 'aimd_rate_control.cc', | 29 'aimd_rate_control.cc', |
26 'aimd_rate_control.h', | 30 'aimd_rate_control.h', |
27 'inter_arrival.cc', | 31 'inter_arrival.cc', |
28 'inter_arrival.h', | 32 'inter_arrival.h', |
29 'overuse_detector.cc', | 33 'overuse_detector.cc', |
30 'overuse_detector.h', | 34 'overuse_detector.h', |
31 'overuse_estimator.cc', | 35 'overuse_estimator.cc', |
32 'overuse_estimator.h', | 36 'overuse_estimator.h', |
33 'remote_bitrate_estimator_abs_send_time.cc', | 37 'remote_bitrate_estimator_abs_send_time.cc', |
34 'remote_bitrate_estimator_abs_send_time.h', | 38 'remote_bitrate_estimator_abs_send_time.h', |
35 'remote_bitrate_estimator_single_stream.cc', | 39 'remote_bitrate_estimator_single_stream.cc', |
36 'remote_bitrate_estimator_single_stream.h', | 40 'remote_bitrate_estimator_single_stream.h', |
37 'remote_estimator_proxy.cc', | 41 'remote_estimator_proxy.cc', |
38 'remote_estimator_proxy.h', | 42 'remote_estimator_proxy.h', |
39 'send_time_history.cc', | 43 'send_time_history.cc', |
40 'transport_feedback_adapter.cc', | 44 'transport_feedback_adapter.cc', |
41 'transport_feedback_adapter.h', | 45 'transport_feedback_adapter.h', |
42 'test/bwe_test_logging.cc', | |
43 'test/bwe_test_logging.h', | 46 'test/bwe_test_logging.h', |
44 ], # source | 47 ], # source |
45 'conditions': [ | 48 'conditions': [ |
46 ['enable_bwe_test_logging==1', { | 49 ['enable_bwe_test_logging==1', { |
47 'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1' ], | 50 'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1' ], |
| 51 'sources': [ |
| 52 'test/bwe_test_logging.cc' |
| 53 ], |
48 }, { | 54 }, { |
49 'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0' ], | 55 'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0' ], |
50 'sources!': [ | |
51 'test/bwe_test_logging.cc' | |
52 ], | |
53 }], | 56 }], |
54 ], | 57 ], |
55 }, | 58 }, |
56 ], # targets | 59 ], # targets |
57 'conditions': [ | 60 'conditions': [ |
58 ['include_tests==1', { | 61 ['include_tests==1', { |
59 'targets': [ | 62 'targets': [ |
60 { | 63 { |
61 'target_name': 'bwe_simulator', | 64 'target_name': 'bwe_simulator', |
62 'type': 'static_library', | 65 'type': 'static_library', |
63 'dependencies': [ | 66 'dependencies': [ |
64 '<(DEPTH)/testing/gtest.gyp:gtest', | 67 '<(DEPTH)/testing/gtest.gyp:gtest', |
65 '<(DEPTH)/testing/gmock.gyp:gmock', | 68 '<(DEPTH)/testing/gmock.gyp:gmock', |
66 ], | 69 ], |
67 'sources': [ | 70 'sources': [ |
68 'test/bwe.cc', | 71 'test/bwe.cc', |
69 'test/bwe.h', | 72 'test/bwe.h', |
70 'test/bwe_test.cc', | 73 'test/bwe_test.cc', |
71 'test/bwe_test.h', | 74 'test/bwe_test.h', |
72 'test/bwe_test_baselinefile.cc', | 75 'test/bwe_test_baselinefile.cc', |
73 'test/bwe_test_baselinefile.h', | 76 'test/bwe_test_baselinefile.h', |
74 'test/bwe_test_fileutils.cc', | 77 'test/bwe_test_fileutils.cc', |
75 'test/bwe_test_fileutils.h', | 78 'test/bwe_test_fileutils.h', |
76 'test/bwe_test_framework.cc', | 79 'test/bwe_test_framework.cc', |
77 'test/bwe_test_framework.h', | 80 'test/bwe_test_framework.h', |
78 'test/bwe_test_logging.cc', | |
79 'test/bwe_test_logging.h', | 81 'test/bwe_test_logging.h', |
80 'test/metric_recorder.cc', | 82 'test/metric_recorder.cc', |
81 'test/metric_recorder.h', | 83 'test/metric_recorder.h', |
82 'test/packet_receiver.cc', | 84 'test/packet_receiver.cc', |
83 'test/packet_receiver.h', | 85 'test/packet_receiver.h', |
84 'test/packet_sender.cc', | 86 'test/packet_sender.cc', |
85 'test/packet_sender.h', | 87 'test/packet_sender.h', |
86 'test/packet.h', | 88 'test/packet.h', |
87 'test/estimators/nada.cc', | 89 'test/estimators/nada.cc', |
88 'test/estimators/nada.h', | 90 'test/estimators/nada.h', |
89 'test/estimators/remb.cc', | 91 'test/estimators/remb.cc', |
90 'test/estimators/remb.h', | 92 'test/estimators/remb.h', |
91 'test/estimators/send_side.cc', | 93 'test/estimators/send_side.cc', |
92 'test/estimators/send_side.h', | 94 'test/estimators/send_side.h', |
93 'test/estimators/tcp.cc', | 95 'test/estimators/tcp.cc', |
94 'test/estimators/tcp.h', | 96 'test/estimators/tcp.h', |
95 ], | 97 ], |
96 'conditions': [ | 98 'conditions': [ |
97 ['enable_bwe_test_logging==1', { | 99 ['enable_bwe_test_logging==1', { |
98 'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1' ], | 100 'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1' ], |
| 101 'sources': [ |
| 102 'test/bwe_test_logging.cc' |
| 103 ], |
99 }, { | 104 }, { |
100 'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0' ], | 105 'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0' ], |
101 'sources!': [ | |
102 'test/bwe_test_logging.cc' | |
103 ], | |
104 }], | 106 }], |
105 ], | 107 ], |
106 }, | 108 }, |
107 { | 109 { |
108 'target_name': 'bwe_tools_util', | 110 'target_name': 'bwe_tools_util', |
109 'type': 'static_library', | 111 'type': 'static_library', |
110 'dependencies': [ | 112 'dependencies': [ |
111 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', | 113 '<(DEPTH)/third_party/gflags/gflags.gyp:gflags', |
112 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers'
, | 114 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers'
, |
113 'rtp_rtcp', | 115 'rtp_rtcp', |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 ], | 160 ], |
159 }, | 161 }, |
160 'sources': [ | 162 'sources': [ |
161 'tools/bwe_rtp_play.cc', | 163 'tools/bwe_rtp_play.cc', |
162 ], # source | 164 ], # source |
163 }, | 165 }, |
164 ], | 166 ], |
165 }], # include_tests==1 | 167 }], # include_tests==1 |
166 ], | 168 ], |
167 } | 169 } |
OLD | NEW |