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.ApplySConscript([ | |
10 '$BASE_DIR/using_base.scons', | |
11 '$BASE_DIR/gfx/using_base_gfx.scons', | |
12 '$CHROME_DIR/third_party/wtl/using_wtl.scons', | |
13 '$CHROME_SRC_DIR/build/using_googleurl.scons', | |
14 '$GTEST_DIR/../using_gtest.scons', | |
15 '$ICU38_DIR/using_icu38.scons', | |
16 '$LIBPNG_DIR/using_libpng.scons', | |
17 '$LIBXML_DIR/using_libxml.scons', | |
18 '$MODP_B64_DIR/using_modp_b64.scons', | |
19 '$NET_DIR/using_net.scons', | |
20 '$SKIA_DIR/using_skia.scons', | |
21 '$ZLIB_DIR/using_zlib.scons', | |
22 ]) | |
23 | |
24 env.Prepend( | |
25 CPPPATH = [ | |
26 '$CHROME_SRC_DIR', | |
27 ], | |
28 LIBS = [ | |
29 'automation', | |
30 'browser', | |
31 'browser_views', | |
32 'common', | |
33 ], | |
34 ) | |
35 | |
36 if env.Bit('windows'): | |
37 env.Prepend( | |
38 CPPPATH = [ | |
39 '$CHROME_DIR/tools/build/win', | |
40 ], | |
41 LINKFLAGS = [ | |
42 '/INCREMENTAL', | |
43 | |
44 '/safeseh', | |
45 '/dynamicbase', | |
46 '/ignore:4199', | |
47 '/nxcompat', | |
48 | |
49 '/MANIFEST', | |
50 '/DELAYLOAD:"ws2_32.dll"', | |
51 '/DELAYLOAD:"dwmapi.dll"', | |
52 '/DELAYLOAD:"uxtheme.dll"', | |
53 | |
54 '/DEBUG', | |
55 '/MACHINE:X86', | |
56 '/FIXED:No', | |
57 ], | |
58 LIBS = [ | |
59 'comsupp', | |
60 'oleacc', | |
61 'psapi', | |
62 'rpcrt4', | |
63 ], | |
64 ) | |
65 | |
66 input_files = ChromeFileList([ | |
67 # TODO(sgk): violate standard indentation so we don't have to | |
68 # reindent too much when we remove the explicit MSVSFilter() calls | |
69 # in favor of generating the hierarchy to reflect the file system. | |
70 MSVSFilter('Common', [ | |
71 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', | |
72 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', | |
73 '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX', | |
74 '$CHROME_DIR/test/testing_browser_process.h', | |
75 '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX', | |
76 '$CHROME_DIR/test/ui/ui_test.h', | |
77 '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX', | |
78 ]), | |
79 MSVSFilter('MemoryUsage', [ | |
80 '$CHROME_DIR/test/perf/mem_usage$OBJSUFFIX', | |
81 '$CHROME_DIR/test/perf/mem_usage.h', | |
82 ]), | |
83 MSVSFilter('AutomatedUITest', [ | |
84 'automated_ui_tests.cc', | |
85 'automated_ui_tests.h', | |
86 ]), | |
87 ]) | |
88 | |
89 if not env.Bit('windows'): | |
90 input_files.Remove( | |
91 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', | |
92 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', | |
93 ) | |
94 | |
95 # TODO(port): | |
96 if env.Bit('windows'): | |
97 env.ChromeTestProgram('automated_ui_tests', input_files) | |
98 | |
99 p = env.ChromeMSVSProject('automated_ui_tests.vcproj', | |
100 dest=('$CHROME_SRC_DIR/chrome/test/' | |
101 + 'automated_ui_tests/' | |
102 + 'automated_ui_tests.vcproj'), | |
103 root_namespace='page_cycler_tests', | |
104 guid='{D2250C20-3A94-4FB9-AF73-11BC5B73884B}', | |
105 dependencies = [ | |
106 '$CHROME_DIR/test/automation/automation.vcproj', | |
107 '$BASE_DIR/build/base.vcproj', | |
108 '$LIBXML_DIR/build/libxml_config.vcproj', | |
109 '$NET_DIR/build/net.vcproj', | |
110 '$CHROME_DIR/browser/browser.vcproj', | |
111 '$MODP_B64_DIR/modp_b64.vcproj', | |
112 '$CHROME_DIR/app/chrome_exe.vcproj', | |
113 '$ZLIB_DIR/zlib.vcproj', | |
114 '$CHROME_DIR/common/common.vcproj', | |
115 '$ICU38_DIR/build/icu.vcproj', | |
116 '$BASE_DIR/build/base_gfx.vcproj', | |
117 '$TESTING_DIR/gtest.vcproj', | |
118 '$LIBPNG_DIR/libpng.vcproj', | |
119 '$SKIA_DIR/skia.vcproj', | |
120 '$GOOGLEURL_DIR/build/googleurl.vcproj', | |
121 '$LIBXML_DIR/build/libxml.vcproj', | |
122 '$CHROME_DIR/browser/views/browser_views.vcproj', | |
123 ], | |
124 # TODO(sgk): when we can intuit the hierarchy | |
125 # from the built targets. | |
126 #buildtargets=TODO, | |
127 files=input_files, | |
128 local_directory_prefix='./', | |
129 tools=[ | |
130 'VCPreBuildEventTool', | |
131 'VCCustomBuildTool', | |
132 'VCXMLDataGeneratorTool', | |
133 'VCWebServiceProxyGeneratorTool', | |
134 'VCMIDLTool', | |
135 'VCCLCompilerTool', | |
136 'VCManagedResourceCompilerTool', | |
137 'VCResourceCompilerTool', | |
138 'VCPreLinkEventTool', | |
139 'VCLinkerTool', | |
140 'VCALinkTool', | |
141 'VCManifestTool', | |
142 'VCXDCMakeTool', | |
143 'VCBscMakeTool', | |
144 'VCFxCopTool', | |
145 'VCAppVerifierTool', | |
146 'VCWebDeploymentTool', | |
147 'VCPostBuildEventTool', | |
148 ], | |
149 ConfigurationType='1') | |
150 | |
151 | |
152 p.AddConfig('Debug|Win32', | |
153 InheritedPropertySheets=[ | |
154 '$(SolutionDir)../build/common.vsprops', | |
155 '$(SolutionDir)../build/debug.vsprops', | |
156 '../../tools/build/win/precompiled_wtl.vsprops', | |
157 '../../tools/build/win/unit_test.vsprops', | |
158 '../../tools/build/win/ui_test.vsprops', | |
159 '$(SolutionDir)../skia/using_skia.vsprops', | |
160 ('$(SolutionDir)../' | |
161 + 'third_party/libxml/build/using_libxml.vsprops'), | |
162 '$(SolutionDir)../third_party/icu38/build/using_icu.vsprops', | |
163 '../../tools/build/win/test_memory_usage.vsprops', | |
164 '$(SolutionDir)../testing/using_gtest.vsprops', | |
165 ]) | |
166 | |
167 p.AddConfig('Release|Win32', | |
168 InheritedPropertySheets=[ | |
169 '$(SolutionDir)../build/common.vsprops', | |
170 '$(SolutionDir)../build/release.vsprops', | |
171 '../../tools/build/win/unit_test.vsprops', | |
172 '../../tools/build/win/ui_test.vsprops', | |
173 '../../tools/build/win/test_memory_usage.vsprops', | |
174 '$(SolutionDir)../skia/using_skia.vsprops', | |
175 ('$(SolutionDir)../' | |
176 + 'third_party/libxml/build/using_libxml.vsprops'), | |
177 '$(SolutionDir)../third_party/icu38/build/using_icu.vsprops', | |
178 '$(SolutionDir)../testing/using_gtest.vsprops', | |
179 ]) | |
180 | |
181 p.AddFileConfig('../../tools/build/win/precompiled_wtl.cc', | |
182 'Debug|Win32', | |
183 tools=[ | |
184 MSVSTool('VCCLCompilerTool', | |
185 UsePrecompiledHeader='1'), | |
186 ]) | |
OLD | NEW |