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 __doc__ = """ | 5 __doc__ = """ |
6 Configuration for building the net_perftests{,.exe} executable. | 6 Configuration for building the net_perftests{,.exe} executable. |
7 """ | 7 """ |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 CCFLAGS = [ | 30 CCFLAGS = [ |
31 '/WX', | 31 '/WX', |
32 ], | 32 ], |
33 ) | 33 ) |
34 elif env.Bit('linux'): | 34 elif env.Bit('linux'): |
35 env.Append( | 35 env.Append( |
36 # TODO(port): disk_cache_perftest breaks strict aliasing rules. | 36 # TODO(port): disk_cache_perftest breaks strict aliasing rules. |
37 CCFLAGS = ['-fno-strict-aliasing'], | 37 CCFLAGS = ['-fno-strict-aliasing'], |
38 ) | 38 ) |
39 | 39 |
40 input_files = ChromeFileList([ | 40 input_files = [ |
41 # TODO(sgk): violate standard indentation so we don't have to | |
42 # reindent too much when we remove the explicit MSVSFilter() calls | |
43 # in favor of generating the hierarchy to reflect the file system. | |
44 MSVSFilter('support', [ | |
45 '../base/perftimer$OBJSUFFIX', | |
46 '../base/run_all_perftests$OBJSUFFIX', | |
47 ]), | |
48 MSVSFilter('tests', [ | |
49 'base/cookie_monster_perftest.cc', | 41 'base/cookie_monster_perftest.cc', |
50 'disk_cache/disk_cache_perftest.cc', | 42 'disk_cache/disk_cache_perftest.cc', |
51 'disk_cache/disk_cache_test_util$OBJSUFFIX', | 43 'disk_cache/disk_cache_test_util$OBJSUFFIX', |
52 ]), | 44 |
53 ]) | 45 # TODO(sgk): avoid using .cc from base directly |
| 46 '$OBJ_ROOT/base/run_all_perftests$OBJSUFFIX', |
| 47 '$OBJ_ROOT/base/perftimer$OBJSUFFIX', |
| 48 ] |
54 | 49 |
55 if not env.Bit('mac'): | 50 if not env.Bit('mac'): |
56 env.ChromeTestProgram('net_perftests', input_files) | 51 env.ChromeTestProgram('net_perftests', input_files) |
57 | 52 |
58 env.ChromeMSVSProject('$NET_DIR/build/net_perftests.vcproj', | 53 env.ChromeMSVSProject('$NET_DIR/build/net_perftests.vcproj', |
| 54 dependencies = [ |
| 55 '$BASE_DIR/build/base.vcproj', |
| 56 '$NET_DIR/build/net.vcproj', |
| 57 '$MODP_B64_DIR/modp_b64.vcproj', |
| 58 '$ICU38_DIR/build/icu.vcproj', |
| 59 '$TESTING_DIR/gtest.vcproj', |
| 60 '$GOOGLEURL_DIR/build/googleurl.vcproj', |
| 61 '$SDCH_DIR/sdch.vcproj', |
| 62 ], |
59 guid='{AAC78796-B9A2-4CD9-BF89-09B03E92BF73}') | 63 guid='{AAC78796-B9A2-4CD9-BF89-09B03E92BF73}') |
60 | |
61 # TODO######################################################################## | |
62 | |
63 p = env.ChromeMSVSProject('$NET_DIR/build/net_perftests.vcproj', | |
64 guid='{AAC78796-B9A2-4CD9-BF89-09B03E92BF73}', | |
65 dependencies = [ | |
66 '$BASE_DIR/build/base.vcproj', | |
67 '$NET_DIR/build/net.vcproj', | |
68 '$MODP_B64_DIR/modp_b64.vcproj', | |
69 '$ICU38_DIR/build/icu.vcproj', | |
70 '$TESTING_DIR/gtest.vcproj', | |
71 '$GOOGLEURL_DIR/build/googleurl.vcproj', | |
72 '$SDCH_DIR/sdch.vcproj', | |
73 ], | |
74 # TODO: restore when we can derive all info, | |
75 # on all platforms, from the windows build targets. | |
76 #buildtargets=TODO, | |
77 files=input_files, | |
78 tools=[ | |
79 'VCPreBuildEventTool', | |
80 'VCCustomBuildTool', | |
81 'VCXMLDataGeneratorTool', | |
82 'VCWebServiceProxyGeneratorTool', | |
83 'VCMIDLTool', | |
84 # TODO(sgk): pull this from CPPDEFINES. | |
85 MSVSTool('VCCLCompilerTool', | |
86 PreprocessorDefinitions='PERF_TEST'), | |
87 'VCManagedResourceCompilerTool', | |
88 'VCResourceCompilerTool', | |
89 'VCPreLinkEventTool', | |
90 'VCLinkerTool', | |
91 'VCALinkTool', | |
92 'VCManifestTool', | |
93 'VCXDCMakeTool', | |
94 'VCBscMakeTool', | |
95 'VCFxCopTool', | |
96 'VCAppVerifierTool', | |
97 'VCWebDeploymentTool', | |
98 'VCPostBuildEventTool', | |
99 ], | |
100 ConfigurationType='1') | |
101 | |
102 | |
103 p.AddConfig('Debug|Win32', | |
104 InheritedPropertySheets=[ | |
105 '$(SolutionDir)../build/common.vsprops', | |
106 '$(SolutionDir)../build/debug.vsprops', | |
107 '$(SolutionDir)../testing/using_gtest.vsprops', | |
108 ]) | |
109 | |
110 p.AddConfig('Release|Win32', | |
111 InheritedPropertySheets=[ | |
112 '$(SolutionDir)../build/common.vsprops', | |
113 '$(SolutionDir)../build/release.vsprops', | |
114 '$(SolutionDir)../testing/using_gtest.vsprops', | |
115 ]) | |
116 | |
117 env.AlwaysBuild(p) | |
118 | |
119 i = env.Command('$CHROME_SRC_DIR/net/build/net_perftests.vcproj', p, | |
120 Copy('$TARGET', '$SOURCE')) | |
121 Alias('msvs', i) | |
OLD | NEW |