blob: de513500c38f5e1d629c0d826ccab794fb978f7a [file] [log] [blame]
niklase@google.comda159d62011-05-30 11:51:34 +00001# Copyright (c) 2011 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{
10 'includes': [
11 'common_settings.gypi',
12 ],
13 'targets': [
14 # Auto test - command line test for all platforms
15 {
16 'target_name': 'voe_auto_test',
17 'type': 'executable',
18 'dependencies': [
19 'voice_engine/main/source/voice_engine_core.gyp:voice_engine_core',
20 'system_wrappers/source/system_wrappers.gyp:system_wrappers',
21 ],
22 'include_dirs': [
23 'voice_engine/main/test/auto_test',
24 ],
25 'sources': [
26 'voice_engine/main/test/auto_test/voe_cpu_test.cc',
27 'voice_engine/main/test/auto_test/voe_cpu_test.h',
28 'voice_engine/main/test/auto_test/voe_extended_test.cc',
29 'voice_engine/main/test/auto_test/voe_extended_test.h',
30 'voice_engine/main/test/auto_test/voe_standard_test.cc',
31 'voice_engine/main/test/auto_test/voe_standard_test.h',
32 'voice_engine/main/test/auto_test/voe_stress_test.cc',
33 'voice_engine/main/test/auto_test/voe_stress_test.h',
34 'voice_engine/main/test/auto_test/voe_test_defines.h',
35 'voice_engine/main/test/auto_test/voe_test_interface.h',
36 'voice_engine/main/test/auto_test/voe_unit_test.cc',
37 'voice_engine/main/test/auto_test/voe_unit_test.h',
38 ],
39 'conditions': [
40 ['OS=="linux" or OS=="mac"', {
41 'actions': [
42 {
43 'action_name': 'copy audio file',
44 'inputs': [
45 'voice_engine/main/test/auto_test/audio_long16.pcm',
46 ],
47 'outputs': [
48 '/tmp/audio_long16.pcm',
49 ],
50 'action': [
51 '/bin/sh', '-c',
52 'cp -f voice_engine/main/test/auto_test/audio_* /tmp/;'\
53 'cp -f voice_engine/main/test/auto_test/audio_short16.pcm /tmp/;',
54 ],
55 },
56 ],
57 }],
58 ['OS=="win"', {
59 'dependencies': [
60 'voice_engine.gyp:voe_ui_win_test',
61 ],
62 }],
63 ['OS=="win"', {
64 'actions': [
65 {
66 'action_name': 'copy audio file',
67 'inputs': [
68 'voice_engine/main/test/auto_test/audio_long16.pcm',
69 ],
70 'outputs': [
71 '/tmp/audio_long16.pcm',
72 ],
73 'action': [
74 'cmd', '/c',
75 'xcopy /Y /R .\\voice_engine\\main\\test\\auto_test\\audio_* \\tmp',
76 ],
77 },
78 {
79 'action_name': 'copy audio audio_short16.pcm',
80 'inputs': [
81 'voice_engine/main/test/auto_test/audio_short16.pcm',
82 ],
83 'outputs': [
84 '/tmp/audio_short16.pcm',
85 ],
86 'action': [
87 'cmd', '/c',
88 'xcopy /Y /R .\\voice_engine\\main\\test\\auto_test\\audio_short16.pcm \\tmp',
89 ],
90 },
91 ],
92 }],
93 ],
94 },
95 ],
96 'conditions': [
97 ['OS=="win"', {
98 'targets': [
99 # WinTest - GUI test for Windows
100 {
101 'target_name': 'voe_ui_win_test',
102 'type': 'executable',
103 'dependencies': [
104 'voice_engine/main/source/voice_engine_core.gyp:voice_engine_core',
105 'system_wrappers/source/system_wrappers.gyp:system_wrappers',
106 ],
107 'include_dirs': [
108 'voice_engine/main/test/win_test',
109 ],
110 'sources': [
111 'voice_engine/main/test/win_test/Resource.h',
112 'voice_engine/main/test/win_test/WinTest.cpp',
113 'voice_engine/main/test/win_test/WinTest.h',
114 'voice_engine/main/test/win_test/WinTest.rc',
115 'voice_engine/main/test/win_test/WinTestDlg.cpp',
116 'voice_engine/main/test/win_test/WinTestDlg.h',
117 'voice_engine/main/test/win_test/res/WinTest.ico',
118 'voice_engine/main/test/win_test/res/WinTest.rc2',
119 'voice_engine/main/test/win_test/stdafx.cpp',
120 'voice_engine/main/test/win_test/stdafx.h',
121 ],
122 'actions': [
123 {
124 'action_name': 'copy audio file',
125 'inputs': [
126 'voice_engine/main/test/win_test/audio_tiny11.wav',
127 ],
128 'outputs': [
129 '/tmp/audio_tiny11.wav',
130 ],
131 'action': [
132 'cmd', '/c',
133 'xcopy /Y /R .\\voice_engine\\main\\test\\win_test\\audio_* \\tmp',
134 ],
135 },
136 {
137 'action_name': 'copy audio audio_short16.pcm',
138 'inputs': [
139 'voice_engine/main/test/win_test/audio_short16.pcm',
140 ],
141 'outputs': [
142 '/tmp/audio_short16.pcm',
143 ],
144 'action': [
145 'cmd', '/c',
146 'xcopy /Y /R .\\voice_engine\\main\\test\\win_test\\audio_short16.pcm \\tmp',
147 ],
148 },
149 {
150 'action_name': 'copy audio_long16noise.pcm',
151 'inputs': [
152 'voice_engine/main/test/win_test/saudio_long16noise.pcm',
153 ],
154 'outputs': [
155 '/tmp/audio_long16noise.pcm',
156 ],
157 'action': [
158 'cmd', '/c',
159 'xcopy /Y /R .\\voice_engine\\main\\test\\win_test\\audio_long16noise.pcm \\tmp',
160 ],
161 },
162 ],
163 'configurations': {
164 'Common_Base': {
165 'msvs_configuration_attributes': {
166 'UseOfMFC': '1', # Static
167 },
168 },
169 },
170 'msvs_settings': {
171 'VCLinkerTool': {
172 'SubSystem': '2', # Windows
173 },
174 },
175 },
176 ],
177 }],
178 ],
179}
180
181# Local Variables:
182# tab-width:2
183# indent-tabs-mode:nil
184# End:
185# vim: set expandtab tabstop=2 shiftwidth=2: