OLD | NEW |
| (Empty) |
1 # Copyright (c) 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 __doc__ = """ | |
6 Configuration for building the perf_tests{,.exe} executable. | |
7 """ | |
8 | |
9 Import('env') | |
10 | |
11 env = env.Clone() | |
12 | |
13 env.ApplySConscript([ | |
14 '$BASE_DIR/using_base.scons', | |
15 '$NET_DIR/using_net.scons', | |
16 '$CHROME_SRC_DIR/build/using_googleurl.scons', | |
17 '$GTEST_DIR/../using_gtest.scons', | |
18 '$ICU38_DIR/using_icu38.scons', | |
19 '$MODP_B64_DIR/using_modp_b64.scons', | |
20 | |
21 '$BASE_DIR/gfx/using_base_gfx.scons', | |
22 '$BZIP2_DIR/using_bzip2.scons', | |
23 '$CHROME_SRC_DIR/build/using_v8.scons', | |
24 '$LIBJPEG_DIR/using_libjpeg.scons', | |
25 '$LIBPNG_DIR/using_libpng.scons', | |
26 '$LIBXML_DIR/using_libxml.scons', | |
27 '$LIBXSLT_DIR/using_libxslt.scons', | |
28 '$MEDIA_DIR/using_media.scons', | |
29 '$PRINTING_DIR/using_printing.scons', | |
30 '$SDCH_DIR/using_sdch.scons', | |
31 '$SKIA_DIR/using_skia.scons', | |
32 '$ZLIB_DIR/using_zlib.scons', | |
33 | |
34 # TODO(port): we should have a using_browser.scons that pulls in hunspell | |
35 # for itself. | |
36 '$CHROME_DIR/third_party/hunspell/using_hunspell.scons', | |
37 ]) | |
38 | |
39 env.Prepend( | |
40 CPPDEFINES = [ | |
41 'PERF_TEST', | |
42 ], | |
43 LIBS = [ | |
44 'views', | |
45 | |
46 'browser', | |
47 'common', | |
48 'sqlite', | |
49 | |
50 'JavaScriptCore_pcre', | |
51 'V8Bindings', | |
52 'WTF', | |
53 'WebCore', | |
54 'WebKit', | |
55 'debugger', | |
56 'glue', | |
57 'port', | |
58 'renderer', | |
59 | |
60 'X11', | |
61 'Xrender', | |
62 'Xext', | |
63 ], | |
64 ) | |
65 | |
66 if env.Bit('posix'): | |
67 env.SConscript([ | |
68 '$LIBEVENT_DIR/using_libevent.scons', | |
69 ], {'env':env}) | |
70 | |
71 if env.Bit('windows'): | |
72 env.Prepend( | |
73 LIBS = [ | |
74 'rpcrt4', | |
75 'shlwapi', | |
76 'winmm', | |
77 ] | |
78 ) | |
79 | |
80 input_files = ChromeFileList([ | |
81 # TODO(sgk): violate standard indentation so we don't have to | |
82 # reindent too much when we remove the explicit MSVSFilter() calls | |
83 # in favor of generating the hierarchy to reflect the file system. | |
84 MSVSFilter('TestVisitedLink', [ | |
85 '$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX', | |
86 '$CHROME_DIR/browser/visitedlink_perftest.cc', | |
87 ]), | |
88 MSVSFilter('Common', [ | |
89 'perftests.cc', | |
90 '$BASE_DIR/perftimer$OBJSUFFIX', | |
91 ]), | |
92 MSVSFilter('TestURLParser', [ | |
93 'url_parse_perftest.cc', | |
94 ]), | |
95 MSVSFilter('TestJSONSerializer', [ | |
96 '$CHROME_DIR/common/json_value_serializer_perftest.cc', | |
97 ]), | |
98 MSVSFilter('TestSafeBrowsing', [ | |
99 '$CHROME_DIR/browser/safe_browsing/database_perftest.cc', | |
100 ]), | |
101 ]) | |
102 | |
103 if env.Bit('linux'): | |
104 # TODO(port): Port these files. | |
105 input_files.Remove( | |
106 'url_parse_perftest.cc', | |
107 '$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX', | |
108 '$CHROME_DIR/browser/visitedlink_perftest.cc', | |
109 ) | |
110 | |
111 if env.Bit('mac'): | |
112 # TODO(port): Port these files. | |
113 input_files.Remove( | |
114 'url_parse_perftest.cc', | |
115 '$CHROME_DIR/browser/visitedlink_master$OBJSUFFIX', | |
116 '$CHROME_DIR/browser/visitedlink_perftest.cc', | |
117 ) | |
118 | |
119 if not env.Bit('mac'): | |
120 env.ChromeTestProgram('perf_tests', input_files) | |
121 | |
122 p = env.ChromeMSVSProject('perftests.vcproj', | |
123 name='perf_tests', | |
124 dest=('$CHROME_SRC_DIR/chrome/' | |
125 + 'test/perf/perftests.vcproj'), | |
126 guid='{9055E088-25C6-47FD-87D5-D9DD9FD75C9F}', | |
127 keyword='Win32Proj', | |
128 dependencies = [ | |
129 '$BASE_DIR/build/base.vcproj', | |
130 '$WEBKIT_DIR/build/WebCore/WebCore.vcproj', | |
131 '$CHROME_DIR/plugin/plugin.vcproj', | |
132 '$LIBJPEG_DIR/libjpeg.vcproj', | |
133 '$BZIP2_DIR/bzip2.vcproj', | |
134 '$NET_DIR/build/net.vcproj', | |
135 ('$WEBKIT_DIR/build/' | |
136 + 'JavaScriptCore/JavaScriptCore_pcre.vcproj'), | |
137 '$WEBKIT_DIR/build/port/port.vcproj', | |
138 '$CHROME_DIR/browser/debugger/debugger.vcproj', | |
139 ('$WEBKIT_DIR/default_plugin/' | |
140 + 'default_plugin.vcproj'), | |
141 '$CHROME_DIR/browser/browser.vcproj', | |
142 '$WEBKIT_DIR/build/V8Bindings/V8Bindings.vcproj', | |
143 '$SQLITE_DIR/sqlite.vcproj', | |
144 '$CHROME_DIR/views/views.vcproj', | |
145 '$MODP_B64_DIR/modp_b64.vcproj', | |
146 '$ZLIB_DIR/zlib.vcproj', | |
147 '$CHROME_DIR/common/common.vcproj', | |
148 '$ICU38_DIR/build/icu.vcproj', | |
149 '$CHROME_DIR/renderer/renderer.vcproj', | |
150 '$BASE_DIR/build/base_gfx.vcproj', | |
151 '$WEBKIT_DIR/build/JavaScriptCore/WTF.vcproj', | |
152 '$TESTING_DIR/gtest.vcproj', | |
153 '$V8_DIR/tools/visual_studio/v8_snapshot.vcproj', | |
154 '$LIBPNG_DIR/libpng.vcproj', | |
155 '$WEBKIT_DIR/build/glue/glue.vcproj', | |
156 '$SKIA_DIR/skia.vcproj', | |
157 ('$CHROME_DIR/third_party/' | |
158 + 'hunspell/hunspell.vcproj'), | |
159 '$GOOGLEURL_DIR/build/googleurl.vcproj', | |
160 '$CHROME_DIR/installer/util/util.vcproj', | |
161 '$WEBKIT_DIR/activex_shim/activex_shim.vcproj', | |
162 '$SDCH_DIR/sdch.vcproj', | |
163 '$CHROME_DIR/browser/views/browser_views.vcproj', | |
164 '$LIBXSLT_DIR/build/libxslt.vcproj', | |
165 ], | |
166 # TODO(sgk): when we can intuit the hierarchy | |
167 # from the built targets. | |
168 #buildtargets=TODO, | |
169 files=input_files, | |
170 local_directory_prefix='./', | |
171 tools=[ | |
172 'VCPreBuildEventTool', | |
173 'VCCustomBuildTool', | |
174 'VCXMLDataGeneratorTool', | |
175 'VCWebServiceProxyGeneratorTool', | |
176 'VCMIDLTool', | |
177 MSVSTool('VCCLCompilerTool', | |
178 PreprocessorDefinitions=[ | |
179 'PERF_TEST', | |
180 '_CRT_RAND_S', | |
181 ]), | |
182 'VCManagedResourceCompilerTool', | |
183 'VCResourceCompilerTool', | |
184 'VCPreLinkEventTool', | |
185 MSVSTool('VCLinkerTool', | |
186 AdditionalDependencies=[ | |
187 'shlwapi.lib', | |
188 'rpcrt4.lib', | |
189 'winmm.lib', | |
190 ], | |
191 SubSystem='1'), | |
192 'VCALinkTool', | |
193 'VCManifestTool', | |
194 'VCXDCMakeTool', | |
195 'VCBscMakeTool', | |
196 'VCFxCopTool', | |
197 'VCAppVerifierTool', | |
198 'VCWebDeploymentTool', | |
199 'VCPostBuildEventTool', | |
200 ], | |
201 ConfigurationType='1') | |
202 | |
203 | |
204 p.AddConfig('Debug|Win32', | |
205 InheritedPropertySheets=[ | |
206 '$(SolutionDir)../build/common.vsprops', | |
207 '$(SolutionDir)../build/debug.vsprops', | |
208 '$(SolutionDir)../third_party/icu38/build/using_icu.vsprops', | |
209 ('$(SolutionDir)../' | |
210 + 'third_party/libxml/build/using_libxml.vsprops'), | |
211 '$(SolutionDir)../testing/using_gtest.vsprops', | |
212 '$(SolutionDir)../skia/using_skia.vsprops', | |
213 ]) | |
214 | |
215 p.AddConfig('Release|Win32', | |
216 InheritedPropertySheets=[ | |
217 '$(SolutionDir)../build/common.vsprops', | |
218 '$(SolutionDir)../build/release.vsprops', | |
219 '$(SolutionDir)../third_party/icu38/build/using_icu.vsprops', | |
220 ('$(SolutionDir)../' | |
221 + 'third_party/libxml/build/using_libxml.vsprops'), | |
222 '$(SolutionDir)../testing/using_gtest.vsprops', | |
223 '$(SolutionDir)../skia/using_skia.vsprops', | |
224 ]) | |
OLD | NEW |