| 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 Import('env') | |
| 6 | |
| 7 | |
| 8 env = env.Clone() | |
| 9 | |
| 10 env.ApplySConscript([ | |
| 11 '$BASE_DIR/using_base.scons', | |
| 12 '$GTEST_DIR/../using_gtest.scons', | |
| 13 '$ICU38_DIR/using_icu38.scons', | |
| 14 | |
| 15 '$BASE_DIR/gfx/using_base_gfx.scons', | |
| 16 '$CHROME_DIR/third_party/wtl/using_wtl.scons', | |
| 17 '$CHROME_SRC_DIR/build/using_googleurl.scons', | |
| 18 '$LIBPNG_DIR/using_libpng.scons', | |
| 19 '$LIBXML_DIR/using_libxml.scons', | |
| 20 '$MODP_B64_DIR/using_modp_b64.scons', | |
| 21 '$NET_DIR/using_net.scons', | |
| 22 '$SKIA_DIR/using_skia.scons', | |
| 23 '$ZLIB_DIR/using_zlib.scons', | |
| 24 ]) | |
| 25 | |
| 26 env.Prepend( | |
| 27 CPPPATH = [ | |
| 28 '$CHROME_SRC_DIR', | |
| 29 ], | |
| 30 LIBS = [ | |
| 31 'util', | |
| 32 ], | |
| 33 ) | |
| 34 | |
| 35 if env.Bit('windows'): | |
| 36 env.Prepend( | |
| 37 LINKFLAGS = [ | |
| 38 '/INCREMENTAL', | |
| 39 '/DEBUG', | |
| 40 | |
| 41 '/DELAYLOAD:"dwmapi.dll"', | |
| 42 '/DELAYLOAD:"uxtheme.dll"', | |
| 43 | |
| 44 '/MACHINE:X86', | |
| 45 '/FIXED:No', | |
| 46 | |
| 47 '/safeseh', | |
| 48 '/dynamicbase', | |
| 49 '/ignore:4199', | |
| 50 '/nxcompat', | |
| 51 ], | |
| 52 LIBS = [ | |
| 53 'comsupp', | |
| 54 'oleacc', | |
| 55 'rpcrt4', | |
| 56 'shlwapi', | |
| 57 ], | |
| 58 ) | |
| 59 | |
| 60 input_files = ChromeFileList([ | |
| 61 'chrome_mini_installer.cc', | |
| 62 'chrome_mini_installer.h', | |
| 63 'mini_installer_test_constants.cc', | |
| 64 'mini_installer_test_constants.h', | |
| 65 '$CHROME_DIR/installer/util/run_all_unittests$OBJSUFFIX', | |
| 66 '$CHROME_DIR/installer/setup/setup_constants$OBJSUFFIX', | |
| 67 'test.cc', | |
| 68 ]) | |
| 69 | |
| 70 # TODO(port): | |
| 71 if env.Bit('windows'): | |
| 72 env.ChromeTestProgram('mini_installer_test', input_files) | |
| 73 | |
| 74 p = env.ChromeMSVSProject('mini_installer_test.vcproj', | |
| 75 dest=('$CHROME_SRC_DIR/chrome/test/' | |
| 76 + 'mini_installer_test/' | |
| 77 + 'mini_installer_test.vcproj'), | |
| 78 guid='{4B6E199A-034A-49BD-AB93-458DD37E45B1}', | |
| 79 keyword='Win32Proj', | |
| 80 dependencies = [ | |
| 81 '$BASE_DIR/build/base.vcproj', | |
| 82 '$ICU38_DIR/build/icu.vcproj', | |
| 83 '$TESTING_DIR/gtest.vcproj', | |
| 84 '$CHROME_DIR/installer/util/util.vcproj', | |
| 85 ], | |
| 86 # TODO(sgk): when we can intuit the hierarchy | |
| 87 # from the built targets. | |
| 88 #buildtargets=TODO, | |
| 89 files=input_files, | |
| 90 local_directory_prefix='./', | |
| 91 ConfigurationType='1') | |
| 92 | |
| 93 | |
| 94 p.AddConfig('Debug|Win32', | |
| 95 InheritedPropertySheets=[ | |
| 96 '$(SolutionDir)../build/common.vsprops', | |
| 97 '$(SolutionDir)../build/debug.vsprops', | |
| 98 '$(SolutionDir)/tools/build/win/unit_test.vsprops', | |
| 99 '$(SolutionDir)../testing/using_gtest.vsprops', | |
| 100 ], | |
| 101 tools=[ | |
| 102 'VCPreBuildEventTool', | |
| 103 'VCCustomBuildTool', | |
| 104 'VCXMLDataGeneratorTool', | |
| 105 'VCWebServiceProxyGeneratorTool', | |
| 106 'VCMIDLTool', | |
| 107 'VCCLCompilerTool', | |
| 108 'VCManagedResourceCompilerTool', | |
| 109 'VCResourceCompilerTool', | |
| 110 'VCPreLinkEventTool', | |
| 111 MSVSTool('VCLinkerTool', | |
| 112 IgnoreDefaultLibraryNames=''), | |
| 113 'VCALinkTool', | |
| 114 MSVSTool('VCManifestTool', | |
| 115 AdditionalManifestFiles=('$(SolutionDir)installer/' | |
| 116 + 'mini_installer/' | |
| 117 + 'mini_installer.exe.manifest')), | |
| 118 'VCXDCMakeTool', | |
| 119 'VCBscMakeTool', | |
| 120 'VCFxCopTool', | |
| 121 'VCAppVerifierTool', | |
| 122 'VCWebDeploymentTool', | |
| 123 'VCPostBuildEventTool', | |
| 124 ]) | |
| 125 | |
| 126 p.AddConfig('Release|Win32', | |
| 127 InheritedPropertySheets=[ | |
| 128 '$(SolutionDir)../build/common.vsprops', | |
| 129 '$(SolutionDir)../build/release.vsprops', | |
| 130 '$(SolutionDir)/tools/build/win/unit_test.vsprops', | |
| 131 '$(SolutionDir)../testing/using_gtest.vsprops', | |
| 132 ], | |
| 133 tools=[ | |
| 134 'VCPreBuildEventTool', | |
| 135 'VCCustomBuildTool', | |
| 136 'VCXMLDataGeneratorTool', | |
| 137 'VCWebServiceProxyGeneratorTool', | |
| 138 'VCMIDLTool', | |
| 139 'VCCLCompilerTool', | |
| 140 'VCManagedResourceCompilerTool', | |
| 141 'VCResourceCompilerTool', | |
| 142 'VCPreLinkEventTool', | |
| 143 'VCLinkerTool', | |
| 144 'VCALinkTool', | |
| 145 MSVSTool('VCManifestTool', | |
| 146 AdditionalManifestFiles=('$(SolutionDir)installer/' | |
| 147 + 'mini_installer/' | |
| 148 + 'mini_installer.exe.manifest')), | |
| 149 'VCXDCMakeTool', | |
| 150 'VCBscMakeTool', | |
| 151 'VCFxCopTool', | |
| 152 'VCAppVerifierTool', | |
| 153 'VCWebDeploymentTool', | |
| 154 'VCPostBuildEventTool', | |
| 155 ]) | |
| OLD | NEW |