blob: 6d8b12dedf4e7d9d2824e5426a27a81932643e94 [file] [log] [blame]
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Import('env')
env = env.Clone()
env.ApplySConscript([
'$BASE_DIR/using_base.scons',
'$GTEST_DIR/../using_gtest.scons',
'$ICU38_DIR/using_icu38.scons',
'$BASE_DIR/gfx/using_base_gfx.scons',
'$CHROME_DIR/third_party/wtl/using_wtl.scons',
'$CHROME_SRC_DIR/build/using_googleurl.scons',
'$LIBPNG_DIR/using_libpng.scons',
'$LIBXML_DIR/using_libxml.scons',
'$MODP_B64_DIR/using_modp_b64.scons',
'$NET_DIR/using_net.scons',
'$SKIA_DIR/using_skia.scons',
'$ZLIB_DIR/using_zlib.scons',
])
env.Prepend(
CPPPATH = [
'$CHROME_SRC_DIR',
],
LIBS = [
'util',
],
)
if env.Bit('windows'):
env.Prepend(
LINKFLAGS = [
'/INCREMENTAL',
'/DEBUG',
'/DELAYLOAD:"dwmapi.dll"',
'/DELAYLOAD:"uxtheme.dll"',
'/MACHINE:X86',
'/FIXED:No',
'/safeseh',
'/dynamicbase',
'/ignore:4199',
'/nxcompat',
],
LIBS = [
'comsupp',
'oleacc',
'rpcrt4',
'shlwapi',
],
)
input_files = ChromeFileList([
'chrome_mini_installer.cc',
'chrome_mini_installer.h',
'mini_installer_test_constants.cc',
'mini_installer_test_constants.h',
'$CHROME_DIR/installer/util/run_all_unittests$OBJSUFFIX',
'$CHROME_DIR/installer/setup/setup_constants$OBJSUFFIX',
'test.cc',
])
# TODO(port):
if env.Bit('windows'):
env.ChromeTestProgram('mini_installer_test', input_files)
p = env.ChromeMSVSProject('mini_installer_test.vcproj',
dest=('$CHROME_SRC_DIR/chrome/test/'
+ 'mini_installer_test/'
+ 'mini_installer_test.vcproj'),
guid='{4B6E199A-034A-49BD-AB93-458DD37E45B1}',
keyword='Win32Proj',
dependencies = [
'$BASE_DIR/build/base.vcproj',
'$ICU38_DIR/build/icu.vcproj',
'$TESTING_DIR/gtest.vcproj',
'$CHROME_DIR/installer/util/util.vcproj',
],
# TODO(sgk): when we can intuit the hierarchy
# from the built targets.
#buildtargets=TODO,
files=input_files,
local_directory_prefix='./',
ConfigurationType='1')
p.AddConfig('Debug|Win32',
InheritedPropertySheets=[
'$(SolutionDir)../build/common.vsprops',
'$(SolutionDir)../build/debug.vsprops',
'$(SolutionDir)/tools/build/win/unit_test.vsprops',
'$(SolutionDir)../testing/using_gtest.vsprops',
],
tools=[
'VCPreBuildEventTool',
'VCCustomBuildTool',
'VCXMLDataGeneratorTool',
'VCWebServiceProxyGeneratorTool',
'VCMIDLTool',
'VCCLCompilerTool',
'VCManagedResourceCompilerTool',
'VCResourceCompilerTool',
'VCPreLinkEventTool',
MSVSTool('VCLinkerTool',
IgnoreDefaultLibraryNames=''),
'VCALinkTool',
MSVSTool('VCManifestTool',
AdditionalManifestFiles=('$(SolutionDir)installer/'
+ 'mini_installer/'
+ 'mini_installer.exe.manifest')),
'VCXDCMakeTool',
'VCBscMakeTool',
'VCFxCopTool',
'VCAppVerifierTool',
'VCWebDeploymentTool',
'VCPostBuildEventTool',
])
p.AddConfig('Release|Win32',
InheritedPropertySheets=[
'$(SolutionDir)../build/common.vsprops',
'$(SolutionDir)../build/release.vsprops',
'$(SolutionDir)/tools/build/win/unit_test.vsprops',
'$(SolutionDir)../testing/using_gtest.vsprops',
],
tools=[
'VCPreBuildEventTool',
'VCCustomBuildTool',
'VCXMLDataGeneratorTool',
'VCWebServiceProxyGeneratorTool',
'VCMIDLTool',
'VCCLCompilerTool',
'VCManagedResourceCompilerTool',
'VCResourceCompilerTool',
'VCPreLinkEventTool',
'VCLinkerTool',
'VCALinkTool',
MSVSTool('VCManifestTool',
AdditionalManifestFiles=('$(SolutionDir)installer/'
+ 'mini_installer/'
+ 'mini_installer.exe.manifest')),
'VCXDCMakeTool',
'VCBscMakeTool',
'VCFxCopTool',
'VCAppVerifierTool',
'VCWebDeploymentTool',
'VCPostBuildEventTool',
])