summaryrefslogtreecommitdiffstats
path: root/sandbox/tests/common/sandbox_common.scons
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/tests/common/sandbox_common.scons')
-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')