| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 __doc__ = """ | |
| 6 Configuration the disk_cache{,.exe} executable. | |
| 7 """ | |
| 8 | |
| 9 Import('env') | |
| 10 | |
| 11 env = env.Clone() | |
| 12 | |
| 13 env.ApplySConscript([ | |
| 14 '$BASE_DIR/using_base.scons', | |
| 15 '$GTEST_DIR/../using_gtest.scons', | |
| 16 '$ICU38_DIR/using_icu38.scons', | |
| 17 '$NET_DIR/using_net.scons', | |
| 18 ]) | |
| 19 | |
| 20 if env.Bit('windows'): | |
| 21 env.Prepend( | |
| 22 CCFLAGS = [ | |
| 23 '/WX', | |
| 24 ], | |
| 25 ) | |
| 26 | |
| 27 # TODO: restore to alphabetical order; below matches original .vcproj. | |
| 28 input_files = ChromeFileList([ | |
| 29 'tools/crash_cache/crash_cache.cc', | |
| 30 'disk_cache/disk_cache_test_util$OBJSUFFIX', | |
| 31 ]) | |
| 32 | |
| 33 | |
| 34 if not env.Bit('mac'): | |
| 35 # TODO(port): port to mac? | |
| 36 x = env.ChromeTestProgram('crash_cache', input_files) | |
| 37 | |
| 38 p = env.ChromeMSVSProject('$NET_DIR/build/crash_cache.vcproj', | |
| 39 dest='$CHROME_SRC_DIR/net/build/crash_cache.vcproj', | |
| 40 guid='{B0EE0599-2913-46A0-A847-A3EC813658D3}', | |
| 41 keyword='Win32Proj', | |
| 42 dependencies = [ | |
| 43 '$BASE_DIR/build/base.vcproj', | |
| 44 '$NET_DIR/build/net.vcproj', | |
| 45 '$ICU38_DIR/build/icu.vcproj', | |
| 46 ], | |
| 47 # TODO: restore when we can derive all info, | |
| 48 # on all platforms, from the windows build targets. | |
| 49 #buildtargets=TODO, | |
| 50 files=input_files, | |
| 51 tools=[ | |
| 52 'VCPreBuildEventTool', | |
| 53 'VCCustomBuildTool', | |
| 54 'VCXMLDataGeneratorTool', | |
| 55 'VCWebServiceProxyGeneratorTool', | |
| 56 'VCMIDLTool', | |
| 57 'VCCLCompilerTool', | |
| 58 'VCManagedResourceCompilerTool', | |
| 59 'VCResourceCompilerTool', | |
| 60 'VCPreLinkEventTool', | |
| 61 MSVSTool('VCLinkerTool', | |
| 62 SubSystem='1'), | |
| 63 'VCALinkTool', | |
| 64 'VCManifestTool', | |
| 65 'VCXDCMakeTool', | |
| 66 'VCBscMakeTool', | |
| 67 'VCFxCopTool', | |
| 68 'VCAppVerifierTool', | |
| 69 'VCWebDeploymentTool', | |
| 70 'VCPostBuildEventTool', | |
| 71 ], | |
| 72 ConfigurationType='1') | |
| 73 | |
| 74 | |
| 75 p.AddConfig('Debug|Win32', | |
| 76 InheritedPropertySheets=[ | |
| 77 '$(SolutionDir)../build/common.vsprops', | |
| 78 '$(SolutionDir)../build/debug.vsprops', | |
| 79 ]) | |
| 80 | |
| 81 p.AddConfig('Release|Win32', | |
| 82 InheritedPropertySheets=[ | |
| 83 '$(SolutionDir)../build/common.vsprops', | |
| 84 '$(SolutionDir)../build/release.vsprops', | |
| 85 ]) | |
| OLD | NEW |