| OLD | NEW |
| 1 # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 # This file exists in two versions. A no-op version under | 9 # This file exists in two versions. A no-op version under |
| 10 # webrtc/build/android_tests_noop.gyp and this one. This gyp file builds the | 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 | 11 # tests (for Android) assuming that WebRTC is built inside a Chromium |
| 12 # workspace. The no-op version is included when building WebRTC without | 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 | 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 | 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. | 15 # WebRTC when built as part of Chromium and when it is built without Chromium. |
| 16 { | 16 { |
| 17 'includes': [ | 17 'includes': [ |
| 18 'common.gypi', | 18 'common.gypi', |
| 19 ], | 19 ], |
| 20 'targets': [ | 20 'targets': [ |
| 21 { | 21 { |
| 22 'target_name': 'audio_codec_speed_tests_apk', | |
| 23 'type': 'none', | |
| 24 'variables': { | |
| 25 'shard_timeout': 900, | |
| 26 'test_suite_name': 'audio_codec_speed_tests', | |
| 27 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)audio_codec_s
peed_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 { | |
| 38 'target_name': 'audio_decoder_unittests_apk', | |
| 39 'type': 'none', | |
| 40 'variables': { | |
| 41 'shard_timeout': 900, | |
| 42 'test_suite_name': 'audio_decoder_unittests', | |
| 43 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)audio_decoder
_unittests<(SHARED_LIB_SUFFIX)', | |
| 44 'isolate_file': '../modules/audio_decoder_unittests.isolate', | |
| 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': { | |
| 57 'shard_timeout': 900, | |
| 58 'test_suite_name': 'common_audio_unittests', | |
| 59 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)common_audio_
unittests<(SHARED_LIB_SUFFIX)', | |
| 60 'isolate_file': '../common_audio/common_audio_unittests.isolate', | |
| 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': { | |
| 73 'shard_timeout': 900, | |
| 74 'test_suite_name': 'common_video_unittests', | |
| 75 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)common_video_
unittests<(SHARED_LIB_SUFFIX)', | |
| 76 'isolate_file': '../common_video/common_video_unittests.isolate', | |
| 77 }, | |
| 78 'dependencies': [ | |
| 79 '<(webrtc_root)/common_video/common_video_unittests.gyp:common_video_uni
ttests', | |
| 80 ], | |
| 81 'includes': [ | |
| 82 '../../build/apk_test.gypi', | |
| 83 ], | |
| 84 }, | |
| 85 { | |
| 86 'target_name': 'modules_tests_apk', | |
| 87 'type': 'none', | |
| 88 'variables': { | |
| 89 'shard_timeout': 900, | |
| 90 'test_suite_name': 'modules_tests', | |
| 91 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_tests
<(SHARED_LIB_SUFFIX)', | |
| 92 'isolate_file': '../modules/modules_tests.isolate', | |
| 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': { | |
| 105 'shard_timeout': 900, | |
| 106 'test_suite_name': 'modules_unittests', | |
| 107 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_unitt
ests<(SHARED_LIB_SUFFIX)', | |
| 108 'isolate_file': '../modules/modules_unittests.isolate', | |
| 109 }, | |
| 110 'dependencies': [ | |
| 111 '<(webrtc_root)/modules/modules.gyp:modules_unittests', | |
| 112 'audio_device_java', | |
| 113 ], | |
| 114 'includes': [ | |
| 115 '../../build/apk_test.gypi', | |
| 116 ], | |
| 117 }, | |
| 118 { | |
| 119 'target_name': 'peerconnection_unittests_apk', | |
| 120 'type': 'none', | |
| 121 'variables': { | |
| 122 'shard_timeout': 900, | |
| 123 'test_suite_name': 'peerconnection_unittests', | |
| 124 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)peerconnectio
n_unittests<(SHARED_LIB_SUFFIX)', | |
| 125 'isolate_file': '../api/peerconnection_unittests.isolate', | |
| 126 }, | |
| 127 'dependencies': [ | |
| 128 '<(webrtc_root)/api/api_tests.gyp:peerconnection_unittests', | |
| 129 '<(webrtc_root)/api/api_java.gyp:libjingle_peerconnection_java', | |
| 130 ], | |
| 131 'includes': [ | |
| 132 '../../build/apk_test.gypi', | |
| 133 ], | |
| 134 }, | |
| 135 { | |
| 136 'target_name': 'rtc_unittests_apk', | |
| 137 'type': 'none', | |
| 138 'variables': { | |
| 139 'shard_timeout': 900, | |
| 140 'test_suite_name': 'rtc_unittests', | |
| 141 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)rtc_unittests
<(SHARED_LIB_SUFFIX)', | |
| 142 'isolate_file': '../rtc_unittests.isolate', | |
| 143 }, | |
| 144 'dependencies': [ | |
| 145 '<(webrtc_root)/webrtc.gyp:rtc_unittests', | |
| 146 ], | |
| 147 'includes': [ | |
| 148 '../../build/apk_test.gypi', | |
| 149 ], | |
| 150 }, | |
| 151 { | |
| 152 'target_name': 'system_wrappers_unittests_apk', | |
| 153 'type': 'none', | |
| 154 'variables': { | |
| 155 'shard_timeout': 900, | |
| 156 'test_suite_name': 'system_wrappers_unittests', | |
| 157 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)system_wrappe
rs_unittests<(SHARED_LIB_SUFFIX)', | |
| 158 'isolate_file': '../system_wrappers/system_wrappers_unittests.isolate', | |
| 159 }, | |
| 160 'dependencies': [ | |
| 161 '<(webrtc_root)/system_wrappers/system_wrappers_tests.gyp:system_wrapper
s_unittests', | |
| 162 ], | |
| 163 'includes': [ | |
| 164 '../../build/apk_test.gypi', | |
| 165 ], | |
| 166 }, | |
| 167 { | |
| 168 'target_name': 'test_support_unittests_apk', | |
| 169 'type': 'none', | |
| 170 'variables': { | |
| 171 'shard_timeout': 900, | |
| 172 'test_suite_name': 'test_support_unittests', | |
| 173 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)test_support_
unittests<(SHARED_LIB_SUFFIX)', | |
| 174 'isolate_file': '../test/test_support_unittests.isolate', | |
| 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': { | |
| 187 'shard_timeout': 900, | |
| 188 'test_suite_name': 'tools_unittests', | |
| 189 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)tools_unittes
ts<(SHARED_LIB_SUFFIX)', | |
| 190 'isolate_file': '../tools/tools_unittests.isolate', | |
| 191 }, | |
| 192 'dependencies': [ | |
| 193 '<(webrtc_root)/tools/tools.gyp:tools_unittests', | |
| 194 ], | |
| 195 'includes': [ | |
| 196 '../../build/apk_test.gypi', | |
| 197 ], | |
| 198 }, | |
| 199 { | |
| 200 'target_name': 'video_engine_tests_apk', | |
| 201 'type': 'none', | |
| 202 'variables': { | |
| 203 'shard_timeout': 900, | |
| 204 'test_suite_name': 'video_engine_tests', | |
| 205 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)video_engine_
tests<(SHARED_LIB_SUFFIX)', | |
| 206 'isolate_file': '../video_engine_tests.isolate', | |
| 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': { | |
| 219 'shard_timeout': 900, | |
| 220 'test_suite_name': 'voice_engine_unittests', | |
| 221 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)voice_engine_
unittests<(SHARED_LIB_SUFFIX)', | |
| 222 'isolate_file': '../voice_engine/voice_engine_unittests.isolate', | |
| 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_t
ests<(SHARED_LIB_SUFFIX)', | |
| 237 'isolate_file': '../webrtc_perf_tests.isolate', | |
| 238 'shard_timeout': 2700, | |
| 239 }, | |
| 240 'dependencies': [ | |
| 241 '<(webrtc_root)/webrtc.gyp:webrtc_perf_tests', | |
| 242 ], | |
| 243 'includes': [ | |
| 244 '../../build/apk_test.gypi', | |
| 245 ], | |
| 246 }, | |
| 247 { | |
| 248 'target_name': 'webrtc_nonparallel_tests_apk', | |
| 249 'type': 'none', | |
| 250 'variables': { | |
| 251 'shard_timeout': 900, | |
| 252 'test_suite_name': 'webrtc_nonparallel_tests', | |
| 253 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)webrtc_nonpar
allel_tests<(SHARED_LIB_SUFFIX)', | |
| 254 'isolate_file': '../webrtc_nonparallel_tests.isolate', | |
| 255 }, | |
| 256 'dependencies': [ | |
| 257 '<(webrtc_root)/webrtc.gyp:webrtc_nonparallel_tests', | |
| 258 ], | |
| 259 'includes': [ | |
| 260 '../../build/apk_test.gypi', | |
| 261 ], | |
| 262 }, | |
| 263 { | |
| 264 'target_name': 'android_junit_tests', | 22 'target_name': 'android_junit_tests', |
| 265 'type': 'none', | 23 'type': 'none', |
| 266 'dependencies': [ | 24 'dependencies': [ |
| 267 '<(webrtc_root)/api/api_java.gyp:libjingle_peerconnection_java', | 25 '<(webrtc_root)/api/api_java.gyp:libjingle_peerconnection_java', |
| 268 '<(DEPTH)/base/base.gyp:base_java', | 26 '<(DEPTH)/base/base.gyp:base_java', |
| 269 '<(DEPTH)/base/base.gyp:base_java_test_support', | 27 '<(DEPTH)/base/base.gyp:base_java_test_support', |
| 270 '<(DEPTH)/base/base.gyp:base_junit_test_support', | 28 '<(DEPTH)/base/base.gyp:base_junit_test_support', |
| 271 ], | 29 ], |
| 272 'variables': { | 30 'variables': { |
| 273 'main_class': 'org.chromium.testing.local.JunitTestMain', | 31 'main_class': 'org.chromium.testing.local.JunitTestMain', |
| 274 'src_paths': [ | 32 'src_paths': [ |
| 275 '../androidjunit/', | 33 '../androidjunit/', |
| 276 ], | 34 ], |
| 277 'test_type': 'junit', | 35 'test_type': 'junit', |
| 278 'wrapper_script_name': 'helper/<(_target_name)', | 36 'wrapper_script_name': 'helper/<(_target_name)', |
| 279 }, | 37 }, |
| 280 'includes': [ | 38 'includes': [ |
| 281 '../../build/android/test_runner.gypi', | 39 '../../build/android/test_runner.gypi', |
| 282 '../../build/host_jar.gypi', | 40 '../../build/host_jar.gypi', |
| 283 ], | 41 ], |
| 284 }, | 42 }, |
| 285 { | |
| 286 'target_name': 'audio_device_java', | |
| 287 'type': 'none', | |
| 288 'variables': { | |
| 289 'java_in_dir': '<(webrtc_root)/modules/audio_device/android/java', | |
| 290 'additional_src_dirs': [ '<(webrtc_root)/base/java/src', ], | |
| 291 'never_lint': 1, | |
| 292 }, | |
| 293 'includes': [ | |
| 294 '../../build/java.gypi', | |
| 295 ], | |
| 296 }, | |
| 297 ], | 43 ], |
| 298 } | 44 } |
| OLD | NEW |