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 env.ApplySConscript([ | 9 env.ApplySConscript([ |
10 '$BASE_DIR/using_base.scons', | 10 '$BASE_DIR/using_base.scons', |
11 '$CHROME_SRC_DIR/build/using_googleurl.scons', | 11 '$CHROME_SRC_DIR/build/using_googleurl.scons', |
12 '$ICU38_DIR/using_icu38.scons', | 12 '$ICU38_DIR/using_icu38.scons', |
13 ]) | 13 ]) |
14 | 14 |
15 env.Prepend( | 15 env.Prepend( |
16 CPPPATH = [ | 16 CPPPATH = [ |
17 '$CHROME_SRC_DIR', | 17 '$CHROME_SRC_DIR', |
18 ], | 18 ], |
19 ) | 19 ) |
20 | 20 |
21 if env['PLATFORM'] == 'win32': | 21 if env.Bit('windows'): |
22 env.Prepend( | 22 env.Prepend( |
23 LINKFLAGS = [ | 23 LINKFLAGS = [ |
24 '/INCREMENTAL', | 24 '/INCREMENTAL', |
25 | 25 |
26 '/MANIFEST', | 26 '/MANIFEST', |
27 '/DELAYLOAD:"dwmapi.dll"', | 27 '/DELAYLOAD:"dwmapi.dll"', |
28 '/DELAYLOAD:"uxtheme.dll"', | 28 '/DELAYLOAD:"uxtheme.dll"', |
29 '/MACHINE:X86', | 29 '/MACHINE:X86', |
30 '/FIXED:No', | 30 '/FIXED:No', |
31 | 31 |
32 '/safeseh', | 32 '/safeseh', |
33 '/dynamicbase', | 33 '/dynamicbase', |
34 '/ignore:4199', | 34 '/ignore:4199', |
35 '/nxcompat', | 35 '/nxcompat', |
36 | 36 |
37 '/DEBUG', | 37 '/DEBUG', |
38 ], | 38 ], |
39 LIBS = [ | 39 LIBS = [ |
40 'winmm.lib', | 40 'winmm.lib', |
41 ], | 41 ], |
42 ) | 42 ) |
43 | 43 |
44 input_files = [ | 44 input_files = [ |
45 'test_chrome_plugin.cc', | 45 'test_chrome_plugin.cc', |
46 ] | 46 ] |
47 | 47 |
48 if env['PLATFORM'] == 'win32': | 48 if env.Bit('windows'): |
49 input_files.extend([ | 49 input_files.extend([ |
50 'test_chrome_plugin.def', | 50 'test_chrome_plugin.def', |
51 ]) | 51 ]) |
52 | 52 |
53 env.ChromeSharedLibrary('test_chrome_plugin', input_files) | 53 env.ChromeSharedLibrary('test_chrome_plugin', input_files) |
OLD | NEW |