Home | History | Annotate | Download | only in test
      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': [
     11     '../src/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',
     21       'type': '<(library)',
     22       'dependencies': [
     23         '<(webrtc_root)/common_video/common_video.gyp:webrtc_libyuv',
     24       ],
     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',
     38         '<(webrtc_root)/../test/test.gyp:test_support_main',
     39         '<(webrtc_root)/../testing/gtest.gyp:gtest',
     40       ],
     41       'sources': [
     42         'testsupport/metrics/video_metrics_unittest.cc',
     43       ],
     44     },
     45   ],
     46 }
     47