| 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 tld_cleanup{,.exe} executable. | 6 Configuration the tld_cleanup{,.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.SConscript([ | 13 env.ApplySConscript([ |
| 14 '$BASE_DIR/using_base.scons', | 14 '$BASE_DIR/using_base.scons', |
| 15 '$CHROME_SRC_DIR/build/using_googleurl.scons', | 15 '$CHROME_SRC_DIR/build/using_googleurl.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 ], {'env':env}) | 18 ]) |
| 19 | |
| 20 env.Prepend( | |
| 21 CPPPATH = [ | |
| 22 '$CHROME_SRC_DIR', | |
| 23 ], | |
| 24 ) | |
| 25 | 19 |
| 26 if env['PLATFORM'] == 'win32': | 20 if env['PLATFORM'] == 'win32': |
| 27 env.Append( | 21 env.Append( |
| 28 CCFLAGS = [ | |
| 29 '/TP', | |
| 30 ], | |
| 31 | |
| 32 LINKFLAGS = [ | 22 LINKFLAGS = [ |
| 33 '/INCREMENTAL', | |
| 34 '/MANIFEST', | |
| 35 '/DELAYLOAD:"dwmapi.dll"', | |
| 36 '/DELAYLOAD:"uxtheme.dll"', | |
| 37 '/DEBUG', | |
| 38 '/SUBSYSTEM:CONSOLE', | 23 '/SUBSYSTEM:CONSOLE', |
| 39 '/MACHINE:X86', | |
| 40 '/FIXED:No', | |
| 41 '/safeseh', | |
| 42 '/dynamicbase', | |
| 43 '/ignore:4199', | |
| 44 '/nxcompat', | |
| 45 ], | 24 ], |
| 46 ) | 25 ) |
| 47 | 26 |
| 48 input_files = [ | 27 input_files = [ |
| 49 'tld_cleanup.cc', | 28 'tld_cleanup.cc', |
| 50 ] | 29 ] |
| 51 | 30 |
| 52 env.ChromeProgram('tld_cleanup', input_files) | 31 env.ChromeProgram('tld_cleanup', input_files) |
| OLD | NEW |