Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / build / apk_tests.gyp
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': 'modules_tests_apk',
65       'type': 'none',
66       'variables': {
67         'test_suite_name': 'modules_tests',
68         'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_tests<(SHARED_LIB_SUFFIX)',
69       },
70       'dependencies': [
71         '<(webrtc_root)/modules/modules.gyp:modules_tests',
72       ],
73       'includes': [
74         '../../build/apk_test.gypi',
75       ],
76     },
77     {
78       'target_name': 'modules_unittests_apk',
79       'type': 'none',
80       'variables': {
81         'test_suite_name': 'modules_unittests',
82         'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_unittests<(SHARED_LIB_SUFFIX)',
83       },
84       'dependencies': [
85         '<(webrtc_root)/modules/modules.gyp:modules_unittests',
86       ],
87       'includes': [
88         '../../build/apk_test.gypi',
89       ],
90     },
91     {
92       'target_name': 'system_wrappers_unittests_apk',
93       'type': 'none',
94       'variables': {
95         'test_suite_name': 'system_wrappers_unittests',
96         'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)system_wrappers_unittests<(SHARED_LIB_SUFFIX)',
97       },
98       'dependencies': [
99         '<(webrtc_root)/system_wrappers/source/system_wrappers_tests.gyp:system_wrappers_unittests',
100       ],
101       'includes': [
102         '../../build/apk_test.gypi',
103       ],
104     },
105     {
106       'target_name': 'test_support_unittests_apk',
107       'type': 'none',
108       'variables': {
109         'test_suite_name': 'test_support_unittests',
110         'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)test_support_unittests<(SHARED_LIB_SUFFIX)',
111       },
112       'dependencies': [
113         '<(webrtc_root)/test/test.gyp:test_support_unittests',
114       ],
115       'includes': [
116         '../../build/apk_test.gypi',
117       ],
118     },
119     {
120       'target_name': 'tools_unittests_apk',
121       'type': 'none',
122       'variables': {
123         'test_suite_name': 'tools_unittests',
124         'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)tools_unittests<(SHARED_LIB_SUFFIX)',
125       },
126       'dependencies': [
127         '<(webrtc_root)/tools/tools.gyp:tools_unittests',
128       ],
129       'includes': [
130         '../../build/apk_test.gypi',
131       ],
132     },
133     {
134       'target_name': 'video_engine_core_unittests_apk',
135       'type': 'none',
136       'variables': {
137         'test_suite_name': 'video_engine_core_unittests',
138         'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)video_engine_core_unittests<(SHARED_LIB_SUFFIX)',
139       },
140       'dependencies': [
141         '<(webrtc_root)/video_engine/video_engine.gyp:video_engine_core_unittests',
142       ],
143       'includes': [
144         '../../build/apk_test.gypi',
145       ],
146     },
147     {
148       'target_name': 'video_engine_tests_apk',
149       'type': 'none',
150       'variables': {
151         'test_suite_name': 'video_engine_tests',
152         'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)video_engine_tests<(SHARED_LIB_SUFFIX)',
153       },
154       'dependencies': [
155         '<(webrtc_root)/webrtc.gyp:video_engine_tests',
156       ],
157       'includes': [
158         '../../build/apk_test.gypi',
159       ],
160      },
161      {
162       'target_name': 'voice_engine_unittests_apk',
163       'type': 'none',
164       'variables': {
165         'test_suite_name': 'voice_engine_unittests',
166         'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)voice_engine_unittests<(SHARED_LIB_SUFFIX)',
167       },
168       'dependencies': [
169         '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine_unittests',
170       ],
171       'includes': [
172         '../../build/apk_test.gypi',
173       ],
174     },
175     {
176       'target_name': 'webrtc_perf_tests_apk',
177       'type': 'none',
178       'variables': {
179         'test_suite_name': 'webrtc_perf_tests',
180         'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)webrtc_perf_tests<(SHARED_LIB_SUFFIX)',
181       },
182       'dependencies': [
183         '<(webrtc_root)/webrtc.gyp:webrtc_perf_tests',
184       ],
185       'includes': [
186         '../../build/apk_test.gypi',
187       ],
188     },
189     {
190       'target_name': 'audio_codec_speed_tests_apk',
191       'type': 'none',
192       'variables': {
193         'test_suite_name': 'audio_codec_speed_tests',
194         'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)audio_codec_speed_tests<(SHARED_LIB_SUFFIX)',
195       },
196       'dependencies': [
197         '<(webrtc_root)/modules/modules.gyp:audio_codec_speed_tests',
198       ],
199       'includes': [
200         '../../build/apk_test.gypi',
201       ],
202     },
203     {
204       'target_name': 'video_capture_tests_apk',
205       'type': 'none',
206        'variables': {
207          'test_suite_name': 'video_capture_tests',
208          'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)video_capture_tests<(SHARED_LIB_SUFFIX)',
209        },
210        'dependencies': [
211          '<(webrtc_root)/modules/modules.gyp:video_capture_tests',
212          'video_capture_java',
213        ],
214        'includes': [
215          '../../build/apk_test.gypi',
216        ],
217     },
218     {
219       # Used only by video_capture_tests_apk above, and impossible to use in the
220       # standalone build, which is why it's declared here instead of under
221       # modules/video_capture/ (to avoid the need for a forked _noop.gyp file
222       # like this file has; see comment at the top of this file).
223       'target_name': 'video_capture_java',
224       'type': 'none',
225       'variables': {
226         'java_in_dir': '<(webrtc_root)/modules/video_capture/android/java',
227       },
228       'includes': [
229         '../../build/java.gypi',
230       ],
231     },
232   ],
233 }
234
235