From 5c6f1c6b32f9da207706cf2d94560196e9d20303 Mon Sep 17 00:00:00 2001 From: "sgk@google.com" Date: Thu, 20 Nov 2008 01:12:38 +0000 Subject: Finish release (opt) builds on Windows, including the parallel build\*.scons structure (mirroring build\*.vsprops files): * Use env.ApplySConscript() instead of env.SConscript with a hand-crafted dictionary defining 'env'. * Move various CPPPATH, CCFLAGS, CPPDEFINES, LIBS and LIBPATH definitions from build/SConscript.main and target-specific *.scons files into the build\*.scons files that mirror the existing build\*.vsprops hierarchy. * Use the new build\{debug,release}.scons files to update the windows_dbg and windows_opt construction environments. * Mirror current support for CHROME_BUILD_TYPE and CHROMIUM_BUILD external environment variables. * Remove hard-coded /TP options. * Massage $CXXFLAGS to remove $CCFLAGS, avoiding duplication of options on command lines. Handle the ripple effect in $PCHCOM by adding $CCFLAGS back to that command line. * Delete hammer's default settings of {CC,LINK}FLAGS_{DEBUG,OPTIMIZED} so they don't pollute our construction environments. * Update chrome config to link against v8 for opt, v8_g for dbg. * Get rid of fragile by-hand order of using_net.scons before other using_*.scons files. We're now using --start-group and --end-group on Linux to deal with dependency cycles in libraries. Review URL: http://codereview.chromium.org/11478 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5741 0039d316-1c4b-4281-b951-d872f2087c98 --- build/external_code.scons | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 build/external_code.scons (limited to 'build/external_code.scons') 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" + ], + ) -- cgit v1.1