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/gfx/using_base_gfx.scons', | |
11 '$BASE_DIR/using_base.scons', | |
12 '$BZIP2_DIR/using_bzip2.scons', | |
13 '$CHROME_DIR/third_party/hunspell/using_hunspell.scons', | |
14 '$CHROME_DIR/third_party/wtl/using_wtl.scons', | |
15 '$CHROME_SRC_DIR/build/using_googleurl.scons', | |
16 '$CHROME_SRC_DIR/build/using_v8.scons', | |
17 '$GTEST_DIR/../using_gtest.scons', | |
18 '$ICU38_DIR/using_icu38.scons', | |
19 '$LIBJPEG_DIR/using_libjpeg.scons', | |
20 '$LIBPNG_DIR/using_libpng.scons', | |
21 '$LIBXML_DIR/using_libxml.scons', | |
22 '$LIBXSLT_DIR/using_libxslt.scons', | |
23 '$MODP_B64_DIR/using_modp_b64.scons', | |
24 '$NET_DIR/using_net.scons', | |
25 '$NPAPI_DIR/using_npapi.scons', | |
26 '$SDCH_DIR/using_sdch.scons', | |
27 '$SKIA_DIR/using_skia.scons', | |
28 '$ZLIB_DIR/using_zlib.scons', | |
29 ], {'env':env}) | |
30 | |
31 env.Prepend( | |
32 CPPDEFINES = [ | |
33 'UI_TEST', | |
34 ], | |
35 CPPPATH = [ | |
36 '$CHROME_DIR/app', | |
37 # For generated_resources.h | |
38 '$CHROME_DIR/app/resources', | |
39 '$CHROME_SRC_DIR', | |
40 ], | |
41 LIBS = [ | |
42 'automation', | |
43 'browser', | |
44 'browser_views', | |
45 'common', | |
46 'debugger', | |
47 'default_plugin', | |
48 'glue', | |
49 #'jscre', | |
50 'JavaScriptCore_pcre', | |
51 'plugin', | |
52 'port', | |
53 'renderer', | |
54 'sqlite', | |
55 'test_chrome_plugin', | |
56 'util', | |
57 'views', | |
58 'v8_snapshot', | |
59 'V8Bindings', | |
60 'WebCore', | |
61 'WTF', | |
62 ], | |
63 ) | |
64 | |
65 if env.Bit('windows'): | |
66 env.Prepend( | |
67 LINKFLAGS = [ | |
68 '/INCREMENTAL', | |
69 '/DEBUG', | |
70 | |
71 '/DELAYLOAD:"dwmapi.dll"', | |
72 '/DELAYLOAD:"uxtheme.dll"', | |
73 | |
74 '/MACHINE:X86', | |
75 '/FIXED:No', | |
76 | |
77 '/safeseh', | |
78 '/dynamicbase', | |
79 '/ignore:4199', | |
80 '/nxcompat', | |
81 ], | |
82 LIBS = [ | |
83 'activex_shim', | |
84 'comsupp', | |
85 'oleacc', | |
86 'psapi', | |
87 'rpcrt4', | |
88 'winmm', | |
89 ], | |
90 ) | |
91 | |
92 input_files = ChromeFileList([ | |
93 # TODO(sgk): violate standard indentation so we don't have to | |
94 # reindent too much when we remove the explicit MSVSFilter() calls | |
95 # in favor of generating the hierarchy to reflect the file system. | |
96 MSVSFilter('Common', [ | |
97 '$CHROME_DIR/test/ui/npapi_test_helper$OBJSUFFIX', | |
98 '$CHROME_DIR/test/ui/npapi_test_helper.h', | |
99 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', | |
100 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', | |
101 '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX', | |
102 '$CHROME_DIR/test/testing_profile$OBJSUFFIX', | |
103 '$CHROME_DIR/test/testing_profile.h', | |
104 '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX', | |
105 '$CHROME_DIR/test/ui/ui_test.h', | |
106 '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX', | |
107 'view_event_test_base.cc', | |
108 'view_event_test_base.h', | |
109 ]), | |
110 MSVSFilter('TestBookmarkBarView', [ | |
111 '$CHROME_DIR/browser/views/bookmark_bar_view_test.cc', | |
112 ]), | |
113 MSVSFilter('TestFindInPage', [ | |
114 '$CHROME_DIR/browser/views/find_bar_win_interactive_uitest.cc', | |
115 ]), | |
116 MSVSFilter('TestFocus', [ | |
117 '$CHROME_DIR/browser/browser_focus_uitest.cc', | |
118 '$CHROME_DIR/browser/views/constrained_window_impl_interactive_uitest.cc', | |
119 ]), | |
120 MSVSFilter('TestTabDragging', [ | |
121 '$CHROME_DIR/browser/views/tabs/tab_dragging_test.cc', | |
122 ]), | |
123 MSVSFilter('TestNPAPI', [ | |
124 'npapi_interactive_test.cc', | |
125 ]), | |
126 ]) | |
127 | |
128 if not env.Bit('windows'): | |
129 # Windows-specific. | |
130 input_files.Remove( | |
131 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', | |
132 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', | |
133 ) | |
134 | |
135 # TODO(port): | |
136 if env.Bit('windows'): | |
137 env.ChromeTestProgram('interactive_ui_tests', input_files) | |
138 | |
139 p = env.ChromeMSVSProject('interactive_ui.vcproj', | |
140 name='interactive_ui_tests', | |
141 root_namespace='manual_ui', | |
142 dest=('$CHROME_SRC_DIR/chrome/test/' | |
143 + 'interactive_ui/interactive_ui.vcproj'), | |
144 guid='{018D4F38-6272-448F-A864-976DA09F05D0}', | |
145 dependencies = [ | |
146 '$CHROME_DIR/test/automation/automation.vcproj', | |
147 '$BASE_DIR/build/base.vcproj', | |
148 '$WEBKIT_DIR/build/WebCore/WebCore.vcproj', | |
149 '$CHROME_DIR/plugin/plugin.vcproj', | |
150 '$LIBJPEG_DIR/libjpeg.vcproj', | |
151 '$BZIP2_DIR/bzip2.vcproj', | |
152 '$NET_DIR/build/net.vcproj', | |
153 ('$WEBKIT_DIR/build/JavaScriptCore/' + | |
154 'JavaScriptCore_pcre.vcproj'), | |
155 '$WEBKIT_DIR/build/port/port.vcproj', | |
156 '$CHROME_DIR/browser/debugger/debugger.vcproj', | |
157 ('$WEBKIT_DIR/default_plugin/' | |
158 + 'default_plugin.vcproj'), | |
159 '$CHROME_DIR/browser/browser.vcproj', | |
160 '$WEBKIT_DIR/build/V8Bindings/V8Bindings.vcproj', | |
161 '$SQLITE_DIR/sqlite.vcproj', | |
162 '$CHROME_DIR/views/views.vcproj', | |
163 '$MODP_B64_DIR/modp_b64.vcproj', | |
164 '$CHROME_DIR/app/chrome_exe.vcproj', | |
165 ('$CHROME_DIR/test/chrome_plugin/' + | |
166 'test_chrome_plugin.vcproj'), | |
167 '$ZLIB_DIR/zlib.vcproj', | |
168 '$CHROME_DIR/common/common.vcproj', | |
169 '$ICU38_DIR/build/icu.vcproj', | |
170 '$CHROME_DIR/renderer/renderer.vcproj', | |
171 '$BASE_DIR/build/base_gfx.vcproj', | |
172 '$WEBKIT_DIR/build/JavaScriptCore/WTF.vcproj', | |
173 ('$CHROME_DIR/browser/resources/' + | |
174 'browser_resources.vcproj'), | |
175 '$RLZ_DIR/rlz.vcproj', | |
176 '$TESTING_DIR/gtest.vcproj', | |
177 '$V8_DIR/tools/visual_studio/v8_snapshot.vcproj', | |
178 '$LIBPNG_DIR/libpng.vcproj', | |
179 '$WEBKIT_DIR/build/glue/glue.vcproj', | |
180 '$CHROME_DIR/app/locales/en-US.vcproj', | |
181 '$SKIA_DIR/skia.vcproj', | |
182 ('$CHROME_DIR/third_party/' | |
183 + 'hunspell/hunspell.vcproj'), | |
184 '$GOOGLEURL_DIR/build/googleurl.vcproj', | |
185 '$CHROME_DIR/installer/util/util.vcproj', | |
186 '$WEBKIT_DIR/activex_shim/activex_shim.vcproj', | |
187 '$SDCH_DIR/sdch.vcproj', | |
188 '$CHROME_DIR/browser/views/browser_views.vcproj', | |
189 '$LIBXSLT_DIR/build/libxslt.vcproj', | |
190 '$CHROME_DIR/app/theme/theme_dll.vcproj', | |
191 ], | |
192 # TODO(sgk): when we can intuit the hierarchy | |
193 # from the built targets. | |
194 #buildtargets=TODO, | |
195 files=input_files, | |
196 local_directory_prefix='./', | |
197 ConfigurationType='1') | |
198 | |
199 | |
200 p.AddConfig('Debug|Win32', | |
201 InheritedPropertySheets=[ | |
202 '$(SolutionDir)../build/common.vsprops', | |
203 '$(SolutionDir)../build/debug.vsprops', | |
204 '../../tools/build/win/precompiled_wtl.vsprops', | |
205 '../../tools/build/win/unit_test.vsprops', | |
206 '$(SolutionDir)../third_party/libpng/using_libpng.vsprops', | |
207 '$(SolutionDir)../third_party/zlib/using_zlib.vsprops', | |
208 '$(SolutionDir)../skia/using_skia.vsprops', | |
209 ('$(SolutionDir)../' | |
210 + 'third_party/libxml/build/using_libxml.vsprops'), | |
211 '../../../third_party/icu38/build/using_icu.vsprops', | |
212 '$(SolutionDir)../testing/using_gtest.vsprops', | |
213 '../../third_party/hunspell/using_hunspell.vsprops', | |
214 ], | |
215 tools=[ | |
216 'VCPreBuildEventTool', | |
217 'VCCustomBuildTool', | |
218 'VCXMLDataGeneratorTool', | |
219 'VCWebServiceProxyGeneratorTool', | |
220 'VCMIDLTool', | |
221 'VCCLCompilerTool', | |
222 'VCManagedResourceCompilerTool', | |
223 'VCResourceCompilerTool', | |
224 'VCPreLinkEventTool', | |
225 'VCLinkerTool', | |
226 'VCALinkTool', | |
227 'VCManifestTool', | |
228 'VCXDCMakeTool', | |
229 'VCBscMakeTool', | |
230 'VCFxCopTool', | |
231 'VCAppVerifierTool', | |
232 'VCWebDeploymentTool', | |
233 'VCPostBuildEventTool', | |
234 ]) | |
235 | |
236 p.AddConfig('Release|Win32', | |
237 InheritedPropertySheets=[ | |
238 '$(SolutionDir)../build/common.vsprops', | |
239 '$(SolutionDir)../build/release.vsprops', | |
240 '../../tools/build/win/unit_test.vsprops', | |
241 '$(SolutionDir)../third_party/libpng/using_libpng.vsprops', | |
242 '$(SolutionDir)../third_party/zlib/using_zlib.vsprops', | |
243 '$(SolutionDir)../skia/using_skia.vsprops', | |
244 ('$(SolutionDir)../' | |
245 + 'third_party/libxml/build/using_libxml.vsprops'), | |
246 '../../../third_party/icu38/build/using_icu.vsprops', | |
247 '$(SolutionDir)../testing/using_gtest.vsprops', | |
248 '../../third_party/hunspell/using_hunspell.vsprops', | |
249 ], | |
250 tools=[ | |
251 'VCPreBuildEventTool', | |
252 'VCCustomBuildTool', | |
253 'VCXMLDataGeneratorTool', | |
254 'VCWebServiceProxyGeneratorTool', | |
255 'VCMIDLTool', | |
256 'VCCLCompilerTool', | |
257 'VCManagedResourceCompilerTool', | |
258 'VCResourceCompilerTool', | |
259 'VCPreLinkEventTool', | |
260 MSVSTool('VCLinkerTool', | |
261 AdditionalDependencies='winmm.lib'), | |
262 'VCALinkTool', | |
263 'VCManifestTool', | |
264 'VCXDCMakeTool', | |
265 'VCBscMakeTool', | |
266 'VCFxCopTool', | |
267 'VCAppVerifierTool', | |
268 'VCWebDeploymentTool', | |
269 'VCPostBuildEventTool', | |
270 ]) | |
271 | |
272 p.AddFileConfig('../../tools/build/win/precompiled_wtl.cc', | |
273 'Debug|Win32', | |
274 tools=[ | |
275 MSVSTool('VCCLCompilerTool', | |
276 UsePrecompiledHeader='1'), | |
277 ]) | |
OLD | NEW |