| OLD | NEW |
| (Empty) |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 Import('env') | |
| 6 | |
| 7 env = env.Clone() | |
| 8 | |
| 9 env.ApplySConscript([ | |
| 10 '$BASE_DIR/using_base.scons', | |
| 11 '$GTEST_DIR/../using_gtest.scons', | |
| 12 '$SANDBOX_DIR/using_sandbox.scons', | |
| 13 ]) | |
| 14 | |
| 15 if env.Bit('windows'): | |
| 16 env.Append( | |
| 17 CCFLAGS = [ | |
| 18 '/WX', # treat warnings as errors | |
| 19 ], | |
| 20 ) | |
| 21 | |
| 22 env.Prepend( | |
| 23 LIBS = [ | |
| 24 'shlwapi', | |
| 25 ], | |
| 26 ) | |
| 27 | |
| 28 | |
| 29 # TODO(bradnelson): This step generates unittests_tests.pch.ib_tag | |
| 30 # SCons doesn't know. | |
| 31 env_p = env.Clone() | |
| 32 pch, obj = env_p.PCH(['unit_tests.pch', 'unit_tests.obj'], | |
| 33 'unit_tests.cc') | |
| 34 env['PCH'] = pch | |
| 35 env['PCHSTOP'] = 'stdafx.h' | |
| 36 env.Append(CCPCHFLAGS = ['/FIstdafx.h']) | |
| 37 | |
| 38 | |
| 39 input_files = [ | |
| 40 obj, | |
| 41 | |
| 42 'suite.cc', | |
| 43 'commands.cc', | |
| 44 | |
| 45 '../common/controller$OBJSUFFIX', | |
| 46 ] | |
| 47 | |
| 48 env.ChromeTestProgram('sbox_validation_tests', input_files, | |
| 49 COMPONENT_PLATFORM_SETUP=None) | |
| OLD | NEW |