| 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 Configuration the disk_cache{,.exe} executable. | 6 Configuration the disk_cache{,.exe} executable. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 Import('env') | 9 Import('env') |
| 10 | 10 |
| 11 env = env.Clone() | 11 env = env.Clone() |
| 12 | 12 |
| 13 env.ApplySConscript([ | 13 env.ApplySConscript([ |
| 14 '$BASE_DIR/using_base.scons', | 14 '$BASE_DIR/using_base.scons', |
| 15 '$GTEST_DIR/../using_gtest.scons', | 15 '$GTEST_DIR/../using_gtest.scons', |
| 16 '$ICU38_DIR/using_icu38.scons', | 16 '$ICU38_DIR/using_icu38.scons', |
| 17 '$NET_DIR/using_net.scons', | 17 '$NET_DIR/using_net.scons', |
| 18 ]) | 18 ]) |
| 19 | 19 |
| 20 if env['PLATFORM'] == 'win32': | 20 if env.Bit('windows'): |
| 21 env.Prepend( | 21 env.Prepend( |
| 22 CCFLAGS = [ | 22 CCFLAGS = [ |
| 23 '/WX', | 23 '/WX', |
| 24 ], | 24 ], |
| 25 ) | 25 ) |
| 26 | 26 |
| 27 input_files = [ | 27 input_files = [ |
| 28 'disk_cache/disk_cache_test_util$OBJSUFFIX', | 28 'disk_cache/disk_cache_test_util$OBJSUFFIX', |
| 29 'tools/crash_cache/crash_cache.cc', | 29 'tools/crash_cache/crash_cache.cc', |
| 30 ] | 30 ] |
| 31 | 31 |
| 32 | 32 |
| 33 if env['PLATFORM'] in ('posix', 'win32'): | 33 if not env.Bit('mac'): |
| 34 | |
| 35 env.ChromeTestProgram('crash_cache', input_files) | 34 env.ChromeTestProgram('crash_cache', input_files) |
| OLD | NEW |