blob: e01e0d9e8e74f3b287c325b6b5d5f4fa9817da2b [file] [log] [blame]
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +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# 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.org1144ba22011-11-11 09:01:03 +000018 'direct_dependent_settings': {
19 'include_dirs': [
20 '.', # Some includes are hierarchical
21 ],
22 },
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000023 'dependencies': [
phoglund@webrtc.org1144ba22011-11-11 09:01:03 +000024 '<(webrtc_root)/system_wrappers/source/system_wrappers.gyp:system_wrappers',
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000025 '<(webrtc_root)/../testing/gtest.gyp:gtest',
kjellander@webrtc.org20a370e2011-11-04 01:19:16 +000026 '<(webrtc_root)/../testing/gmock.gyp:gmock',
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000027 ],
kjellander@webrtc.org1a8d08a2011-11-03 23:28:47 +000028 'all_dependent_settings': {
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000029 'include_dirs': [
30 '.',
31 ],
32 },
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000033 'sources': [
34 'test_suite.cc',
35 'test_suite.h',
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000036 'testsupport/fileutils.h',
37 'testsupport/fileutils.cc',
phoglund@webrtc.org1144ba22011-11-11 09:01:03 +000038 'testsupport/metrics/video_metrics.cc',
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000039 ],
40 },
41 {
kjellander@webrtc.org1a8d08a2011-11-03 23:28:47 +000042 # Depend on this target when you want to have test_support but also the
43 # main method needed for gtest to execute!
44 'target_name': 'test_support_main',
45 'type': 'static_library',
46 'dependencies': [
47 'test_support',
48 ],
49 'sources': [
50 'run_all_unittests.cc',
51 ],
52 },
53 {
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000054 'target_name': 'test_support_unittests',
55 'type': 'executable',
56 'dependencies': [
kjellander@webrtc.org1a8d08a2011-11-03 23:28:47 +000057 'test_support_main',
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000058 '<(webrtc_root)/../testing/gtest.gyp:gtest',
59 ],
kjellander@webrtc.org1a8d08a2011-11-03 23:28:47 +000060 'sources': [
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000061 'testsupport/fileutils_unittest.cc',
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000062 ],
63 },
64 ],
65}