summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-21 19:25:57 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-21 19:25:57 +0000
commit89ea239038e16ab982c0066fec2f67a56000c4ce (patch)
tree7b621fbbec018ebb8837e3ed729e9c59383f2b93 /sandbox
parent2d84617f10c745c25e67544467c6d7f7d6367132 (diff)
downloadchromium_src-89ea239038e16ab982c0066fec2f67a56000c4ce.zip
chromium_src-89ea239038e16ab982c0066fec2f67a56000c4ce.tar.gz
chromium_src-89ea239038e16ab982c0066fec2f67a56000c4ce.tar.bz2
Capture a wow_helper.scons config (close to building, but not
worth finishing) with comments about why we don't actually build it (if only to help others avoid confusion in the future). Review URL: http://codereview.chromium.org/11571 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5834 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/sandbox.scons6
-rw-r--r--sandbox/wow_helper/wow_helper.scons89
2 files changed, 95 insertions, 0 deletions
diff --git a/sandbox/sandbox.scons b/sandbox/sandbox.scons
index 039a883..22332e3 100644
--- a/sandbox/sandbox.scons
+++ b/sandbox/sandbox.scons
@@ -20,6 +20,12 @@ sconscript_files = [
'tests/integration_tests/sbox_integration_tests.scons',
'tests/unit_tests/sbox_unittests.scons',
'tests/validation_tests/sbox_validation_tests.scons',
+
+ # NOTE: We don't build wow_helper. It has generated binaries
+ # checked in directly. The wow_helper.scons config should be
+ # close (it replicates most options) but may need work to build
+ # successfully (plus the 64-bit version of Visual Studio tools).
+ #'wow_helper/wow_helper.scons',
]
SConscript(sconscript_files, exports=['env'])
diff --git a/sandbox/wow_helper/wow_helper.scons b/sandbox/wow_helper/wow_helper.scons
new file mode 100644
index 0000000..798e472
--- /dev/null
+++ b/sandbox/wow_helper/wow_helper.scons
@@ -0,0 +1,89 @@
+# 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()
+
+if env['PLATFORM'] == 'win32':
+
+ # NOTE: env.Replace() instead of inhering the normal *.scons settings!
+ env.Replace(
+ CPPDEFINES = [
+ ('_WIN32_WINNT', '0x0501'),
+ ('WINVER', '0x0501'),
+ 'WIN32',
+ '_UNICODE',
+ 'UNICODE',
+ ],
+ CPPPATH = [
+ '$CHROME_SRC_DIR',
+ '$PLATFORMSDK_VISTA/files/Include',
+ '$PLATFORMSDK_VISTA/files/VC/INCLUDE',
+ ],
+ CCFLAGS = [
+ '/nologo',
+
+ '/EHsc',
+
+ '/GS-', # VCCLCompilerTool.BufferSecurityCheck="false"
+ '/GR-', # VCCLCompilerTool.RuntimeTypeInfo="false"
+ '/W3', # treat warnings as errors
+ '/Wp64', # VCCLCompilerTool.Detect64BitPortabilityProblems="false"
+
+ # In the old Visual Studio build, we used /Zi (edit and continue),
+ # VCCLComilerTool.DebugInformationFormat="3".
+ #
+ # /Zi ends up with multiple compiler invocations trying to updat
+ # the same vc80.pdb file at the same time, with race conditions
+ # and permission problems. We're using /Z7 because it makes things
+ # work even in parallel builds, without special config to avoid
+ # multiple simultaneous updates the vc80.pdb file. All the
+ # debugging information and capability still end up in the
+ # executables.
+ '/Z7', # VCCLCompilerTool.DebugInformationFormat="1"
+
+ ],
+ LINKFLAGS = [
+ '/nologo',
+ '/INCREMENTAL:NO',
+ '/DEBUG',
+ '/MACHINE:X64',
+ '/SUBSYSTEM:WINDOWS',
+ ],
+ )
+ if env['TARGET_DEBUG']:
+ env.Append(
+ CPPDEFINES = [
+ '_DEBUG',
+ ],
+ CCFLAGS = [
+ '/Od',
+ '/MTd',
+ ],
+ )
+ else:
+ env.Append(
+ CPPDEFINES = [
+ 'NDEBUG',
+ ],
+ CCFLAGS = [
+ '/O2',
+ '/GL',
+ '/FD',
+ '/MT', # VCCLLinkerTool.RuntimeLibrary="0"
+ ],
+ LINKFLAGS = [
+ '/OPT:REF', # VCCLLinkerTool.OptimizeReferences="2"
+ '/OPT:ICF', # VCCLLinkerTool.EnableCOMDATFolding="2"
+ ],
+ )
+
+input_files = [
+ 'service64_resolver.cc',
+ 'target_code.cc',
+ 'wow_helper.cc',
+]
+
+env.ChromeProgram('wow_helper', input_files)