• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
10# webrtc/build/apk_tests_noop.gyp and this one. This gyp file builds the apk
11# unit tests (for Android) assuming that WebRTC is built inside a Chromium
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    {
22      'target_name': 'audio_decoder_unittests_apk',
23      'type': 'none',
24      'variables': {
25        'test_suite_name': 'audio_decoder_unittests',
26        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)audio_decoder_unittests<(SHARED_LIB_SUFFIX)',
27      },
28      'dependencies': [
29        '<(webrtc_root)/modules/modules.gyp:audio_decoder_unittests',
30      ],
31      'includes': [
32        '../../build/apk_test.gypi',
33      ],
34    },
35    {
36      'target_name': 'common_audio_unittests_apk',
37      'type': 'none',
38      'variables': {
39        'test_suite_name': 'common_audio_unittests',
40        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)common_audio_unittests<(SHARED_LIB_SUFFIX)',
41      },
42      'dependencies': [
43        '<(webrtc_root)/common_audio/common_audio.gyp:common_audio_unittests',
44      ],
45      'includes': [
46        '../../build/apk_test.gypi',
47      ],
48    },
49    {
50      'target_name': 'common_video_unittests_apk',
51      'type': 'none',
52      'variables': {
53        'test_suite_name': 'common_video_unittests',
54        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)common_video_unittests<(SHARED_LIB_SUFFIX)',
55      },
56      'dependencies': [
57        '<(webrtc_root)/common_video/common_video_unittests.gyp:common_video_unittests',
58      ],
59      'includes': [
60        '../../build/apk_test.gypi',
61      ],
62    },
63    {
64      'target_name': 'libjingle_peerconnection_unittest_apk',
65      'type': 'none',
66      'variables': {
67        'test_suite_name': 'libjingle_peerconnection_unittest',
68        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)libjingle_peerconnection_unittest<(SHARED_LIB_SUFFIX)',
69      },
70      'dependencies': [
71        '<(DEPTH)/talk/libjingle_tests.gyp:libjingle_peerconnection_unittest',
72        '<(DEPTH)/talk/libjingle.gyp:libjingle_peerconnection_java',
73      ],
74      'includes': [
75        # Use webrtc copy of apk_test.gypi to allow test executables starting
76        # with "lib". See http://crbug.com/543820 for more details.
77        '../build/apk_test.gypi',
78      ],
79    },
80    {
81      'target_name': 'modules_tests_apk',
82      'type': 'none',
83      'variables': {
84        'test_suite_name': 'modules_tests',
85        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_tests<(SHARED_LIB_SUFFIX)',
86      },
87      'dependencies': [
88        '<(webrtc_root)/modules/modules.gyp:modules_tests',
89      ],
90      'includes': [
91        '../../build/apk_test.gypi',
92      ],
93    },
94    {
95      'target_name': 'modules_unittests_apk',
96      'type': 'none',
97      'variables': {
98        'test_suite_name': 'modules_unittests',
99        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_unittests<(SHARED_LIB_SUFFIX)',
100      },
101      'dependencies': [
102        '<(webrtc_root)/modules/modules.gyp:modules_unittests',
103        'audio_device_java',
104      ],
105      'includes': [
106        '../../build/apk_test.gypi',
107      ],
108    },
109    {
110      'target_name': 'rtc_unittests_apk',
111      'type': 'none',
112      'variables': {
113        'test_suite_name': 'rtc_unittests',
114        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)rtc_unittests<(SHARED_LIB_SUFFIX)',
115      },
116      'dependencies': [
117        '<(webrtc_root)/webrtc.gyp:rtc_unittests',
118      ],
119      'includes': [
120        '../../build/apk_test.gypi',
121      ],
122    },
123    {
124      'target_name': 'system_wrappers_unittests_apk',
125      'type': 'none',
126      'variables': {
127        'test_suite_name': 'system_wrappers_unittests',
128        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)system_wrappers_unittests<(SHARED_LIB_SUFFIX)',
129      },
130      'dependencies': [
131        '<(webrtc_root)/system_wrappers/system_wrappers_tests.gyp:system_wrappers_unittests',
132      ],
133      'includes': [
134        '../../build/apk_test.gypi',
135      ],
136    },
137    {
138      'target_name': 'test_support_unittests_apk',
139      'type': 'none',
140      'variables': {
141        'test_suite_name': 'test_support_unittests',
142        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)test_support_unittests<(SHARED_LIB_SUFFIX)',
143      },
144      'dependencies': [
145        '<(webrtc_root)/test/test.gyp:test_support_unittests',
146      ],
147      'includes': [
148        '../../build/apk_test.gypi',
149      ],
150    },
151    {
152      'target_name': 'tools_unittests_apk',
153      'type': 'none',
154      'variables': {
155        'test_suite_name': 'tools_unittests',
156        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)tools_unittests<(SHARED_LIB_SUFFIX)',
157      },
158      'dependencies': [
159        '<(webrtc_root)/tools/tools.gyp:tools_unittests',
160      ],
161      'includes': [
162        '../../build/apk_test.gypi',
163      ],
164    },
165    {
166      'target_name': 'video_engine_tests_apk',
167      'type': 'none',
168      'variables': {
169        'test_suite_name': 'video_engine_tests',
170        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)video_engine_tests<(SHARED_LIB_SUFFIX)',
171      },
172      'dependencies': [
173        '<(webrtc_root)/webrtc.gyp:video_engine_tests',
174      ],
175      'includes': [
176        '../../build/apk_test.gypi',
177      ],
178     },
179     {
180      'target_name': 'voice_engine_unittests_apk',
181      'type': 'none',
182      'variables': {
183        'test_suite_name': 'voice_engine_unittests',
184        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)voice_engine_unittests<(SHARED_LIB_SUFFIX)',
185      },
186      'dependencies': [
187        '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine_unittests',
188      ],
189      'includes': [
190        '../../build/apk_test.gypi',
191      ],
192    },
193    {
194      'target_name': 'webrtc_perf_tests_apk',
195      'type': 'none',
196      'variables': {
197        'test_suite_name': 'webrtc_perf_tests',
198        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)webrtc_perf_tests<(SHARED_LIB_SUFFIX)',
199      },
200      'dependencies': [
201        '<(webrtc_root)/webrtc.gyp:webrtc_perf_tests',
202      ],
203      'includes': [
204        '../../build/apk_test.gypi',
205      ],
206    },
207    {
208      'target_name': 'webrtc_nonparallel_tests_apk',
209      'type': 'none',
210      'variables': {
211        'test_suite_name': 'webrtc_nonparallel_tests',
212        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)webrtc_nonparallel_tests<(SHARED_LIB_SUFFIX)',
213      },
214      'dependencies': [
215        '<(webrtc_root)/webrtc.gyp:webrtc_nonparallel_tests',
216      ],
217      'includes': [
218        '../../build/apk_test.gypi',
219      ],
220    },
221    {
222      'target_name': 'audio_codec_speed_tests_apk',
223      'type': 'none',
224      'variables': {
225        'test_suite_name': 'audio_codec_speed_tests',
226        'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)audio_codec_speed_tests<(SHARED_LIB_SUFFIX)',
227      },
228      'dependencies': [
229        '<(webrtc_root)/modules/modules.gyp:audio_codec_speed_tests',
230      ],
231      'includes': [
232        '../../build/apk_test.gypi',
233      ],
234    },
235    {
236      'target_name': 'audio_device_java',
237      'type': 'none',
238      'variables': {
239        'java_in_dir': '<(webrtc_root)/modules/audio_device/android/java',
240        'additional_src_dirs': [ '<(webrtc_root)/base/java/src', ],
241        'never_lint': 1,
242      },
243      'includes': [
244        '../../build/java.gypi',
245      ],
246    },
247  ],
248}
249
250
251