kjellander@webrtc.org | cc33737 | 2012-01-04 08:09:32 | [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': [ |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 | [diff] [blame] | 11 | '../build/common.gypi', |
kjellander@webrtc.org | cc33737 | 2012-01-04 08:09:32 | [diff] [blame] | 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 | a3c82bf | 2013-01-18 23:42:21 | [diff] [blame] | 21 | 'type': 'static_library', |
kjellander@webrtc.org | cc33737 | 2012-01-04 08:09:32 | [diff] [blame] | 22 | 'dependencies': [ |
andrew@webrtc.org | fa418ac | 2012-09-11 01:34:21 | [diff] [blame] | 23 | '<(webrtc_root)/common_video/common_video.gyp:common_video', |
mikhal@webrtc.org | 9fedff7 | 2012-10-24 18:33:04 | [diff] [blame] | 24 | '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers', |
kjellander@webrtc.org | cc33737 | 2012-01-04 08:09:32 | [diff] [blame] | 25 | ], |
kjellander@webrtc.org | cc33737 | 2012-01-04 08:09:32 | [diff] [blame] | 26 | 'sources': [ |
| 27 | 'testsupport/metrics/video_metrics.h', |
| 28 | 'testsupport/metrics/video_metrics.cc', |
| 29 | ], |
| 30 | }, |
| 31 | { |
| 32 | 'target_name': 'metrics_unittests', |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 | [diff] [blame] | 33 | 'type': '<(gtest_target_type)', |
kjellander@webrtc.org | cc33737 | 2012-01-04 08:09:32 | [diff] [blame] | 34 | 'dependencies': [ |
| 35 | 'metrics', |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 | [diff] [blame] | 36 | '<(webrtc_root)/test/test.gyp:test_support_main', |
| 37 | '<(DEPTH)/testing/gtest.gyp:gtest', |
kjellander@webrtc.org | cc33737 | 2012-01-04 08:09:32 | [diff] [blame] | 38 | ], |
| 39 | 'sources': [ |
| 40 | 'testsupport/metrics/video_metrics_unittest.cc', |
| 41 | ], |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 | [diff] [blame] | 42 | '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.org | cc33737 | 2012-01-04 08:09:32 | [diff] [blame] | 51 | }, |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 | [diff] [blame] | 52 | ], # targets |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 | [diff] [blame] | 53 | '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.org | 3365422 | 2013-08-22 07:57:00 | [diff] [blame] | 67 | ['test_isolation_mode != "noop"', { |
| 68 | 'targets': [ |
| 69 | { |
| 70 | 'target_name': 'metrics_unittests_run', |
| 71 | 'type': 'none', |
| 72 | 'dependencies': [ |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 | [diff] [blame] | 73 | 'metrics_unittests', |
| 74 | ], |
| 75 | 'includes': [ |
kjellander@webrtc.org | 2a97317 | 2013-10-02 19:31:16 | [diff] [blame] | 76 | '../build/isolate.gypi', |
kjellander@webrtc.org | 3365422 | 2013-08-22 07:57:00 | [diff] [blame] | 77 | 'metrics_unittests.isolate', |
| 78 | ], |
| 79 | 'sources': [ |
| 80 | 'metrics_unittests.isolate', |
| 81 | ], |
| 82 | }, |
| 83 | ], |
| 84 | }], |
henrike@webrtc.org | 89c6740 | 2013-08-02 16:53:47 | [diff] [blame] | 85 | ], |
kjellander@webrtc.org | cc33737 | 2012-01-04 08:09:32 | [diff] [blame] | 86 | } |