summaryrefslogtreecommitdiffstats
path: root/chrome/installer/setup/setup.scons
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 23:00:46 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 23:00:46 +0000
commit94f686369c158fe46a327849ccae9f31c423adef (patch)
tree11a749e1cb4078790d6429e25a346a018cd03e1d /chrome/installer/setup/setup.scons
parentb496c9e6770e4951eec84b17d5c84454815bf796 (diff)
downloadchromium_src-94f686369c158fe46a327849ccae9f31c423adef.zip
chromium_src-94f686369c158fe46a327849ccae9f31c423adef.tar.gz
chromium_src-94f686369c158fe46a327849ccae9f31c423adef.tar.bz2
More *.scons renaming:
* Rename SConscript to *.scons in the following directories: third_party\{bspatch,bsdiff,lzma_dsk} chrome\installer\{setup,mini_installer,util} * Split mini_installer and installer_unittests into separate *.scons files. * Add using_bspatch.scons and using_lzma_sdk.scons "properties" files, modifying other *.scons files to use them as appropriate. Review URL: http://codereview.chromium.org/10952 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5515 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/setup/setup.scons')
-rw-r--r--chrome/installer/setup/setup.scons85
1 files changed, 85 insertions, 0 deletions
diff --git a/chrome/installer/setup/setup.scons b/chrome/installer/setup/setup.scons
new file mode 100644
index 0000000..5ea69e5
--- /dev/null
+++ b/chrome/installer/setup/setup.scons
@@ -0,0 +1,85 @@
+# 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_res')
+
+env = env.Clone()
+
+env.ApplySConscript([
+ '$BASE_DIR/using_base.scons',
+ '$BSPATCH_DIR/using_bspatch.scons',
+ '$ICU38_DIR/using_icu38.scons',
+ '$LZMA_SDK_DIR/using_lzma_sdk.scons',
+])
+
+if env['PLATFORM'] == 'win32':
+ env_res = env_res.Clone()
+
+ env_res.Append(
+ CPPPATH = [
+ "$TARGET_ROOT",
+ ".",
+ "$CHROME_SRC_DIR",
+ ],
+ RCFLAGS = [
+ ["/l", "0x409"],
+ ],
+ )
+
+ resources = env_res.RES('setup.rc')
+
+
+env.Prepend(
+ CPPPATH = [
+ '../util',
+ '$TARGET_ROOT',
+ '.',
+ '$CHROME_SRC_DIR',
+ ],
+ LIBS = [
+ 'common',
+ 'util',
+ ],
+)
+
+if env['PLATFORM'] == 'win32':
+ env.Prepend(
+ LINKFLAGS = [
+ '/INCREMENTAL',
+ '/DEBUG',
+
+ '/DELAYLOAD:"dwmapi.dll"',
+ '/DELAYLOAD:"uxtheme.dll"',
+
+ '/OPT:NOWIN98',
+ '/SUBSYSTEM:WINDOWS',
+ '/MACHINE:X86',
+ '/FIXED:No',
+
+ '/safeseh',
+ '/dynamicbase',
+ '/ignore:4199',
+ '/nxcompat',
+
+ '/PDB:${TARGETS[1]}',
+ ],
+ LIBS = [
+ 'msi',
+ ],
+ )
+
+
+input_files = [
+ 'install.cc',
+ 'main.cc',
+ 'setup.cc',
+ 'setup_constants.cc',
+ 'uninstall.cc',
+]
+
+env.ChromeProgram('setup', resources + input_files)
+
+env.ChromeVersionRC('setup_exe_version.rc',
+ 'setup_exe_version.rc.version',
+ PWD = env.Dir('.'))