blob: 33da3f5b2b7a777fe0adfa9b88c2a6288dc89988 [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',
kjellander@webrtc.org5b97b122011-12-08 07:42:18 +000018 'include_dirs': [
19 '.',
20 ],
phoglund@webrtc.org1144ba22011-11-11 09:01:03 +000021 'direct_dependent_settings': {
22 'include_dirs': [
23 '.', # Some includes are hierarchical
24 ],
25 },
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000026 'dependencies': [
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000027 '<(webrtc_root)/../testing/gtest.gyp:gtest',
kjellander@webrtc.org20a370e2011-11-04 01:19:16 +000028 '<(webrtc_root)/../testing/gmock.gyp:gmock',
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000029 ],
kjellander@webrtc.org1a8d08a2011-11-03 23:28:47 +000030 'all_dependent_settings': {
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000031 'include_dirs': [
32 '.',
33 ],
34 },
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000035 'sources': [
36 'test_suite.cc',
37 'test_suite.h',
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000038 'testsupport/fileutils.h',
39 'testsupport/fileutils.cc',
kjellander@webrtc.org5b97b122011-12-08 07:42:18 +000040 'testsupport/frame_reader.h',
41 'testsupport/frame_reader.cc',
42 'testsupport/frame_writer.h',
43 'testsupport/frame_writer.cc',
44 'testsupport/packet_reader.h',
45 'testsupport/packet_reader.cc',
kjellander@webrtc.org82d91ae2011-12-05 13:03:38 +000046 'testsupport/metrics/video_metrics.h',
phoglund@webrtc.org1144ba22011-11-11 09:01:03 +000047 'testsupport/metrics/video_metrics.cc',
kjellander@webrtc.org5b97b122011-12-08 07:42:18 +000048 'testsupport/mock/mock_frame_reader.h',
49 'testsupport/mock/mock_frame_writer.h',
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000050 ],
51 },
52 {
kjellander@webrtc.org1a8d08a2011-11-03 23:28:47 +000053 # Depend on this target when you want to have test_support but also the
54 # main method needed for gtest to execute!
55 'target_name': 'test_support_main',
56 'type': 'static_library',
57 'dependencies': [
58 'test_support',
59 ],
60 'sources': [
61 'run_all_unittests.cc',
62 ],
63 },
64 {
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000065 'target_name': 'test_support_unittests',
66 'type': 'executable',
67 'dependencies': [
kjellander@webrtc.org1a8d08a2011-11-03 23:28:47 +000068 'test_support_main',
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000069 '<(webrtc_root)/../testing/gtest.gyp:gtest',
70 ],
kjellander@webrtc.org1a8d08a2011-11-03 23:28:47 +000071 'sources': [
kjellander@webrtc.org5b97b122011-12-08 07:42:18 +000072 'testsupport/unittest_utils.h',
kjellander@webrtc.org7951e812011-10-13 12:24:41 +000073 'testsupport/fileutils_unittest.cc',
kjellander@webrtc.org5b97b122011-12-08 07:42:18 +000074 'testsupport/frame_reader_unittest.cc',
75 'testsupport/frame_writer_unittest.cc',
76 'testsupport/packet_reader_unittest.cc',
kjellander@webrtc.org82d91ae2011-12-05 13:03:38 +000077 'testsupport/metrics/video_metrics_unittest.cc',
andrew@webrtc.org19eefdc2011-09-14 17:02:44 +000078 ],
79 },
80 ],
81}