kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 1 | # Copyright (c) 2013 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 | # This file exists in two versions. A no-op version under |
kjellander | 208d198 | 2016-05-31 04:01:38 -0700 | [diff] [blame] | 10 | # webrtc/build/android_tests_noop.gyp and this one. This gyp file builds the |
| 11 | # tests (for Android) assuming that WebRTC is built inside a Chromium |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 12 | # workspace. The no-op version is included when building WebRTC without |
| 13 | # Chromium. This is a workaround for the fact that 'includes' don't expand |
| 14 | # variables and that the relative location of apk_test.gypi is different for |
| 15 | # WebRTC when built as part of Chromium and when it is built without Chromium. |
| 16 | { |
| 17 | 'includes': [ |
| 18 | 'common.gypi', |
| 19 | ], |
| 20 | 'targets': [ |
| 21 | { |
kjellander | e532aec | 2016-04-17 20:08:20 -0700 | [diff] [blame] | 22 | 'target_name': 'audio_codec_speed_tests_apk', |
| 23 | 'type': 'none', |
| 24 | 'variables': { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 25 | 'shard_timeout': 900, |
kjellander | e532aec | 2016-04-17 20:08:20 -0700 | [diff] [blame] | 26 | 'test_suite_name': 'audio_codec_speed_tests', |
| 27 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)audio_codec_speed_tests<(SHARED_LIB_SUFFIX)', |
| 28 | 'isolate_file': '../modules/audio_codec_speed_tests.isolate', |
| 29 | }, |
| 30 | 'dependencies': [ |
| 31 | '<(webrtc_root)/modules/modules.gyp:audio_codec_speed_tests', |
| 32 | ], |
| 33 | 'includes': [ |
| 34 | '../../build/apk_test.gypi', |
| 35 | ], |
| 36 | }, |
| 37 | { |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 38 | 'target_name': 'audio_decoder_unittests_apk', |
| 39 | 'type': 'none', |
| 40 | 'variables': { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 41 | 'shard_timeout': 900, |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 42 | 'test_suite_name': 'audio_decoder_unittests', |
| 43 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)audio_decoder_unittests<(SHARED_LIB_SUFFIX)', |
agrieve | 39530c4 | 2016-04-07 08:18:34 -0700 | [diff] [blame] | 44 | 'isolate_file': '../modules/audio_decoder_unittests.isolate', |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 45 | }, |
| 46 | 'dependencies': [ |
| 47 | '<(webrtc_root)/modules/modules.gyp:audio_decoder_unittests', |
| 48 | ], |
| 49 | 'includes': [ |
| 50 | '../../build/apk_test.gypi', |
| 51 | ], |
| 52 | }, |
| 53 | { |
| 54 | 'target_name': 'common_audio_unittests_apk', |
| 55 | 'type': 'none', |
| 56 | 'variables': { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 57 | 'shard_timeout': 900, |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 58 | 'test_suite_name': 'common_audio_unittests', |
| 59 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)common_audio_unittests<(SHARED_LIB_SUFFIX)', |
agrieve | 39530c4 | 2016-04-07 08:18:34 -0700 | [diff] [blame] | 60 | 'isolate_file': '../common_audio/common_audio_unittests.isolate', |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 61 | }, |
| 62 | 'dependencies': [ |
| 63 | '<(webrtc_root)/common_audio/common_audio.gyp:common_audio_unittests', |
| 64 | ], |
| 65 | 'includes': [ |
| 66 | '../../build/apk_test.gypi', |
| 67 | ], |
| 68 | }, |
| 69 | { |
| 70 | 'target_name': 'common_video_unittests_apk', |
| 71 | 'type': 'none', |
| 72 | 'variables': { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 73 | 'shard_timeout': 900, |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 74 | 'test_suite_name': 'common_video_unittests', |
| 75 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)common_video_unittests<(SHARED_LIB_SUFFIX)', |
agrieve | 39530c4 | 2016-04-07 08:18:34 -0700 | [diff] [blame] | 76 | 'isolate_file': '../common_video/common_video_unittests.isolate', |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 77 | }, |
| 78 | 'dependencies': [ |
| 79 | '<(webrtc_root)/common_video/common_video_unittests.gyp:common_video_unittests', |
| 80 | ], |
| 81 | 'includes': [ |
| 82 | '../../build/apk_test.gypi', |
| 83 | ], |
| 84 | }, |
| 85 | { |
| 86 | 'target_name': 'modules_tests_apk', |
| 87 | 'type': 'none', |
| 88 | 'variables': { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 89 | 'shard_timeout': 900, |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 90 | 'test_suite_name': 'modules_tests', |
| 91 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_tests<(SHARED_LIB_SUFFIX)', |
agrieve | 39530c4 | 2016-04-07 08:18:34 -0700 | [diff] [blame] | 92 | 'isolate_file': '../modules/modules_tests.isolate', |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 93 | }, |
| 94 | 'dependencies': [ |
| 95 | '<(webrtc_root)/modules/modules.gyp:modules_tests', |
| 96 | ], |
| 97 | 'includes': [ |
| 98 | '../../build/apk_test.gypi', |
| 99 | ], |
| 100 | }, |
| 101 | { |
| 102 | 'target_name': 'modules_unittests_apk', |
| 103 | 'type': 'none', |
| 104 | 'variables': { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 105 | 'shard_timeout': 900, |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 106 | 'test_suite_name': 'modules_unittests', |
| 107 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_unittests<(SHARED_LIB_SUFFIX)', |
agrieve | 39530c4 | 2016-04-07 08:18:34 -0700 | [diff] [blame] | 108 | 'isolate_file': '../modules/modules_unittests.isolate', |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 109 | }, |
| 110 | 'dependencies': [ |
| 111 | '<(webrtc_root)/modules/modules.gyp:modules_unittests', |
henrika@webrtc.org | 474d1eb | 2015-03-09 12:39:53 +0000 | [diff] [blame] | 112 | 'audio_device_java', |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 113 | ], |
| 114 | 'includes': [ |
| 115 | '../../build/apk_test.gypi', |
| 116 | ], |
| 117 | }, |
| 118 | { |
kjellander | e532aec | 2016-04-17 20:08:20 -0700 | [diff] [blame] | 119 | 'target_name': 'peerconnection_unittests_apk', |
| 120 | 'type': 'none', |
| 121 | 'variables': { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 122 | 'shard_timeout': 900, |
kjellander | e532aec | 2016-04-17 20:08:20 -0700 | [diff] [blame] | 123 | 'test_suite_name': 'peerconnection_unittests', |
| 124 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)peerconnection_unittests<(SHARED_LIB_SUFFIX)', |
| 125 | 'isolate_file': '../api/peerconnection_unittests.isolate', |
| 126 | }, |
| 127 | 'dependencies': [ |
| 128 | '<(webrtc_root)/api/api_tests.gyp:peerconnection_unittests', |
kjellander | 442e6ee | 2016-06-20 01:34:06 -0700 | [diff] [blame] | 129 | '<(webrtc_root)/api/api_java.gyp:libjingle_peerconnection_java', |
kjellander | e532aec | 2016-04-17 20:08:20 -0700 | [diff] [blame] | 130 | ], |
| 131 | 'includes': [ |
| 132 | '../../build/apk_test.gypi', |
| 133 | ], |
| 134 | }, |
| 135 | { |
kjellander@webrtc.org | 7572d85 | 2015-03-04 08:47:39 +0000 | [diff] [blame] | 136 | 'target_name': 'rtc_unittests_apk', |
| 137 | 'type': 'none', |
| 138 | 'variables': { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 139 | 'shard_timeout': 900, |
kjellander@webrtc.org | 7572d85 | 2015-03-04 08:47:39 +0000 | [diff] [blame] | 140 | 'test_suite_name': 'rtc_unittests', |
| 141 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)rtc_unittests<(SHARED_LIB_SUFFIX)', |
agrieve | 39530c4 | 2016-04-07 08:18:34 -0700 | [diff] [blame] | 142 | 'isolate_file': '../rtc_unittests.isolate', |
kjellander@webrtc.org | 7572d85 | 2015-03-04 08:47:39 +0000 | [diff] [blame] | 143 | }, |
| 144 | 'dependencies': [ |
| 145 | '<(webrtc_root)/webrtc.gyp:rtc_unittests', |
| 146 | ], |
| 147 | 'includes': [ |
| 148 | '../../build/apk_test.gypi', |
| 149 | ], |
| 150 | }, |
| 151 | { |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 152 | 'target_name': 'system_wrappers_unittests_apk', |
| 153 | 'type': 'none', |
| 154 | 'variables': { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 155 | 'shard_timeout': 900, |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 156 | 'test_suite_name': 'system_wrappers_unittests', |
| 157 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)system_wrappers_unittests<(SHARED_LIB_SUFFIX)', |
agrieve | 39530c4 | 2016-04-07 08:18:34 -0700 | [diff] [blame] | 158 | 'isolate_file': '../system_wrappers/system_wrappers_unittests.isolate', |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 159 | }, |
| 160 | 'dependencies': [ |
andresp@webrtc.org | 86e1e48 | 2015-01-14 09:30:52 +0000 | [diff] [blame] | 161 | '<(webrtc_root)/system_wrappers/system_wrappers_tests.gyp:system_wrappers_unittests', |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 162 | ], |
| 163 | 'includes': [ |
| 164 | '../../build/apk_test.gypi', |
| 165 | ], |
| 166 | }, |
| 167 | { |
| 168 | 'target_name': 'test_support_unittests_apk', |
| 169 | 'type': 'none', |
| 170 | 'variables': { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 171 | 'shard_timeout': 900, |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 172 | 'test_suite_name': 'test_support_unittests', |
| 173 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)test_support_unittests<(SHARED_LIB_SUFFIX)', |
agrieve | 39530c4 | 2016-04-07 08:18:34 -0700 | [diff] [blame] | 174 | 'isolate_file': '../test/test_support_unittests.isolate', |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 175 | }, |
| 176 | 'dependencies': [ |
| 177 | '<(webrtc_root)/test/test.gyp:test_support_unittests', |
| 178 | ], |
| 179 | 'includes': [ |
| 180 | '../../build/apk_test.gypi', |
| 181 | ], |
| 182 | }, |
| 183 | { |
| 184 | 'target_name': 'tools_unittests_apk', |
| 185 | 'type': 'none', |
| 186 | 'variables': { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 187 | 'shard_timeout': 900, |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 188 | 'test_suite_name': 'tools_unittests', |
| 189 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)tools_unittests<(SHARED_LIB_SUFFIX)', |
agrieve | 39530c4 | 2016-04-07 08:18:34 -0700 | [diff] [blame] | 190 | 'isolate_file': '../tools/tools_unittests.isolate', |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 191 | }, |
| 192 | 'dependencies': [ |
| 193 | '<(webrtc_root)/tools/tools.gyp:tools_unittests', |
| 194 | ], |
| 195 | 'includes': [ |
| 196 | '../../build/apk_test.gypi', |
| 197 | ], |
| 198 | }, |
| 199 | { |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 200 | 'target_name': 'video_engine_tests_apk', |
| 201 | 'type': 'none', |
| 202 | 'variables': { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 203 | 'shard_timeout': 900, |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 204 | 'test_suite_name': 'video_engine_tests', |
| 205 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)video_engine_tests<(SHARED_LIB_SUFFIX)', |
agrieve | 39530c4 | 2016-04-07 08:18:34 -0700 | [diff] [blame] | 206 | 'isolate_file': '../video_engine_tests.isolate', |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 207 | }, |
| 208 | 'dependencies': [ |
| 209 | '<(webrtc_root)/webrtc.gyp:video_engine_tests', |
| 210 | ], |
| 211 | 'includes': [ |
| 212 | '../../build/apk_test.gypi', |
| 213 | ], |
| 214 | }, |
| 215 | { |
| 216 | 'target_name': 'voice_engine_unittests_apk', |
| 217 | 'type': 'none', |
| 218 | 'variables': { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 219 | 'shard_timeout': 900, |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 220 | 'test_suite_name': 'voice_engine_unittests', |
| 221 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)voice_engine_unittests<(SHARED_LIB_SUFFIX)', |
agrieve | 39530c4 | 2016-04-07 08:18:34 -0700 | [diff] [blame] | 222 | 'isolate_file': '../voice_engine/voice_engine_unittests.isolate', |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 223 | }, |
| 224 | 'dependencies': [ |
| 225 | '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine_unittests', |
| 226 | ], |
| 227 | 'includes': [ |
| 228 | '../../build/apk_test.gypi', |
| 229 | ], |
| 230 | }, |
| 231 | { |
| 232 | 'target_name': 'webrtc_perf_tests_apk', |
| 233 | 'type': 'none', |
| 234 | 'variables': { |
| 235 | 'test_suite_name': 'webrtc_perf_tests', |
| 236 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)webrtc_perf_tests<(SHARED_LIB_SUFFIX)', |
kjellander@webrtc.org | 1a45cfb | 2016-04-12 22:15:09 +0200 | [diff] [blame] | 237 | 'isolate_file': '../webrtc_perf_tests.isolate', |
agrieve | d0554b8 | 2016-04-12 09:45:00 -0700 | [diff] [blame] | 238 | 'shard_timeout': 2700, |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 239 | }, |
| 240 | 'dependencies': [ |
| 241 | '<(webrtc_root)/webrtc.gyp:webrtc_perf_tests', |
| 242 | ], |
| 243 | 'includes': [ |
| 244 | '../../build/apk_test.gypi', |
| 245 | ], |
| 246 | }, |
| 247 | { |
Peter Boström | 95192fb | 2015-10-29 12:41:56 +0100 | [diff] [blame] | 248 | 'target_name': 'webrtc_nonparallel_tests_apk', |
| 249 | 'type': 'none', |
| 250 | 'variables': { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 251 | 'shard_timeout': 900, |
Peter Boström | 95192fb | 2015-10-29 12:41:56 +0100 | [diff] [blame] | 252 | 'test_suite_name': 'webrtc_nonparallel_tests', |
| 253 | 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)webrtc_nonparallel_tests<(SHARED_LIB_SUFFIX)', |
kjellander@webrtc.org | 1a45cfb | 2016-04-12 22:15:09 +0200 | [diff] [blame] | 254 | 'isolate_file': '../webrtc_nonparallel_tests.isolate', |
Peter Boström | 95192fb | 2015-10-29 12:41:56 +0100 | [diff] [blame] | 255 | }, |
| 256 | 'dependencies': [ |
| 257 | '<(webrtc_root)/webrtc.gyp:webrtc_nonparallel_tests', |
| 258 | ], |
| 259 | 'includes': [ |
| 260 | '../../build/apk_test.gypi', |
| 261 | ], |
| 262 | }, |
| 263 | { |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 264 | 'target_name': 'android_junit_tests', |
| 265 | 'type': 'none', |
| 266 | 'dependencies': [ |
kjellander | 442e6ee | 2016-06-20 01:34:06 -0700 | [diff] [blame] | 267 | '<(webrtc_root)/api/api_java.gyp:libjingle_peerconnection_java', |
magjed | ce17e01 | 2016-06-01 00:43:59 -0700 | [diff] [blame] | 268 | '<(DEPTH)/base/base.gyp:base_java', |
| 269 | '<(DEPTH)/base/base.gyp:base_java_test_support', |
| 270 | '<(DEPTH)/base/base.gyp:base_junit_test_support', |
| 271 | ], |
| 272 | 'variables': { |
| 273 | 'main_class': 'org.chromium.testing.local.JunitTestMain', |
| 274 | 'src_paths': [ |
| 275 | '../androidjunit/', |
| 276 | ], |
| 277 | 'test_type': 'junit', |
| 278 | 'wrapper_script_name': 'helper/<(_target_name)', |
| 279 | }, |
| 280 | 'includes': [ |
| 281 | '../../build/android/test_runner.gypi', |
| 282 | '../../build/host_jar.gypi', |
| 283 | ], |
| 284 | }, |
| 285 | { |
henrika@webrtc.org | 474d1eb | 2015-03-09 12:39:53 +0000 | [diff] [blame] | 286 | 'target_name': 'audio_device_java', |
| 287 | 'type': 'none', |
| 288 | 'variables': { |
| 289 | 'java_in_dir': '<(webrtc_root)/modules/audio_device/android/java', |
Jiayang Liu | 7754285 | 2015-09-16 16:20:36 -0700 | [diff] [blame] | 290 | 'additional_src_dirs': [ '<(webrtc_root)/base/java/src', ], |
henrika@webrtc.org | 474d1eb | 2015-03-09 12:39:53 +0000 | [diff] [blame] | 291 | 'never_lint': 1, |
| 292 | }, |
| 293 | 'includes': [ |
| 294 | '../../build/java.gypi', |
| 295 | ], |
| 296 | }, |
kjellander@webrtc.org | 0372b93 | 2014-09-03 14:34:46 +0000 | [diff] [blame] | 297 | ], |
| 298 | } |