| 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__ = """ |
| 6 Configuration the tld_cleanup{,.exe} executable. |
| 7 """ |
| 8 |
| 5 Import('env') | 9 Import('env') |
| 6 | 10 |
| 7 env = env.Clone() | 11 env = env.Clone() |
| 8 | 12 |
| 13 env.SConscript([ |
| 14 '$BASE_DIR/using_base.scons', |
| 15 '#/../build/using_googleurl.scons', |
| 16 '$ICU38_DIR/using_icu38.scons', |
| 17 '$NET_DIR/using_net.scons', |
| 18 ], {'env':env}) |
| 19 |
| 9 env.Prepend( | 20 env.Prepend( |
| 10 CPPPATH = [ | 21 CPPPATH = [ |
| 11 '../../..', | 22 '$ROOT_DIR', |
| 12 ], | |
| 13 LIBS = [ | |
| 14 'googleurl', | |
| 15 env['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed | |
| 16 'base', | |
| 17 # We only need to link with net due to use precompiled_net.pch. | |
| 18 'net', | |
| 19 ], | 23 ], |
| 20 ) | 24 ) |
| 21 | 25 |
| 22 env.Append( | 26 if env['PLATFORM'] == 'win32': |
| 23 CCFLAGS = [ | 27 env.Append( |
| 24 '/TP', | 28 CCFLAGS = [ |
| 25 ], | 29 '/TP', |
| 30 ], |
| 26 | 31 |
| 27 LINKFLAGS = [ | 32 LINKFLAGS = [ |
| 28 '/INCREMENTAL', | 33 '/INCREMENTAL', |
| 29 '/MANIFEST', | 34 '/MANIFEST', |
| 30 '/DELAYLOAD:"dwmapi.dll"', | 35 '/DELAYLOAD:"dwmapi.dll"', |
| 31 '/DELAYLOAD:"uxtheme.dll"', | 36 '/DELAYLOAD:"uxtheme.dll"', |
| 32 '/DEBUG', | 37 '/DEBUG', |
| 33 '/SUBSYSTEM:CONSOLE', | 38 '/SUBSYSTEM:CONSOLE', |
| 34 '/MACHINE:X86', | 39 '/MACHINE:X86', |
| 35 '/FIXED:No', | 40 '/FIXED:No', |
| 36 '/safeseh', | 41 '/safeseh', |
| 37 '/dynamicbase', | 42 '/dynamicbase', |
| 38 '/ignore:4199', | 43 '/ignore:4199', |
| 39 '/nxcompat', | 44 '/nxcompat', |
| 40 ], | 45 ], |
| 41 ) | 46 ) |
| 42 | 47 |
| 43 input_files = [ | 48 input_files = [ |
| 44 'tld_cleanup.cc', | 49 'tld_cleanup.cc', |
| 45 ] | 50 ] |
| 46 | 51 |
| 47 exe_targets = env.ChromeProgram('tld_cleanup', input_files) | 52 tld_cleanup = env.ChromeProgram('tld_cleanup', input_files) |
| 48 i = env.Install('$TARGET_ROOT', exe_targets) | 53 i = env.Install('$TARGET_ROOT', tld_cleanup) |
| 49 env.Alias('net', i) | 54 env.Alias('net', i) |
| 50 | |
| 51 env.Install('$TARGET_ROOT', exe_targets) | |
| 52 | |
| OLD | NEW |