blob: b010f1eb963231c3d3b835feffc8907b433af027 [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',
18 'dependencies': [
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000019 '<(webrtc_root)/../testing/gtest.gyp:gtest',
kjellander@webrtc.org20a370e2011-11-04 01:19:16 +000020 '<(webrtc_root)/../testing/gmock.gyp:gmock',
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000021 ],
kjellander@webrtc.org1a8d08a2011-11-03 23:28:47 +000022 'all_dependent_settings': {
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000023 'include_dirs': [
24 '.',
25 ],
26 },
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000027 'sources': [
28 'test_suite.cc',
29 'test_suite.h',
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000030 'testsupport/fileutils.h',
31 'testsupport/fileutils.cc',
32 ],
33 },
34 {
kjellander@webrtc.org1a8d08a2011-11-03 23:28:47 +000035 # Depend on this target when you want to have test_support but also the
36 # main method needed for gtest to execute!
37 'target_name': 'test_support_main',
38 'type': 'static_library',
39 'dependencies': [
40 'test_support',
41 ],
42 'sources': [
43 'run_all_unittests.cc',
44 ],
45 },
46 {
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000047 'target_name': 'test_support_unittests',
48 'type': 'executable',
49 'dependencies': [
kjellander@webrtc.org1a8d08a2011-11-03 23:28:47 +000050 'test_support_main',
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000051 '<(webrtc_root)/../testing/gtest.gyp:gtest',
52 ],
kjellander@webrtc.org1a8d08a2011-11-03 23:28:47 +000053 'sources': [
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000054 'testsupport/fileutils_unittest.cc',
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000055 ],
56 },
57 ],
58}