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': [ |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 +0000 | [diff] [blame] | 12 | '../build/common.gypi', |
andrew@webrtc.org | 19eefdc | 2011-09-14 17:02:44 +0000 | [diff] [blame] | 13 | ], |
| 14 | 'targets': [ |
| 15 | { |
| 16 | 'target_name': 'test_support', |
| 17 | 'type': 'static_library', |
kjellander@webrtc.org | 5b97b12 | 2011-12-08 07:42:18 +0000 | [diff] [blame] | 18 | 'include_dirs': [ |
| 19 | '.', |
| 20 | ], |
phoglund@webrtc.org | 1144ba2 | 2011-11-11 09:01:03 +0000 | [diff] [blame] | 21 | 'direct_dependent_settings': { |
| 22 | 'include_dirs': [ |
| 23 | '.', # Some includes are hierarchical |
| 24 | ], |
| 25 | }, |
andrew@webrtc.org | 19eefdc | 2011-09-14 17:02:44 +0000 | [diff] [blame] | 26 | 'dependencies': [ |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 +0000 | [diff] [blame] | 27 | '<(DEPTH)/testing/gtest.gyp:gtest', |
| 28 | '<(DEPTH)/testing/gmock.gyp:gmock', |
andrew@webrtc.org | 19eefdc | 2011-09-14 17:02:44 +0000 | [diff] [blame] | 29 | ], |
kjellander@webrtc.org | 1a8d08a | 2011-11-03 23:28:47 +0000 | [diff] [blame] | 30 | 'all_dependent_settings': { |
kjellander@webrtc.org | 7951e81 | 2011-10-13 12:24:41 +0000 | [diff] [blame] | 31 | 'include_dirs': [ |
| 32 | '.', |
| 33 | ], |
| 34 | }, |
andrew@webrtc.org | 19eefdc | 2011-09-14 17:02:44 +0000 | [diff] [blame] | 35 | 'sources': [ |
| 36 | 'test_suite.cc', |
| 37 | 'test_suite.h', |
kjellander@webrtc.org | 7951e81 | 2011-10-13 12:24:41 +0000 | [diff] [blame] | 38 | 'testsupport/fileutils.cc', |
andrew@webrtc.org | 2009f6b | 2012-11-20 00:20:20 +0000 | [diff] [blame] | 39 | 'testsupport/fileutils.h', |
kjellander@webrtc.org | 5b97b12 | 2011-12-08 07:42:18 +0000 | [diff] [blame] | 40 | 'testsupport/frame_reader.cc', |
andrew@webrtc.org | 2009f6b | 2012-11-20 00:20:20 +0000 | [diff] [blame] | 41 | 'testsupport/frame_reader.h', |
kjellander@webrtc.org | 5b97b12 | 2011-12-08 07:42:18 +0000 | [diff] [blame] | 42 | 'testsupport/frame_writer.cc', |
andrew@webrtc.org | 2009f6b | 2012-11-20 00:20:20 +0000 | [diff] [blame] | 43 | 'testsupport/frame_writer.h', |
kjellander@webrtc.org | 51198f1 | 2012-02-21 17:53:46 +0000 | [diff] [blame] | 44 | 'testsupport/gtest_prod_util.h', |
phoglund@webrtc.org | d005468 | 2013-01-09 16:53:42 +0000 | [diff] [blame] | 45 | 'testsupport/gtest_disable.h', |
kjellander@webrtc.org | 5b97b12 | 2011-12-08 07:42:18 +0000 | [diff] [blame] | 46 | 'testsupport/mock/mock_frame_reader.h', |
| 47 | 'testsupport/mock/mock_frame_writer.h', |
andrew@webrtc.org | 2009f6b | 2012-11-20 00:20:20 +0000 | [diff] [blame] | 48 | 'testsupport/packet_reader.cc', |
| 49 | 'testsupport/packet_reader.h', |
| 50 | 'testsupport/perf_test.cc', |
| 51 | 'testsupport/perf_test.h', |
kjellander@webrtc.org | 7951e81 | 2011-10-13 12:24:41 +0000 | [diff] [blame] | 52 | ], |
| 53 | }, |
| 54 | { |
kjellander@webrtc.org | 1a8d08a | 2011-11-03 23:28:47 +0000 | [diff] [blame] | 55 | # Depend on this target when you want to have test_support but also the |
| 56 | # main method needed for gtest to execute! |
| 57 | 'target_name': 'test_support_main', |
| 58 | 'type': 'static_library', |
| 59 | 'dependencies': [ |
| 60 | 'test_support', |
| 61 | ], |
| 62 | 'sources': [ |
| 63 | 'run_all_unittests.cc', |
| 64 | ], |
| 65 | }, |
| 66 | { |
phoglund@webrtc.org | 54e22eb | 2012-08-08 08:27:46 +0000 | [diff] [blame] | 67 | # Depend on this target when you want to have test_support and a special |
| 68 | # main for mac which will run your test on a worker thread and consume |
| 69 | # events on the main thread. Useful if you want to access a webcam. |
| 70 | # This main will provide all the scaffolding and objective-c black magic |
| 71 | # for you. All you need to do is to implement a function in the |
| 72 | # run_threaded_main_mac.h file (ImplementThisToRunYourTest). |
| 73 | 'target_name': 'test_support_main_threaded_mac', |
| 74 | 'type': 'static_library', |
| 75 | 'dependencies': [ |
| 76 | 'test_support', |
| 77 | ], |
| 78 | 'sources': [ |
| 79 | 'testsupport/mac/run_threaded_main_mac.h', |
| 80 | 'testsupport/mac/run_threaded_main_mac.mm', |
| 81 | ], |
| 82 | }, |
| 83 | { |
kjellander@webrtc.org | 7951e81 | 2011-10-13 12:24:41 +0000 | [diff] [blame] | 84 | 'target_name': 'test_support_unittests', |
| 85 | 'type': 'executable', |
| 86 | 'dependencies': [ |
kjellander@webrtc.org | 1a8d08a | 2011-11-03 23:28:47 +0000 | [diff] [blame] | 87 | 'test_support_main', |
andrew@webrtc.org | 81cf5e4 | 2012-06-27 01:41:54 +0000 | [diff] [blame] | 88 | '<(DEPTH)/testing/gtest.gyp:gtest', |
kjellander@webrtc.org | 7951e81 | 2011-10-13 12:24:41 +0000 | [diff] [blame] | 89 | ], |
kjellander@webrtc.org | 1a8d08a | 2011-11-03 23:28:47 +0000 | [diff] [blame] | 90 | 'sources': [ |
kjellander@webrtc.org | 5b97b12 | 2011-12-08 07:42:18 +0000 | [diff] [blame] | 91 | 'testsupport/unittest_utils.h', |
kjellander@webrtc.org | 7951e81 | 2011-10-13 12:24:41 +0000 | [diff] [blame] | 92 | 'testsupport/fileutils_unittest.cc', |
kjellander@webrtc.org | 5b97b12 | 2011-12-08 07:42:18 +0000 | [diff] [blame] | 93 | 'testsupport/frame_reader_unittest.cc', |
| 94 | 'testsupport/frame_writer_unittest.cc', |
| 95 | 'testsupport/packet_reader_unittest.cc', |
andrew@webrtc.org | 2009f6b | 2012-11-20 00:20:20 +0000 | [diff] [blame] | 96 | 'testsupport/perf_test_unittest.cc', |
andrew@webrtc.org | 19eefdc | 2011-09-14 17:02:44 +0000 | [diff] [blame] | 97 | ], |
| 98 | }, |
kjellander@webrtc.org | 3e47a0a | 2013-01-25 10:10:53 +0000 | [diff] [blame] | 99 | { |
| 100 | 'target_name': 'buildbot_tests_scripts', |
| 101 | 'type': 'none', |
| 102 | 'copies': [ |
| 103 | { |
| 104 | 'destination': '<(PRODUCT_DIR)', |
| 105 | 'files': [ |
| 106 | 'buildbot_tests.py', |
| 107 | '<(DEPTH)/tools/e2e_quality/audio/run_audio_test.py', |
| 108 | ], |
| 109 | }, |
| 110 | { |
| 111 | 'destination': '<(PRODUCT_DIR)/perf', |
| 112 | 'files': [ |
kjellander@webrtc.org | d3ecb61 | 2013-01-25 12:18:15 +0000 | [diff] [blame] | 113 | '<(DEPTH)/tools/perf/__init__.py', |
| 114 | '<(DEPTH)/tools/perf/perf_utils.py', |
kjellander@webrtc.org | 3e47a0a | 2013-01-25 10:10:53 +0000 | [diff] [blame] | 115 | ], |
| 116 | }, |
| 117 | ], |
| 118 | }, # target buildbot_tests_scripts |
andrew@webrtc.org | 19eefdc | 2011-09-14 17:02:44 +0000 | [diff] [blame] | 119 | ], |
| 120 | } |