andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 1 | # Copyright (c) 2011 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 | |
| 9 | { |
| 10 | 'includes': [ |
| 11 | '../build/common.gypi', |
| 12 | ], |
| 13 | 'targets': [ |
| 14 | { |
| 15 | # The metrics code must be kept in its own GYP file in order to |
| 16 | # avoid a circular dependency error due to the dependency on libyuv. |
| 17 | # If the code would be put in test.gyp a circular dependency error during |
| 18 | # GYP generation would occur, because the libyuv.gypi unittest target |
| 19 | # depends on test_support_main. See issue #160 for more info. |
| 20 | 'target_name': 'metrics', |
wjia@webrtc.org | 81cfcb5 | 2013-01-18 23:42:21 +0000 | [diff] [blame] | 21 | 'type': 'static_library', |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 22 | 'dependencies': [ |
| 23 | '<(webrtc_root)/common_video/common_video.gyp:common_video', |
mikhal@webrtc.org | dc7e6cf | 2012-10-24 18:33:04 +0000 | [diff] [blame] | 24 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 25 | ], |
| 26 | 'include_dirs': [ |
| 27 | '.', |
| 28 | ], |
| 29 | 'sources': [ |
| 30 | 'testsupport/metrics/video_metrics.h', |
| 31 | 'testsupport/metrics/video_metrics.cc', |
| 32 | ], |
| 33 | }, |
| 34 | { |
| 35 | 'target_name': 'metrics_unittests', |
| 36 | 'type': 'executable', |
| 37 | 'dependencies': [ |
| 38 | 'metrics', |
| 39 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 40 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 41 | ], |
| 42 | 'sources': [ |
| 43 | 'testsupport/metrics/video_metrics_unittest.cc', |
| 44 | ], |
| 45 | }, |
| 46 | ], |
| 47 | } |