andrew@webrtc.org | 19eefdc | 2011-09-14 17:02:44 +0000 | [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 | # TODO(andrew): consider moving test_support to src/base/test. |
| 10 | { |
| 11 | 'includes': [ |
| 12 | '../src/build/common.gypi', |
| 13 | ], |
| 14 | 'targets': [ |
| 15 | { |
| 16 | 'target_name': 'test_support', |
| 17 | 'type': 'static_library', |
phoglund@webrtc.org | 1144ba2 | 2011-11-11 09:01:03 +0000 | [diff] [blame] | 18 | 'direct_dependent_settings': { |
| 19 | 'include_dirs': [ |
| 20 | '.', # Some includes are hierarchical |
| 21 | ], |
| 22 | }, |
andrew@webrtc.org | 19eefdc | 2011-09-14 17:02:44 +0000 | [diff] [blame] | 23 | 'dependencies': [ |
kjellander@webrtc.org | 7951e81 | 2011-10-13 12:24:41 +0000 | [diff] [blame] | 24 | '<(webrtc_root)/../testing/gtest.gyp:gtest', |
kjellander@webrtc.org | 20a370e | 2011-11-04 01:19:16 +0000 | [diff] [blame] | 25 | '<(webrtc_root)/../testing/gmock.gyp:gmock', |
andrew@webrtc.org | 19eefdc | 2011-09-14 17:02:44 +0000 | [diff] [blame] | 26 | ], |
kjellander@webrtc.org | 1a8d08a | 2011-11-03 23:28:47 +0000 | [diff] [blame] | 27 | 'all_dependent_settings': { |
kjellander@webrtc.org | 7951e81 | 2011-10-13 12:24:41 +0000 | [diff] [blame] | 28 | 'include_dirs': [ |
| 29 | '.', |
| 30 | ], |
| 31 | }, |
andrew@webrtc.org | 19eefdc | 2011-09-14 17:02:44 +0000 | [diff] [blame] | 32 | 'sources': [ |
| 33 | 'test_suite.cc', |
| 34 | 'test_suite.h', |
kjellander@webrtc.org | 7951e81 | 2011-10-13 12:24:41 +0000 | [diff] [blame] | 35 | 'testsupport/fileutils.h', |
| 36 | 'testsupport/fileutils.cc', |
phoglund@webrtc.org | 1144ba2 | 2011-11-11 09:01:03 +0000 | [diff] [blame] | 37 | 'testsupport/metrics/video_metrics.cc', |
kjellander@webrtc.org | 7951e81 | 2011-10-13 12:24:41 +0000 | [diff] [blame] | 38 | ], |
| 39 | }, |
| 40 | { |
kjellander@webrtc.org | 1a8d08a | 2011-11-03 23:28:47 +0000 | [diff] [blame] | 41 | # Depend on this target when you want to have test_support but also the |
| 42 | # main method needed for gtest to execute! |
| 43 | 'target_name': 'test_support_main', |
| 44 | 'type': 'static_library', |
| 45 | 'dependencies': [ |
| 46 | 'test_support', |
| 47 | ], |
| 48 | 'sources': [ |
| 49 | 'run_all_unittests.cc', |
| 50 | ], |
| 51 | }, |
| 52 | { |
kjellander@webrtc.org | 7951e81 | 2011-10-13 12:24:41 +0000 | [diff] [blame] | 53 | 'target_name': 'test_support_unittests', |
| 54 | 'type': 'executable', |
| 55 | 'dependencies': [ |
kjellander@webrtc.org | 1a8d08a | 2011-11-03 23:28:47 +0000 | [diff] [blame] | 56 | 'test_support_main', |
kjellander@webrtc.org | 7951e81 | 2011-10-13 12:24:41 +0000 | [diff] [blame] | 57 | '<(webrtc_root)/../testing/gtest.gyp:gtest', |
| 58 | ], |
kjellander@webrtc.org | 1a8d08a | 2011-11-03 23:28:47 +0000 | [diff] [blame] | 59 | 'sources': [ |
kjellander@webrtc.org | 7951e81 | 2011-10-13 12:24:41 +0000 | [diff] [blame] | 60 | 'testsupport/fileutils_unittest.cc', |
andrew@webrtc.org | 19eefdc | 2011-09-14 17:02:44 +0000 | [diff] [blame] | 61 | ], |
| 62 | }, |
| 63 | ], |
| 64 | } |