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.Prepend( | 9 env.Prepend( |
10 CPPPATH = [ | 10 CPPPATH = [ |
11 '$CHROME_SRC_DIR/webkit/glue', | 11 '$CHROME_SRC_DIR/webkit/glue', |
12 '$ICU38/public/common', | 12 '$ICU38/public/common', |
13 '$ICU38/public/i18n', | 13 '$ICU38/public/i18n', |
14 '$CHROME_SRC_DIR/third_party/libxml/include', | 14 '$CHROME_SRC_DIR/third_party/libxml/include', |
15 '$CHROME_SRC_DIR/third_party/npapi', | 15 '$CHROME_SRC_DIR/third_party/npapi', |
16 '$CHROME_SRC_DIR', | 16 '$CHROME_SRC_DIR', |
17 ], | 17 ], |
18 ) | 18 ) |
19 | 19 |
20 env.Append( | 20 env.Append( |
21 CPPDEFINES = [ | 21 CPPDEFINES = [ |
22 'U_STATIC_IMPLEMENTATION', | 22 'U_STATIC_IMPLEMENTATION', |
23 'LIBXML_STATIC', | 23 'LIBXML_STATIC', |
24 ], | 24 ], |
25 ) | 25 ) |
26 | 26 |
27 if env['PLATFORM'] == 'win32': | 27 if env.Bit('windows'): |
28 env.Append( | 28 env.Append( |
29 CCFLAGS = [ | 29 CCFLAGS = [ |
30 '/TP', | 30 '/TP', |
31 | 31 |
32 '/WX', | 32 '/WX', |
33 '/Wp64', | 33 '/Wp64', |
34 ], | 34 ], |
35 ) | 35 ) |
36 | 36 |
37 # Platform-independent files. | 37 # Platform-independent files. |
38 input_files = [ | 38 input_files = [ |
39 ] | 39 ] |
40 | 40 |
41 # TODO: Quarantine files -- need porting to platform-specific blocks above. | 41 # TODO: Quarantine files -- need porting to platform-specific blocks above. |
42 if env['PLATFORM'] == 'win32': | 42 if env.Bit('windows'): |
43 input_files.extend([ | 43 input_files.extend([ |
44 'activex_installer.cc', | 44 'activex_installer.cc', |
45 'default_plugin.cc', | 45 'default_plugin.cc', |
46 'plugin_main.cc', | 46 'plugin_main.cc', |
47 'plugin_impl.cc', | 47 'plugin_impl.cc', |
48 'plugin_database_handler.cc', | 48 'plugin_database_handler.cc', |
49 'plugin_install_job_monitor.cc', | 49 'plugin_install_job_monitor.cc', |
50 'install_dialog.cc', | 50 'install_dialog.cc', |
51 ]) | 51 ]) |
52 | 52 |
53 env.ChromeStaticLibrary('default_plugin', input_files) | 53 env.ChromeStaticLibrary('default_plugin', input_files) |
54 | 54 |
OLD | NEW |