blob: 17d9877979d0c9a1e17c021d9d77ee4943307bb5 [file] [log] [blame]
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +00001# 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.org81cfcb52013-01-18 23:42:21 +000021 'type': 'static_library',
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000022 'dependencies': [
23 '<(webrtc_root)/common_video/common_video.gyp:common_video',
mikhal@webrtc.orgdc7e6cf2012-10-24 18:33:04 +000024 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000025 ],
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}