| 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 Import('env') | 5 Import('env') |
| 6 | 6 |
| 7 env = env.Clone() | 7 env = env.Clone() |
| 8 | 8 |
| 9 env.ApplySConscript([ | 9 env.ApplySConscript([ |
| 10 '$GTEST_DIR/../using_gtest.scons', | 10 '$GTEST_DIR/../using_gtest.scons', |
| 11 ]) | 11 ]) |
| 12 | 12 |
| 13 if env['PLATFORM'] == 'win32': | 13 if env.Bit('windows'): |
| 14 env.Append( | 14 env.Append( |
| 15 CCFLAGS = [ | 15 CCFLAGS = [ |
| 16 '/WX', # treat warnings as errors | 16 '/WX', # treat warnings as errors |
| 17 ], | 17 ], |
| 18 ) | 18 ) |
| 19 | 19 |
| 20 input_files = [ | 20 input_files = [ |
| 21 'Wow64.cc', | 21 'Wow64.cc', |
| 22 'acl.cc', | 22 'acl.cc', |
| 23 'broker_services.cc', | 23 'broker_services.cc', |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 # TODO(bradnelson): This step generates sandbox.pch.ib_tag | 75 # TODO(bradnelson): This step generates sandbox.pch.ib_tag |
| 76 # SCons doesn't know. | 76 # SCons doesn't know. |
| 77 env_p = env.Clone() | 77 env_p = env.Clone() |
| 78 env_p.Append(CCFLAGS='/Ylsandbox') | 78 env_p.Append(CCFLAGS='/Ylsandbox') |
| 79 pch, obj = env_p.PCH(['sandbox.pch', 'stdafx.obj'], 'stdafx.cc') | 79 pch, obj = env_p.PCH(['sandbox.pch', 'stdafx.obj'], 'stdafx.cc') |
| 80 env['PCH'] = pch | 80 env['PCH'] = pch |
| 81 env['PCHSTOP'] = 'stdafx.h' | 81 env['PCHSTOP'] = 'stdafx.h' |
| 82 env.Append(CCPCHFLAGS = ['/FIstdafx.h']) | 82 env.Append(CCPCHFLAGS = ['/FIstdafx.h']) |
| 83 | 83 |
| 84 env.ChromeStaticLibrary('sandbox', input_files + [obj]) | 84 env.ChromeStaticLibrary('sandbox', input_files + [obj]) |
| OLD | NEW |