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 Import('env') | 5 Import('env') |
6 | 6 |
7 env = env.Clone() | 7 env = env.Clone() |
8 | 8 |
9 env.ApplySConscript([ | 9 env.ApplySConscript([ |
10 '$BASE_DIR/using_base.scons', | 10 '$BASE_DIR/using_base.scons', |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 '/MACHINE:X86', | 47 '/MACHINE:X86', |
48 '/FIXED:No', | 48 '/FIXED:No', |
49 | 49 |
50 '/safeseh', | 50 '/safeseh', |
51 '/dynamicbase', | 51 '/dynamicbase', |
52 '/ignore:4199', | 52 '/ignore:4199', |
53 '/nxcompat', | 53 '/nxcompat', |
54 ], | 54 ], |
55 ) | 55 ) |
56 | 56 |
57 input_files = [ | 57 input_files = ChromeFileList([ |
| 58 # TODO(sgk): violate standard indentation so we don't have to |
| 59 # reindent too much when we remove the explicit MSVSFilter() calls |
| 60 # in favor of generating the hierarchy to reflect the file system. |
| 61 MSVSFilter('Common', [ |
| 62 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', |
| 63 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', |
| 64 '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX', |
| 65 '$CHROME_DIR/test/testing_browser_process.h', |
| 66 '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX', |
| 67 '$CHROME_DIR/test/ui/ui_test.h', |
| 68 '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX', |
| 69 ]), |
| 70 MSVSFilter('MemoryUsage', [ |
58 '$CHROME_DIR/test/perf/mem_usage$OBJSUFFIX', | 71 '$CHROME_DIR/test/perf/mem_usage$OBJSUFFIX', |
59 '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX', | 72 '$CHROME_DIR/test/perf/mem_usage.h', |
60 '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX', | 73 ]), |
61 '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX', | 74 MSVSFilter('TestMemory', [ |
62 'memory_test.cc', | 75 'memory_test.cc', |
63 ] | 76 ]), |
| 77 ]) |
| 78 |
| 79 if not env.Bit('windows'): |
| 80 # Windows-specific. |
| 81 input_files.Remove( |
| 82 '$CHROME_DIR/tools/build/win/precompiled_wtl$OBJSUFFIX', |
| 83 '$CHROME_DIR/tools/build/win/precompiled_wtl.h', |
| 84 ) |
64 | 85 |
65 # TODO(port): | 86 # TODO(port): |
66 if env.Bit('windows'): | 87 if env.Bit('windows'): |
67 env.ChromeTestProgram('memory_test', input_files) | 88 env.ChromeTestProgram('memory_test', input_files) |
68 | 89 |
69 env.ChromeMSVSProject('$CHROME_DIR/test/memory_test/memory_test.vcproj', | 90 p = env.ChromeMSVSProject('memory_test.vcproj', |
70 dependencies = [ | 91 dest=('$CHROME_SRC_DIR/chrome/' |
71 '$CHROME_DIR/test/automation/automation.vcproj', | 92 + 'test/memory_test/memory_test.vcproj'), |
72 '$BASE_DIR/build/base.vcproj', | 93 guid='{A5F831FD-9B9C-4FEF-9FBA-554817B734CE}', |
73 '$NET_DIR/build/net.vcproj', | 94 dependencies = [ |
74 '$CHROME_DIR/browser/browser.vcproj', | 95 '$CHROME_DIR/test/automation/automation.vcproj', |
75 '$MODP_B64_DIR/modp_b64.vcproj', | 96 '$BASE_DIR/build/base.vcproj', |
76 '$ZLIB_DIR/zlib.vcproj', | 97 '$NET_DIR/build/net.vcproj', |
77 '$CHROME_DIR/common/common.vcproj', | 98 '$CHROME_DIR/browser/browser.vcproj', |
78 '$BASE_DIR/build/base_gfx.vcproj', | 99 '$MODP_B64_DIR/modp_b64.vcproj', |
79 '$TESTING_DIR/gtest.vcproj', | 100 '$ZLIB_DIR/zlib.vcproj', |
80 '$LIBPNG_DIR/libpng.vcproj', | 101 '$CHROME_DIR/common/common.vcproj', |
81 '$SKIA_DIR/skia.vcproj', | 102 '$BASE_DIR/build/base_gfx.vcproj', |
82 '$GOOGLEURL_DIR/build/googleurl.vcproj', | 103 '$TESTING_DIR/gtest.vcproj', |
83 '$CHROME_DIR/browser/views/browser_views.vcproj', | 104 '$LIBPNG_DIR/libpng.vcproj', |
84 ], | 105 '$SKIA_DIR/skia.vcproj', |
85 guid='{A5F831FD-9B9C-4FEF-9FBA-554817B734CE}') | 106 '$GOOGLEURL_DIR/build/googleurl.vcproj', |
| 107 '$CHROME_DIR/browser/views/browser_views.vcproj', |
| 108 ], |
| 109 # TODO(sgk): when we can intuit the hierarchy |
| 110 # from the built targets. |
| 111 #buildtargets=TODO, |
| 112 files=input_files, |
| 113 local_directory_prefix='./', |
| 114 tools=[ |
| 115 'VCPreBuildEventTool', |
| 116 'VCCustomBuildTool', |
| 117 'VCXMLDataGeneratorTool', |
| 118 'VCWebServiceProxyGeneratorTool', |
| 119 'VCMIDLTool', |
| 120 'VCCLCompilerTool', |
| 121 'VCManagedResourceCompilerTool', |
| 122 'VCResourceCompilerTool', |
| 123 'VCPreLinkEventTool', |
| 124 MSVSTool('VCLinkerTool', |
| 125 AdditionalDependencies='winmm.lib'), |
| 126 'VCALinkTool', |
| 127 'VCManifestTool', |
| 128 'VCXDCMakeTool', |
| 129 'VCBscMakeTool', |
| 130 'VCFxCopTool', |
| 131 'VCAppVerifierTool', |
| 132 'VCWebDeploymentTool', |
| 133 'VCPostBuildEventTool', |
| 134 ], |
| 135 ConfigurationType='1') |
| 136 |
| 137 |
| 138 p.AddConfig('Debug|Win32', |
| 139 InheritedPropertySheets=[ |
| 140 '$(SolutionDir)../build/common.vsprops', |
| 141 '$(SolutionDir)../build/debug.vsprops', |
| 142 '../../tools/build/win/precompiled_wtl.vsprops', |
| 143 '../../tools/build/win/unit_test.vsprops', |
| 144 '../../tools/build/win/ui_test.vsprops', |
| 145 '../../tools/build/win/test_memory_usage.vsprops', |
| 146 '$(SolutionDir)../skia/using_skia.vsprops', |
| 147 '$(SolutionDir)../testing/using_gtest.vsprops', |
| 148 ]) |
| 149 |
| 150 p.AddConfig('Release|Win32', |
| 151 InheritedPropertySheets=[ |
| 152 '$(SolutionDir)../build/common.vsprops', |
| 153 '$(SolutionDir)../build/release.vsprops', |
| 154 '../../tools/build/win/unit_test.vsprops', |
| 155 '../../tools/build/win/ui_test.vsprops', |
| 156 '../../tools/build/win/test_memory_usage.vsprops', |
| 157 '$(SolutionDir)../skia/using_skia.vsprops', |
| 158 '$(SolutionDir)../testing/using_gtest.vsprops', |
| 159 ]) |
| 160 |
| 161 p.AddFileConfig('../../tools/build/win/precompiled_wtl.cc', |
| 162 'Debug|Win32', |
| 163 tools=[ |
| 164 MSVSTool('VCCLCompilerTool', |
| 165 UsePrecompiledHeader='1'), |
| 166 ]) |
OLD | NEW |