blob: 7803b9a4198859247b37b46a5999d7bec11037f7 [file] [log] [blame]
kjellander@webrtc.org0372b932014-09-03 14:34:46 +00001# 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
kjellander208d1982016-05-31 04:01:38 -070010# 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.org0372b932014-09-03 14:34:46 +000012# 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 {
kjellandere532aec2016-04-17 20:08:20 -070022 'target_name': 'audio_codec_speed_tests_apk',
23 'type': 'none',
24 'variables': {
magjedce17e012016-06-01 00:43:59 -070025 'shard_timeout': 900,
kjellandere532aec2016-04-17 20:08:20 -070026 '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.org0372b932014-09-03 14:34:46 +000038 'target_name': 'audio_decoder_unittests_apk',
39 'type': 'none',
40 'variables': {
magjedce17e012016-06-01 00:43:59 -070041 'shard_timeout': 900,
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000042 'test_suite_name': 'audio_decoder_unittests',
43 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)audio_decoder_unittests<(SHARED_LIB_SUFFIX)',
agrieve39530c42016-04-07 08:18:34 -070044 'isolate_file': '../modules/audio_decoder_unittests.isolate',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000045 },
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': {
magjedce17e012016-06-01 00:43:59 -070057 'shard_timeout': 900,
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000058 'test_suite_name': 'common_audio_unittests',
59 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)common_audio_unittests<(SHARED_LIB_SUFFIX)',
agrieve39530c42016-04-07 08:18:34 -070060 'isolate_file': '../common_audio/common_audio_unittests.isolate',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000061 },
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': {
magjedce17e012016-06-01 00:43:59 -070073 'shard_timeout': 900,
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000074 'test_suite_name': 'common_video_unittests',
75 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)common_video_unittests<(SHARED_LIB_SUFFIX)',
agrieve39530c42016-04-07 08:18:34 -070076 'isolate_file': '../common_video/common_video_unittests.isolate',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000077 },
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': {
magjedce17e012016-06-01 00:43:59 -070089 'shard_timeout': 900,
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000090 'test_suite_name': 'modules_tests',
91 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_tests<(SHARED_LIB_SUFFIX)',
agrieve39530c42016-04-07 08:18:34 -070092 'isolate_file': '../modules/modules_tests.isolate',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +000093 },
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': {
magjedce17e012016-06-01 00:43:59 -0700105 'shard_timeout': 900,
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000106 'test_suite_name': 'modules_unittests',
107 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_unittests<(SHARED_LIB_SUFFIX)',
agrieve39530c42016-04-07 08:18:34 -0700108 'isolate_file': '../modules/modules_unittests.isolate',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000109 },
110 'dependencies': [
111 '<(webrtc_root)/modules/modules.gyp:modules_unittests',
henrika@webrtc.org474d1eb2015-03-09 12:39:53 +0000112 'audio_device_java',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000113 ],
114 'includes': [
115 '../../build/apk_test.gypi',
116 ],
117 },
118 {
kjellandere532aec2016-04-17 20:08:20 -0700119 'target_name': 'peerconnection_unittests_apk',
120 'type': 'none',
121 'variables': {
magjedce17e012016-06-01 00:43:59 -0700122 'shard_timeout': 900,
kjellandere532aec2016-04-17 20:08:20 -0700123 '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',
kjellander442e6ee2016-06-20 01:34:06 -0700129 '<(webrtc_root)/api/api_java.gyp:libjingle_peerconnection_java',
kjellandere532aec2016-04-17 20:08:20 -0700130 ],
131 'includes': [
132 '../../build/apk_test.gypi',
133 ],
134 },
135 {
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000136 'target_name': 'rtc_unittests_apk',
137 'type': 'none',
138 'variables': {
magjedce17e012016-06-01 00:43:59 -0700139 'shard_timeout': 900,
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000140 'test_suite_name': 'rtc_unittests',
141 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)rtc_unittests<(SHARED_LIB_SUFFIX)',
agrieve39530c42016-04-07 08:18:34 -0700142 'isolate_file': '../rtc_unittests.isolate',
kjellander@webrtc.org7572d852015-03-04 08:47:39 +0000143 },
144 'dependencies': [
145 '<(webrtc_root)/webrtc.gyp:rtc_unittests',
146 ],
147 'includes': [
148 '../../build/apk_test.gypi',
149 ],
150 },
151 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000152 'target_name': 'system_wrappers_unittests_apk',
153 'type': 'none',
154 'variables': {
magjedce17e012016-06-01 00:43:59 -0700155 'shard_timeout': 900,
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000156 'test_suite_name': 'system_wrappers_unittests',
157 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)system_wrappers_unittests<(SHARED_LIB_SUFFIX)',
agrieve39530c42016-04-07 08:18:34 -0700158 'isolate_file': '../system_wrappers/system_wrappers_unittests.isolate',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000159 },
160 'dependencies': [
andresp@webrtc.org86e1e482015-01-14 09:30:52 +0000161 '<(webrtc_root)/system_wrappers/system_wrappers_tests.gyp:system_wrappers_unittests',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000162 ],
163 'includes': [
164 '../../build/apk_test.gypi',
165 ],
166 },
167 {
168 'target_name': 'test_support_unittests_apk',
169 'type': 'none',
170 'variables': {
magjedce17e012016-06-01 00:43:59 -0700171 'shard_timeout': 900,
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000172 'test_suite_name': 'test_support_unittests',
173 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)test_support_unittests<(SHARED_LIB_SUFFIX)',
agrieve39530c42016-04-07 08:18:34 -0700174 'isolate_file': '../test/test_support_unittests.isolate',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000175 },
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': {
magjedce17e012016-06-01 00:43:59 -0700187 'shard_timeout': 900,
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000188 'test_suite_name': 'tools_unittests',
189 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)tools_unittests<(SHARED_LIB_SUFFIX)',
agrieve39530c42016-04-07 08:18:34 -0700190 'isolate_file': '../tools/tools_unittests.isolate',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000191 },
192 'dependencies': [
193 '<(webrtc_root)/tools/tools.gyp:tools_unittests',
194 ],
195 'includes': [
196 '../../build/apk_test.gypi',
197 ],
198 },
199 {
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000200 'target_name': 'video_engine_tests_apk',
201 'type': 'none',
202 'variables': {
magjedce17e012016-06-01 00:43:59 -0700203 'shard_timeout': 900,
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000204 'test_suite_name': 'video_engine_tests',
205 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)video_engine_tests<(SHARED_LIB_SUFFIX)',
agrieve39530c42016-04-07 08:18:34 -0700206 'isolate_file': '../video_engine_tests.isolate',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000207 },
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': {
magjedce17e012016-06-01 00:43:59 -0700219 'shard_timeout': 900,
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000220 'test_suite_name': 'voice_engine_unittests',
221 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)voice_engine_unittests<(SHARED_LIB_SUFFIX)',
agrieve39530c42016-04-07 08:18:34 -0700222 'isolate_file': '../voice_engine/voice_engine_unittests.isolate',
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000223 },
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.org1a45cfb2016-04-12 22:15:09 +0200237 'isolate_file': '../webrtc_perf_tests.isolate',
agrieved0554b82016-04-12 09:45:00 -0700238 'shard_timeout': 2700,
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000239 },
240 'dependencies': [
241 '<(webrtc_root)/webrtc.gyp:webrtc_perf_tests',
242 ],
243 'includes': [
244 '../../build/apk_test.gypi',
245 ],
246 },
247 {
Peter Boström95192fb2015-10-29 12:41:56 +0100248 'target_name': 'webrtc_nonparallel_tests_apk',
249 'type': 'none',
250 'variables': {
magjedce17e012016-06-01 00:43:59 -0700251 'shard_timeout': 900,
Peter Boström95192fb2015-10-29 12:41:56 +0100252 'test_suite_name': 'webrtc_nonparallel_tests',
253 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)webrtc_nonparallel_tests<(SHARED_LIB_SUFFIX)',
kjellander@webrtc.org1a45cfb2016-04-12 22:15:09 +0200254 'isolate_file': '../webrtc_nonparallel_tests.isolate',
Peter Boström95192fb2015-10-29 12:41:56 +0100255 },
256 'dependencies': [
257 '<(webrtc_root)/webrtc.gyp:webrtc_nonparallel_tests',
258 ],
259 'includes': [
260 '../../build/apk_test.gypi',
261 ],
262 },
263 {
magjedce17e012016-06-01 00:43:59 -0700264 'target_name': 'android_junit_tests',
265 'type': 'none',
266 'dependencies': [
kjellander442e6ee2016-06-20 01:34:06 -0700267 '<(webrtc_root)/api/api_java.gyp:libjingle_peerconnection_java',
magjedce17e012016-06-01 00:43:59 -0700268 '<(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.org474d1eb2015-03-09 12:39:53 +0000286 'target_name': 'audio_device_java',
287 'type': 'none',
288 'variables': {
289 'java_in_dir': '<(webrtc_root)/modules/audio_device/android/java',
Jiayang Liu77542852015-09-16 16:20:36 -0700290 'additional_src_dirs': [ '<(webrtc_root)/base/java/src', ],
henrika@webrtc.org474d1eb2015-03-09 12:39:53 +0000291 'never_lint': 1,
292 },
293 'includes': [
294 '../../build/java.gypi',
295 ],
296 },
kjellander@webrtc.org0372b932014-09-03 14:34:46 +0000297 ],
298}