blob: 3d61b6c0f83b3f0ff997f33d8de087c4c12ec9e0 [file] [log] [blame]
kjellander@webrtc.orgcc337372012-01-04 08:09:321# 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:5411 '../build/common.gypi',
kjellander@webrtc.orgcc337372012-01-04 08:09:3212 ],
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.orga3c82bf2013-01-18 23:42:2121 'type': 'static_library',
kjellander@webrtc.orgcc337372012-01-04 08:09:3222 'dependencies': [
andrew@webrtc.orgfa418ac2012-09-11 01:34:2123 '<(webrtc_root)/common_video/common_video.gyp:common_video',
mikhal@webrtc.org9fedff72012-10-24 18:33:0424 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
kjellander@webrtc.orgcc337372012-01-04 08:09:3225 ],
kjellander@webrtc.orgcc337372012-01-04 08:09:3226 'sources': [
27 'testsupport/metrics/video_metrics.h',
28 'testsupport/metrics/video_metrics.cc',
29 ],
30 },
31 {
32 'target_name': 'metrics_unittests',
henrike@webrtc.org89c67402013-08-02 16:53:4733 'type': '<(gtest_target_type)',
kjellander@webrtc.orgcc337372012-01-04 08:09:3234 'dependencies': [
35 'metrics',
andrew@webrtc.org81cf5e42012-06-27 01:41:5436 '<(webrtc_root)/test/test.gyp:test_support_main',
37 '<(DEPTH)/testing/gtest.gyp:gtest',
kjellander@webrtc.orgcc337372012-01-04 08:09:3238 ],
39 'sources': [
40 'testsupport/metrics/video_metrics_unittest.cc',
41 ],
henrike@webrtc.org89c67402013-08-02 16:53:4742 'conditions': [
43 # TODO(henrike): remove build_with_chromium==1 when the bots are
44 # using Chromium's buildbots.
45 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
46 'dependencies': [
47 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
48 ],
49 }],
50 ],
kjellander@webrtc.orgcc337372012-01-04 08:09:3251 },
kjellander@webrtc.org33654222013-08-22 07:57:0052 ], # targets
henrike@webrtc.org89c67402013-08-02 16:53:4753 'conditions': [
54 # TODO(henrike): remove build_with_chromium==1 when the bots are using
55 # Chromium's buildbots.
56 ['include_tests==1 and build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
57 'targets': [
58 {
59 'target_name': 'metrics_unittests_apk_target',
60 'type': 'none',
61 'dependencies': [
62 '<(apk_tests_path):metrics_unittests_apk',
63 ],
64 },
65 ],
66 }],
kjellander@webrtc.org33654222013-08-22 07:57:0067 ['test_isolation_mode != "noop"', {
68 'targets': [
69 {
70 'target_name': 'metrics_unittests_run',
71 'type': 'none',
72 'dependencies': [
kjellander@webrtc.org33654222013-08-22 07:57:0073 'metrics_unittests',
74 ],
75 'includes': [
kjellander@webrtc.org2a973172013-10-02 19:31:1676 '../build/isolate.gypi',
kjellander@webrtc.org33654222013-08-22 07:57:0077 'metrics_unittests.isolate',
78 ],
79 'sources': [
80 'metrics_unittests.isolate',
81 ],
82 },
83 ],
84 }],
henrike@webrtc.org89c67402013-08-02 16:53:4785 ],
kjellander@webrtc.orgcc337372012-01-04 08:09:3286}