blob: f4c3e2d95414eaffda46e88e2cafc43fef3f006e [file] [log] [blame]
kjellander@webrtc.orgcc337372012-01-04 08:09:32 +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': [
andrew@webrtc.org81cf5e42012-06-27 01:41:54 +000011 '../build/common.gypi',
kjellander@webrtc.orgcc337372012-01-04 08:09:32 +000012 ],
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',
21 'type': '<(library)',
22 'dependencies': [
andrew@webrtc.orgfa418ac2012-09-11 01:34:21 +000023 '<(webrtc_root)/common_video/common_video.gyp:common_video',
kjellander@webrtc.orgcc337372012-01-04 08:09:32 +000024 ],
25 'include_dirs': [
26 '.',
27 ],
28 'sources': [
29 'testsupport/metrics/video_metrics.h',
30 'testsupport/metrics/video_metrics.cc',
31 ],
32 },
33 {
34 'target_name': 'metrics_unittests',
35 'type': 'executable',
36 'dependencies': [
37 'metrics',
andrew@webrtc.org81cf5e42012-06-27 01:41:54 +000038 '<(webrtc_root)/test/test.gyp:test_support_main',
39 '<(DEPTH)/testing/gtest.gyp:gtest',
kjellander@webrtc.orgcc337372012-01-04 08:09:32 +000040 ],
41 'sources': [
42 'testsupport/metrics/video_metrics_unittest.cc',
43 ],
44 },
45 ],
46}