| 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 | 9 |
| 10 env.Prepend( | 10 env.Prepend( |
| 11 CPPPATH = [ | 11 CPPPATH = [ |
| 12 '#/..', | 12 '#/..', |
| 13 ], | 13 ], |
| 14 LIBS = [ | 14 LIBS = [ |
| 15 'googleurl', | 15 'googleurl', |
| 16 env['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed | 16 env['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed |
| 17 'base', | 17 'base', |
| 18 ], | 18 ], |
| 19 ) | 19 ) |
| 20 | 20 |
| 21 env.Prepend( | |
| 22 LINKFLAGS = [ | |
| 23 '/INCREMENTAL', | |
| 24 | |
| 25 '/MANIFEST', | |
| 26 '/DELAYLOAD:"dwmapi.dll"', | |
| 27 '/DELAYLOAD:"uxtheme.dll"', | |
| 28 '/MACHINE:X86', | |
| 29 '/FIXED:No', | |
| 30 | |
| 31 '/safeseh', | |
| 32 '/dynamicbase', | |
| 33 '/ignore:4199', | |
| 34 '/nxcompat', | |
| 35 | |
| 36 '/DEBUG', | |
| 37 ], | |
| 38 LIBS = [ | |
| 39 'winmm.lib', | |
| 40 ], | |
| 41 ) | |
| 42 | |
| 43 input_files = [ | 21 input_files = [ |
| 44 'test_chrome_plugin.cc', | 22 'test_chrome_plugin.cc', |
| 45 'test_chrome_plugin.def', | |
| 46 ] | 23 ] |
| 47 | 24 |
| 25 |
| 26 if env['PLATFORM'] == 'win32': |
| 27 env.Prepend( |
| 28 LINKFLAGS = [ |
| 29 '/INCREMENTAL', |
| 30 |
| 31 '/MANIFEST', |
| 32 '/DELAYLOAD:"dwmapi.dll"', |
| 33 '/DELAYLOAD:"uxtheme.dll"', |
| 34 '/MACHINE:X86', |
| 35 '/FIXED:No', |
| 36 |
| 37 '/safeseh', |
| 38 '/dynamicbase', |
| 39 '/ignore:4199', |
| 40 '/nxcompat', |
| 41 |
| 42 '/DEBUG', |
| 43 ], |
| 44 LIBS = [ |
| 45 'winmm.lib', |
| 46 ], |
| 47 ) |
| 48 |
| 49 input_files.extend([ |
| 50 'test_chrome_plugin.def', |
| 51 ]) |
| 52 |
| 48 dll = env.ChromeSharedLibrary('test_chrome_plugin', input_files) | 53 dll = env.ChromeSharedLibrary('test_chrome_plugin', input_files) |
| 49 | 54 |
| 50 i = env.Install('$TARGET_ROOT', dll) | 55 i = env.Install('$TARGET_ROOT', dll) |
| 51 env.Alias('chrome', i) | 56 env.Alias('chrome', i) |
| 52 | 57 |
| OLD | NEW |