summaryrefslogtreecommitdiffstats
path: root/net/stress_cache.scons
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-09 20:35:47 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-09 20:35:47 +0000
commit4f2321dbb2e034601fed172d222a90009e4674a0 (patch)
tree42e7055c9e1594806bc1a0324cf7994de1483cd5 /net/stress_cache.scons
parenta1a130f7da9191abecf15b3c27e2aa7ee1faacb3 (diff)
downloadchromium_src-4f2321dbb2e034601fed172d222a90009e4674a0.zip
chromium_src-4f2321dbb2e034601fed172d222a90009e4674a0.tar.gz
chromium_src-4f2321dbb2e034601fed172d222a90009e4674a0.tar.bz2
Generation of net .vcproj and .sln files.
Specific changes: * Add to MSVSProject() calls: GUID, input_files list, tools list (that are common to the individual configurations). * Add *.h files and MSVSFilter() hierarchies to input_files lists. * Switch to using the .Remove() method for instead of by-hand Python to remove things from input_files lists. * Use of precompiled header files still requires separate by-hand Configuration specifications. * Remove .dat files from the input file lists when compiling. * Extensive _Node_MSVS.py changes that set us up for deducing this information from parallel Debug and Release builds instead of configuring things by hand, basically by delaying evaluation of most of the strings, then introspecting on the command lines that will be used to generate the targets and translating compiler and linker options into Visual Studio settings. The result is (again) byte-for-byte identical .vcproj files, modulo removal of a ".\" current-directory prefix for a few RelativePath specifications. Review URL: http://codereview.chromium.org/17436 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7826 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/stress_cache.scons')
-rw-r--r--net/stress_cache.scons65
1 files changed, 55 insertions, 10 deletions
diff --git a/net/stress_cache.scons b/net/stress_cache.scons
index 008683d..9f926e4 100644
--- a/net/stress_cache.scons
+++ b/net/stress_cache.scons
@@ -36,19 +36,64 @@ if env.Bit('windows'):
],
)
-input_files = [
+input_files = ChromeFileList([
'disk_cache/disk_cache_test_util$OBJSUFFIX',
'disk_cache/stress_cache.cc',
-]
+])
if not env.Bit('mac'):
env.ChromeTestProgram('stress_cache', input_files)
-env.ChromeMSVSProject('$NET_DIR/build/stress_cache.vcproj',
- dependencies = [
- '$BASE_DIR/build/base.vcproj',
- '$NET_DIR/build/net.vcproj',
- '$ICU38_DIR/build/icu.vcproj',
- '$TESTING_DIR/gtest.vcproj',
- ],
- guid='{B491C3A1-DE5F-4843-A1BB-AB8C4337187B}')
+p = env.ChromeMSVSProject('$NET_DIR/build/stress_cache.vcproj',
+ guid='{B491C3A1-DE5F-4843-A1BB-AB8C4337187B}',
+ dependencies = [
+ '$BASE_DIR/build/base.vcproj',
+ '$NET_DIR/build/net.vcproj',
+ '$ICU38_DIR/build/icu.vcproj',
+ '$TESTING_DIR/gtest.vcproj',
+ ],
+ # TODO: restore when we can derive all info,
+ # on all platforms, from the windows build targets.
+ #buildtargets=TODO,
+ files=input_files,
+ tools=[
+ 'VCPreBuildEventTool',
+ 'VCCustomBuildTool',
+ 'VCXMLDataGeneratorTool',
+ 'VCWebServiceProxyGeneratorTool',
+ 'VCMIDLTool',
+ 'VCCLCompilerTool',
+ 'VCManagedResourceCompilerTool',
+ 'VCResourceCompilerTool',
+ 'VCPreLinkEventTool',
+ MSVSTool('VCLinkerTool',
+ SubSystem='1'),
+ 'VCALinkTool',
+ 'VCManifestTool',
+ 'VCXDCMakeTool',
+ 'VCBscMakeTool',
+ 'VCFxCopTool',
+ 'VCAppVerifierTool',
+ 'VCWebDeploymentTool',
+ 'VCPostBuildEventTool',
+ ],
+ ConfigurationType='1')
+
+
+p.AddConfig('Debug|Win32',
+ InheritedPropertySheets=[
+ '$(SolutionDir)../build/common.vsprops',
+ '$(SolutionDir)../build/debug.vsprops',
+ ])
+
+p.AddConfig('Release|Win32',
+ InheritedPropertySheets=[
+ '$(SolutionDir)../build/common.vsprops',
+ '$(SolutionDir)../build/release.vsprops',
+ ])
+
+env.AlwaysBuild(p)
+
+i = env.Command('$CHROME_SRC_DIR/net/build/stress_cache.vcproj', p,
+ Copy('$TARGET', '$SOURCE'))
+Alias('msvs', i)