OLD | NEW |
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 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': [ '../build/common.gypi', ], | 10 'includes': [ '../build/common.gypi', ], |
11 'targets': [ | 11 'targets': [ |
12 { | 12 { |
13 # GN version: webrtc/stats:rtc_stats | 13 # GN version: webrtc/stats:rtc_stats |
14 'target_name': 'rtc_stats', | 14 'target_name': 'rtc_stats', |
15 'type': 'static_library', | 15 'type': 'static_library', |
16 'dependencies': [ | 16 'dependencies': [ |
17 '<(webrtc_root)/api/api.gyp:libjingle_peerconnection', | 17 '<(webrtc_root)/api/api.gyp:rtc_stats_api', |
| 18 '<(webrtc_root)/base/base.gyp:rtc_base_approved', |
18 ], | 19 ], |
19 'sources': [ | 20 'sources': [ |
20 'rtcstats.cc', | 21 'rtcstats.cc', |
21 'rtcstats_objects.cc', | 22 'rtcstats_objects.cc', |
22 'rtcstatscollector.cc', | |
23 'rtcstatscollector.h', | |
24 'rtcstatsreport.cc', | 23 'rtcstatsreport.cc', |
25 ], | 24 ], |
26 }, | 25 }, |
27 ], | 26 ], |
28 'conditions': [ | 27 'conditions': [ |
29 ['include_tests==1', { | 28 ['include_tests==1', { |
30 'targets': [ | 29 'targets': [ |
31 { | 30 { |
32 # GN version: webrtc/stats:rtc_stats_unittests | 31 # GN version: webrtc/stats:rtc_stats_unittests |
33 'target_name': 'rtc_stats_unittests', | 32 'target_name': 'rtc_stats_unittests', |
34 'type': '<(gtest_target_type)', | 33 'type': '<(gtest_target_type)', |
35 'dependencies': [ | 34 'dependencies': [ |
36 '<(DEPTH)/testing/gmock.gyp:gmock', | 35 '<(DEPTH)/testing/gmock.gyp:gmock', |
37 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', | 36 '<(webrtc_root)/base/base_tests.gyp:rtc_base_tests_utils', |
38 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default'
, | 37 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default'
, |
39 'rtc_stats', | 38 'rtc_stats', |
40 ], | 39 ], |
41 'sources': [ | 40 'sources': [ |
42 'rtcstats_unittest.cc', | 41 'rtcstats_unittest.cc', |
43 'rtcstatscollector_unittest.cc', | |
44 'rtcstatsreport_unittest.cc', | 42 'rtcstatsreport_unittest.cc', |
45 ], | 43 ], |
46 }, | 44 }, |
47 ], | 45 ], |
48 }], | 46 }], |
49 ], | 47 ], |
50 } | 48 } |
OLD | NEW |