OLD | NEW |
| (Empty) |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 Import('env') | |
6 | |
7 env = env.Clone() | |
8 | |
9 env.SConscript([ | |
10 '$BASE_DIR/using_base.scons', | |
11 '$BASE_DIR/gfx/using_base_gfx.scons', | |
12 '$BZIP2_DIR/using_bzip2.scons', | |
13 '$CHROME_DIR/third_party/wtl/using_wtl.scons', | |
14 '$CHROME_SRC_DIR/build/using_googleurl.scons', | |
15 '$CHROME_SRC_DIR/tools/grit/build/using_generated_resources.scons', | |
16 '$GTEST_DIR/../using_gtest.scons', | |
17 '$ICU38_DIR/using_icu38.scons', | |
18 '$LIBPNG_DIR/using_libpng.scons', | |
19 '$LIBXML_DIR/using_libxml.scons', | |
20 '$LIBXSLT_DIR/using_libxslt.scons', | |
21 '$MODP_B64_DIR/using_modp_b64.scons', | |
22 '$NET_DIR/using_net.scons', | |
23 #'$NPAPI_DIR/using_npapi.scons', | |
24 '$SDCH_DIR/using_sdch.scons', | |
25 '$SKIA_DIR/using_skia.scons', | |
26 '$ZLIB_DIR/using_zlib.scons', | |
27 ], {'env':env}) | |
28 | |
29 env.Prepend( | |
30 CPPPATH = [ | |
31 '$CHROME_DIR/app/resources', | |
32 '$CHROME_SRC_DIR', | |
33 ], | |
34 CPPDEFINES = [ | |
35 'UI_TEST', | |
36 ], | |
37 LIBS = [ | |
38 'automation', | |
39 'browser', | |
40 'common', | |
41 'glue', | |
42 'port', | |
43 'sqlite', | |
44 'WTF', | |
45 'views', | |
46 ] | |
47 ) | |
48 | |
49 if env.Bit('windows'): | |
50 # TODO(port): split these into upper env.Prepend (for portable libs) and | |
51 # lower env.Prepend (for win-specific libs). | |
52 env.Prepend( | |
53 LIBS = [ | |
54 'browser_views', | |
55 'npapi_layout_test_plugin', | |
56 'npapi_test_plugin', | |
57 'security_tests', | |
58 ], | |
59 ) | |
60 | |
61 if env.Bit('windows'): | |
62 env.Prepend( | |
63 CPPPATH = [ | |
64 '$CHROME_DIR/tools/build/win', | |
65 ], | |
66 LINKFLAGS = [ | |
67 '/INCREMENTAL', | |
68 | |
69 '/safeseh', | |
70 '/dynamicbase', | |
71 '/ignore:4199', | |
72 '/nxcompat', | |
73 | |
74 '/MANIFEST', | |
75 '/DELAYLOAD:"ws2_32.dll"', | |
76 '/DELAYLOAD:"dwmapi.dll"', | |
77 '/DELAYLOAD:"uxtheme.dll"', | |
78 | |
79 '/DEBUG', | |
80 '/MACHINE:X86', | |
81 '/FIXED:No', | |
82 ], | |
83 LIBS = [ | |
84 'comsupp', | |
85 'oleacc', | |
86 'rpcrt4', | |
87 'winmm', | |
88 ], | |
89 ) | |
90 | |
91 input_files = ChromeFileList([ | |
92 # TODO(sgk): violate standard indentation so we don't have to | |
93 # reindent too much when we remove the explicit MSVSFilter() calls | |
94 # in favor of generating the hierarchy to reflect the file system. | |
95 MSVSFilter('Common', [ | |
96 'npapi_test_helper.cc', | |
97 'npapi_test_helper.h', | |
98 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', | |
99 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', | |
100 'run_all_unittests.cc', | |
101 '$CHROME_DIR/test/testing_browser_process.h', | |
102 'ui_test.cc', | |
103 'ui_test.h', | |
104 'ui_test_suite.cc', | |
105 'ui_test_suite.h', | |
106 '$NET_DIR/url_request/url_request_test_job$OBJSUFFIX', | |
107 '$NET_DIR/url_request/url_request_test_job.h', | |
108 ]), | |
109 MSVSFilter('TestChromeMain', [ | |
110 '$CHROME_DIR/app/chrome_main_uitest.cc', | |
111 ]), | |
112 MSVSFilter('TestErrorPage', [ | |
113 '$CHROME_DIR/browser/errorpage_uitest.cc', | |
114 ]), | |
115 MSVSFilter('TestBrowser', [ | |
116 '$CHROME_DIR/browser/browser_uitest.cc', | |
117 MSVSFilter('TestImages', [ | |
118 '$CHROME_DIR/browser/images_uitest.cc', | |
119 ]), | |
120 ]), | |
121 MSVSFilter('TestChromeLogging', [ | |
122 '$CHROME_DIR/common/logging_chrome_uitest.cc', | |
123 ]), | |
124 MSVSFilter('TestDownload', [ | |
125 '$CHROME_DIR/browser/download/download_uitest.cc', | |
126 ]), | |
127 MSVSFilter('TestIFrame', [ | |
128 '$CHROME_DIR/browser/iframe_uitest.cc', | |
129 ]), | |
130 MSVSFilter('TestCache', [ | |
131 '$CHROME_DIR/common/net/cache_uitest.cc', | |
132 ]), | |
133 MSVSFilter('TestSanity', [ | |
134 '$CHROME_DIR/browser/sanity_uitest.cc', | |
135 ]), | |
136 MSVSFilter('TestAutomationProxy', [ | |
137 '$CHROME_DIR/test/automation/automation_proxy_uitest.cc', | |
138 ]), | |
139 MSVSFilter('TestNPAPI', [ | |
140 'layout_plugin_uitest.cpp', | |
141 'npapi_uitest.cpp', | |
142 ]), | |
143 MSVSFilter('TestSessionHistory', [ | |
144 '$CHROME_DIR/browser/session_history_uitest.cc', | |
145 ]), | |
146 MSVSFilter('TestSessionRestore', [ | |
147 '$CHROME_DIR/browser/sessions/session_restore_uitest.cc', | |
148 ]), | |
149 MSVSFilter('TestTabRestore', [ | |
150 '$CHROME_DIR/browser/tab_restore_uitest.cc', | |
151 ]), | |
152 MSVSFilter('TestUnload', [ | |
153 '$CHROME_DIR/browser/unload_uitest.cc', | |
154 ]), | |
155 MSVSFilter('TestAuthentication', [ | |
156 '$CHROME_DIR/browser/login_prompt_uitest.cc', | |
157 ]), | |
158 MSVSFilter('TestPreferences', [ | |
159 '$CHROME_DIR/common/pref_service_uitest.cc', | |
160 ]), | |
161 MSVSFilter('TestViewSource', [ | |
162 '$CHROME_DIR/browser/tab_contents/view_source_uitest.cc', | |
163 ]), | |
164 MSVSFilter('TestRedirects', [ | |
165 '$CHROME_DIR/browser/history/redirect_uitest.cc', | |
166 ]), | |
167 MSVSFilter('TestResourceDispatcherHost', [ | |
168 '$CHROME_DIR/browser/renderer_host/resource_dispatcher_host_uitest.cc', | |
169 ]), | |
170 MSVSFilter('TestFindInPage', [ | |
171 '$CHROME_DIR/browser/views/find_bar_win_uitest.cc', | |
172 ]), | |
173 MSVSFilter('TestPageLoader', [ | |
174 '$CHROME_DIR/test/perf/mem_usage.cc', | |
175 '$CHROME_DIR/test/perf/mem_usage.h', | |
176 '$CHROME_DIR/test/reliability/page_load_test$OBJSUFFIX', | |
177 '$CHROME_DIR/test/reliability/page_load_test.h', | |
178 ]), | |
179 MSVSFilter('TestSandbox', [ | |
180 'sandbox_uitests.cc', | |
181 ]), | |
182 MSVSFilter('TestInspector', [ | |
183 'inspector_controller_uitest.cc', | |
184 ]), | |
185 MSVSFilter('TestLocalizedBuilds', [ | |
186 '$CHROME_DIR/browser/locale_tests_uitest.cc', | |
187 ]), | |
188 MSVSFilter('TestMetricsService', [ | |
189 '$CHROME_DIR/browser/metrics/metrics_service_uitest.cc', | |
190 ]), | |
191 MSVSFilter('TestInterstitialPage', [ | |
192 '$CHROME_DIR/browser/interstitial_page_uitest.cc', | |
193 ]), | |
194 MSVSFilter('TestSSL', [ | |
195 '$CHROME_DIR/browser/ssl/ssl_uitest.cc', | |
196 ]), | |
197 MSVSFilter('TestAccessibility', [ | |
198 '$CHROME_DIR/test/accessibility/accessibility_tests.cc', | |
199 MSVSFilter('Accessibility Client', [ | |
200 '$CHROME_DIR/test/accessibility/accessibility_util.cc', | |
201 '$CHROME_DIR/test/accessibility/accessibility_util.h', | |
202 '$CHROME_DIR/test/accessibility/browser_impl.cc', | |
203 '$CHROME_DIR/test/accessibility/browser_impl.h', | |
204 '$CHROME_DIR/test/accessibility/constants.h', | |
205 '$CHROME_DIR/test/accessibility/keyboard_util.cc', | |
206 '$CHROME_DIR/test/accessibility/keyboard_util.h', | |
207 '$CHROME_DIR/test/accessibility/registry_util.cc', | |
208 '$CHROME_DIR/test/accessibility/registry_util.h', | |
209 '$CHROME_DIR/test/accessibility/tab_impl.cc', | |
210 '$CHROME_DIR/test/accessibility/tab_impl.h', | |
211 ]), | |
212 ]), | |
213 MSVSFilter('TestCrashRecovery', [ | |
214 '$CHROME_DIR/browser/crash_recovery_uitest.cc', | |
215 ]), | |
216 MSVSFilter('TestPrinting', [ | |
217 '$CHROME_DIR/browser/printing/printing_layout_uitest.cc', | |
218 '$CHROME_DIR/browser/printing/printing_test.h', | |
219 ]), | |
220 MSVSFilter('TestSavePage', [ | |
221 '$CHROME_DIR/browser/download/save_page_uitest.cc', | |
222 ]), | |
223 MSVSFilter('TestOmnibox', [ | |
224 'omnibox_uitest.cc', | |
225 ]), | |
226 MSVSFilter('TestHistory', [ | |
227 'history_uitest.cc', | |
228 ]), | |
229 MSVSFilter('TestDOMChecker', [ | |
230 'dom_checker_uitest.cc', | |
231 ]), | |
232 MSVSFilter('TestSunSpider', [ | |
233 'sunspider_uitest.cc', | |
234 ]), | |
235 ]) | |
236 | |
237 if not env.Bit('windows'): | |
238 # TODO(port): mark which of these work and which don't. | |
239 input_files.Remove( | |
240 'layout_plugin_uitest.cpp', | |
241 'npapi_test_helper.cc', | |
242 'npapi_uitest.cpp', | |
243 'omnibox_uitest.cc', | |
244 'dom_checker_uitest.cc', | |
245 'sunspider_uitest.cc', | |
246 | |
247 'sandbox_uitests.cc', | |
248 | |
249 '$CHROME_DIR/app/chrome_main_uitest.cc', | |
250 '$CHROME_DIR/browser/browser_uitest.cc', | |
251 '$CHROME_DIR/browser/crash_recovery_uitest.cc', | |
252 '$CHROME_DIR/browser/download/download_uitest.cc', | |
253 '$CHROME_DIR/browser/download/save_page_uitest.cc', | |
254 '$CHROME_DIR/browser/errorpage_uitest.cc', | |
255 '$CHROME_DIR/browser/iframe_uitest.cc', | |
256 '$CHROME_DIR/browser/interstitial_page_uitest.cc', | |
257 '$CHROME_DIR/browser/login_prompt_uitest.cc', | |
258 '$CHROME_DIR/browser/metrics/metrics_service_uitest.cc', | |
259 '$CHROME_DIR/browser/printing/printing_layout_uitest.cc', | |
260 '$CHROME_DIR/browser/renderer_host/resource_dispatcher_host_uitest.cc', | |
261 '$CHROME_DIR/browser/session_history_uitest.cc', | |
262 '$CHROME_DIR/browser/sessions/session_restore_uitest.cc', | |
263 '$CHROME_DIR/browser/ssl/ssl_uitest.cc', | |
264 '$CHROME_DIR/browser/tab_contents/view_source_uitest.cc', | |
265 '$CHROME_DIR/browser/tab_restore_uitest.cc', | |
266 '$CHROME_DIR/browser/unload_uitest.cc', | |
267 '$CHROME_DIR/common/logging_chrome_uitest.cc', | |
268 '$CHROME_DIR/common/net/cache_uitest.cc', | |
269 '$CHROME_DIR/common/pref_service_uitest.cc', | |
270 '$CHROME_DIR/test/accessibility/accessibility_tests.cc', | |
271 '$CHROME_DIR/test/accessibility/accessibility_util.cc', | |
272 '$CHROME_DIR/test/accessibility/browser_impl.cc', | |
273 '$CHROME_DIR/test/accessibility/keyboard_util.cc', | |
274 '$CHROME_DIR/test/accessibility/registry_util.cc', | |
275 '$CHROME_DIR/test/accessibility/tab_impl.cc', | |
276 '$CHROME_DIR/test/automation/automation_proxy_uitest.cc', | |
277 '$CHROME_DIR/test/perf/mem_usage.cc', | |
278 '$CHROME_DIR/test/reliability/page_load_test$OBJSUFFIX', | |
279 '$NET_DIR/url_request/url_request_test_job$OBJSUFFIX', | |
280 ) | |
281 | |
282 if not env.Bit('windows'): | |
283 # Windows-specific tests. | |
284 input_files.Remove( | |
285 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', | |
286 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', | |
287 '$CHROME_DIR/browser/views/find_bar_win_interactive_uitest.cc', | |
288 '$CHROME_DIR/browser/views/find_bar_win_uitest.cc', | |
289 ) | |
290 | |
291 env.ChromeTestProgram('ui_tests', input_files) | |
292 | |
293 p = env.ChromeMSVSProject('ui_tests.vcproj', | |
294 dest='$CHROME_SRC_DIR/chrome/test/ui/ui_tests.vcproj', | |
295 guid='{76235B67-1C27-4627-8A33-4B2E1EF93EDE}', | |
296 dependencies = [ | |
297 ('$WEBKIT_DIR/glue/plugins/test/' + | |
298 'npapi_test_plugin.vcproj'), | |
299 '$CHROME_DIR/test/automation/automation.vcproj', | |
300 '$BASE_DIR/build/base.vcproj', | |
301 '$BZIP2_DIR/bzip2.vcproj', | |
302 '$NET_DIR/build/net.vcproj', | |
303 '$CHROME_DIR/browser/browser.vcproj', | |
304 '$MODP_B64_DIR/modp_b64.vcproj', | |
305 '$CHROME_DIR/app/chrome_exe.vcproj', | |
306 '$ZLIB_DIR/zlib.vcproj', | |
307 '$CHROME_DIR/common/common.vcproj', | |
308 '$ICU38_DIR/build/icu.vcproj', | |
309 '$CHROME_DIR/app/locales/he.vcproj', | |
310 '$CHROME_DIR/app/locales/da.vcproj', | |
311 '$BASE_DIR/build/base_gfx.vcproj', | |
312 ('$WEBKIT_DIR/tools/npapi_layout_test_plugin/' | |
313 + 'npapi_layout_test_plugin.vcproj'), | |
314 '$TESTING_DIR/gtest.vcproj', | |
315 '$LIBPNG_DIR/libpng.vcproj', | |
316 '$CHROME_DIR/app/locales/en-US.vcproj', | |
317 '$SKIA_DIR/skia.vcproj', | |
318 ('$CHROME_DIR/test/security_tests/' | |
319 + 'security_tests.vcproj'), | |
320 '$CHROME_DIR/app/locales/zh-TW.vcproj', | |
321 '$GOOGLEURL_DIR/build/googleurl.vcproj', | |
322 '$SDCH_DIR/sdch.vcproj', | |
323 '$LIBXML_DIR/build/libxml.vcproj', | |
324 '$CHROME_DIR/browser/views/browser_views.vcproj', | |
325 ], | |
326 # TODO(sgk): when we can intuit the hierarchy | |
327 # from the built targets. | |
328 #buildtargets=TODO, | |
329 files=input_files, | |
330 local_directory_prefix='./', | |
331 tools=[ | |
332 'VCPreBuildEventTool', | |
333 'VCCustomBuildTool', | |
334 'VCXMLDataGeneratorTool', | |
335 'VCWebServiceProxyGeneratorTool', | |
336 'VCMIDLTool', | |
337 MSVSTool('VCCLCompilerTool', | |
338 AdditionalIncludeDirectories=[ | |
339 '"$(OutDir)/obj/generated_resources"', | |
340 ]), | |
341 'VCManagedResourceCompilerTool', | |
342 'VCResourceCompilerTool', | |
343 'VCPreLinkEventTool', | |
344 MSVSTool('VCLinkerTool', | |
345 AdditionalDependencies='winmm.lib'), | |
346 'VCALinkTool', | |
347 'VCManifestTool', | |
348 'VCXDCMakeTool', | |
349 'VCBscMakeTool', | |
350 'VCFxCopTool', | |
351 'VCAppVerifierTool', | |
352 'VCWebDeploymentTool', | |
353 'VCPostBuildEventTool', | |
354 ], | |
355 ConfigurationType='1') | |
356 | |
357 | |
358 p.AddConfig('Debug|Win32', | |
359 InheritedPropertySheets=[ | |
360 '$(SolutionDir)../build/common.vsprops', | |
361 '$(SolutionDir)../build/debug.vsprops', | |
362 '../../tools/build/win/precompiled_wtl.vsprops', | |
363 ('$(SolutionDir)../third_party/' | |
364 + 'libxml/build/using_libxml.vsprops'), | |
365 ('$(SolutionDir)../third_party/' | |
366 + 'libxslt/build/using_libxslt.vsprops'), | |
367 '../../tools/build/win/unit_test.vsprops', | |
368 '../../tools/build/win/ui_test.vsprops', | |
369 '../../tools/build/win/test_memory_usage.vsprops', | |
370 '$(SolutionDir)../skia/using_skia.vsprops', | |
371 '$(SolutionDir)../third_party/icu38/build/using_icu.vsprops', | |
372 '$(SolutionDir)/tools/build/win/js_engine.vsprops', | |
373 '$(SolutionDir)../testing/using_gtest.vsprops', | |
374 ]) | |
375 | |
376 p.AddConfig('Release|Win32', | |
377 InheritedPropertySheets=[ | |
378 '$(SolutionDir)../build/common.vsprops', | |
379 '$(SolutionDir)../build/release.vsprops', | |
380 ('$(SolutionDir)../third_party/' | |
381 + 'libxml/build/using_libxml.vsprops'), | |
382 ('$(SolutionDir)../third_party/' | |
383 + 'libxslt/build/using_libxslt.vsprops'), | |
384 '../../tools/build/win/unit_test.vsprops', | |
385 '../../tools/build/win/ui_test.vsprops', | |
386 '$(SolutionDir)../skia/using_skia.vsprops', | |
387 '$(SolutionDir)../third_party/icu38/build/using_icu.vsprops', | |
388 '$(SolutionDir)/tools/build/win/js_engine.vsprops', | |
389 '$(SolutionDir)../testing/using_gtest.vsprops', | |
390 ]) | |
391 | |
392 p.AddFileConfig('../../tools/build/win/precompiled_wtl.cc', | |
393 'Debug|Win32', | |
394 tools=[ | |
395 MSVSTool('VCCLCompilerTool', | |
396 UsePrecompiledHeader='1'), | |
397 ]) | |
OLD | NEW |