blob: 0f0774a732aad3e39310f553809a2087960f2183 [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',
wjia@webrtc.orga3c82bf2013-01-18 23:42:21 +000021 'type': 'static_library',
kjellander@webrtc.orgcc337372012-01-04 08:09:32 +000022 'dependencies': [
andrew@webrtc.orgfa418ac2012-09-11 01:34:21 +000023 '<(webrtc_root)/common_video/common_video.gyp:common_video',
mikhal@webrtc.org9fedff72012-10-24 18:33:04 +000024 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
kjellander@webrtc.orgcc337372012-01-04 08:09:32 +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',
henrike@webrtc.org89c67402013-08-02 16:53:47 +000036 'type': '<(gtest_target_type)',
kjellander@webrtc.orgcc337372012-01-04 08:09:32 +000037 'dependencies': [
38 'metrics',
andrew@webrtc.org81cf5e42012-06-27 01:41:54 +000039 '<(webrtc_root)/test/test.gyp:test_support_main',
40 '<(DEPTH)/testing/gtest.gyp:gtest',
kjellander@webrtc.orgcc337372012-01-04 08:09:32 +000041 ],
42 'sources': [
43 'testsupport/metrics/video_metrics_unittest.cc',
44 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +000045 'conditions': [
46 # TODO(henrike): remove build_with_chromium==1 when the bots are
47 # using Chromium's buildbots.
48 ['build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
49 'dependencies': [
50 '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
51 ],
52 }],
53 ],
kjellander@webrtc.orgcc337372012-01-04 08:09:32 +000054 },
55 ],
henrike@webrtc.org89c67402013-08-02 16:53:47 +000056 'conditions': [
57 # TODO(henrike): remove build_with_chromium==1 when the bots are using
58 # Chromium's buildbots.
59 ['include_tests==1 and build_with_chromium==1 and OS=="android" and gtest_target_type=="shared_library"', {
60 'targets': [
61 {
62 'target_name': 'metrics_unittests_apk_target',
63 'type': 'none',
64 'dependencies': [
65 '<(apk_tests_path):metrics_unittests_apk',
66 ],
67 },
68 ],
69 }],
70 ],
kjellander@webrtc.orgcc337372012-01-04 08:09:32 +000071}