diff options
Diffstat (limited to 'build/external_code.scons')
-rw-r--r-- | build/external_code.scons | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/build/external_code.scons b/build/external_code.scons new file mode 100644 index 0000000..45c039f --- /dev/null +++ b/build/external_code.scons @@ -0,0 +1,28 @@ +# 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. + +__doc__ = """ +External code settings for Chromium builds. +""" + +Import("env") + +if env['PLATFORM'] == 'win32': + env.Append( + CPPDEFINES = [ + '_CRT_SECURE_NO_DEPRECATE', + '_CRT_NONSTDC_NO_WARNINGS', + '_CRT_NONSTDC_NO_DEPRECATE', + '_SCL_SECURE_NO_DEPRECATE', + ], + CCFLAGS = [ + '/wd4800', + ], + ) + env.FilterOut( + CCFLAGS = [ + '/WX', # VCCLCompilerTool.WarnAsError="false" + '/Wp64', # VCCLCompilerTool.Detect64BitPortabilityProblems="false" + ], + ) |