summaryrefslogtreecommitdiffstats
path: root/sandbox/tests/common
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-27 16:11:15 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-27 16:11:15 +0000
commit93723b5339a6f238745c7445665276aa1e1f8bda (patch)
treed3b78e2041cab3cfe36582409d9a301410b20565 /sandbox/tests/common
parent6d68331166aa8e283c254cd6d83057541b74e9fc (diff)
downloadchromium_src-93723b5339a6f238745c7445665276aa1e1f8bda.zip
chromium_src-93723b5339a6f238745c7445665276aa1e1f8bda.tar.gz
chromium_src-93723b5339a6f238745c7445665276aa1e1f8bda.tar.bz2
Fix SCons build of the sandbox module, splitting out the individual
targets into the new *.scons file naming scheme. Review URL: http://codereview.chromium.org/8616 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4000 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/tests/common')
-rw-r--r--sandbox/tests/common/sandbox_common.scons29
1 files changed, 29 insertions, 0 deletions
diff --git a/sandbox/tests/common/sandbox_common.scons b/sandbox/tests/common/sandbox_common.scons
new file mode 100644
index 0000000..afd36a0
--- /dev/null
+++ b/sandbox/tests/common/sandbox_common.scons
@@ -0,0 +1,29 @@
+# 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.Prepend(
+ CPPPATH = [
+ '$CHROME_SRC_DIR',
+ ],
+ CPPDEFINES = [
+ 'CHROMIUM_BUILD',
+ ],
+)
+
+if env['PLATFORM'] == 'win32':
+ env.Append(
+ CPPDEFINES = [
+ '_SECURE_ATL',
+ '_WINDOWS',
+ ],
+ CCFLAGS = [
+ '/WX', # treat warnings as errors
+ ],
+ )
+
+env.StaticObject('controller.cc')