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