| OLD | NEW |
| 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 __doc__ = """ | 5 __doc__ = """ |
| 6 Essential settings for Chromium builds. | 6 Essential settings for Chromium builds. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 Import("env") | 9 Import("env") |
| 10 | 10 |
| 11 env.Append( | 11 env.Append( |
| 12 CPPPATH = [ | 12 CPPPATH = [ |
| 13 '$CHROME_SRC_DIR', | 13 '$CHROME_SRC_DIR', |
| 14 ], | 14 ], |
| 15 CCFLAGS = [ | 15 CCFLAGS = [ |
| 16 '$CHROMIUM_CC_OPT_FLAGS', | 16 '$CHROMIUM_CC_OPT_FLAGS', |
| 17 ], | 17 ], |
| 18 LINKFLAGS = [ | 18 LINKFLAGS = [ |
| 19 '$CHROMIUM_LINK_OPT_FLAGS', | 19 '$CHROMIUM_LINK_OPT_FLAGS', |
| 20 '$CHROMIUM_INCREMENTAL_FLAGS', | 20 '$CHROMIUM_INCREMENTAL_FLAGS', |
| 21 ], | 21 ], |
| 22 ) | 22 ) |
| 23 | 23 |
| 24 if env['PLATFORM'] == 'win32': | 24 if env.Bit('windows'): |
| 25 incremental = env.get('INCREMENTAL') | 25 incremental = env.get('INCREMENTAL') |
| 26 if incremental is not None: | 26 if incremental is not None: |
| 27 if incremental: | 27 if incremental: |
| 28 env['CHROMIUM_INCREMENTAL_FLAGS'] = '/INCREMENTAL' | 28 env['CHROMIUM_INCREMENTAL_FLAGS'] = '/INCREMENTAL' |
| 29 else: | 29 else: |
| 30 env['CHROMIUM_INCREMENTAL_FLAGS'] = '/INCREMENTAL:NO' | 30 env['CHROMIUM_INCREMENTAL_FLAGS'] = '/INCREMENTAL:NO' |
| 31 env.Append( | 31 env.Append( |
| 32 ARFLAGS = [ | 32 ARFLAGS = [ |
| 33 '/ignore:4221', | 33 '/ignore:4221', |
| 34 ], | 34 ], |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 '/ignore:4221', | 103 '/ignore:4221', |
| 104 '/nxcompat', | 104 '/nxcompat', |
| 105 ], | 105 ], |
| 106 ) | 106 ) |
| 107 env.FilterOut( | 107 env.FilterOut( |
| 108 CCFLAGS = [ | 108 CCFLAGS = [ |
| 109 '/GM', # VCCLCompilerTool.MinimalRebuild="false" | 109 '/GM', # VCCLCompilerTool.MinimalRebuild="false" |
| 110 '/EH', # VCCLCompilerTool.ExceptionHandling="0" | 110 '/EH', # VCCLCompilerTool.ExceptionHandling="0" |
| 111 ], | 111 ], |
| 112 ) | 112 ) |
| 113 elif env['PLATFORM'] == 'posix': | 113 elif env.Bit('linux'): |
| 114 pass | 114 pass |
| 115 elif env['PLATFORM'] == 'mac': | 115 elif env.Bit('mac'): |
| 116 pass | 116 pass |
| OLD | NEW |