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