| 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.SConscript([ | 9 env.SConscript([ |
| 10 '$NPAPI_DIR/using_npapi.scons', | 10 '$NPAPI_DIR/using_npapi.scons', |
| 11 '$SKIA_DIR/using_skia.scons', | 11 '$SKIA_DIR/using_skia.scons', |
| 12 ], {'env':env}) | 12 ], {'env':env}) |
| 13 | 13 |
| 14 env.Prepend( | 14 env.Prepend( |
| 15 CPPPATH = [ | 15 CPPPATH = [ |
| 16 '$CHROME_SRC_DIR', | 16 '$CHROME_SRC_DIR', |
| 17 ], | 17 ], |
| 18 ) | 18 ) |
| 19 | 19 |
| 20 if env['PLATFORM'] == 'win32': | 20 if env.Bit('windows'): |
| 21 env.Prepend( | 21 env.Prepend( |
| 22 CPPPATH = [ | 22 CPPPATH = [ |
| 23 '$CHROME_DIR/tools/build/win', | 23 '$CHROME_DIR/tools/build/win', |
| 24 ], | 24 ], |
| 25 ) | 25 ) |
| 26 | 26 |
| 27 input_files = [ | 27 input_files = [ |
| 28 'chrome_plugin_host.cc', | 28 'chrome_plugin_host.cc', |
| 29 'npobject_proxy.cc', | 29 'npobject_proxy.cc', |
| 30 'npobject_stub.cc', | 30 'npobject_stub.cc', |
| 31 'npobject_util.cc', | 31 'npobject_util.cc', |
| 32 'plugin_channel.cc', | 32 'plugin_channel.cc', |
| 33 'plugin_channel_base.cc', | 33 'plugin_channel_base.cc', |
| 34 'plugin_main.cc', | 34 'plugin_main.cc', |
| 35 'plugin_process.cc', | 35 'plugin_process.cc', |
| 36 'plugin_thread.cc', | 36 'plugin_thread.cc', |
| 37 'webplugin_delegate_stub.cc', | 37 'webplugin_delegate_stub.cc', |
| 38 'webplugin_proxy.cc', | 38 'webplugin_proxy.cc', |
| 39 ] | 39 ] |
| 40 | 40 |
| 41 if env['PLATFORM'] in ('posix', 'darwin'): | 41 if env.Bit('posix'): |
| 42 # TODO(port) | 42 # TODO(port) |
| 43 to_be_ported_files = [ | 43 to_be_ported_files = [ |
| 44 'chrome_plugin_host.cc', | 44 'chrome_plugin_host.cc', |
| 45 'npobject_proxy.cc', | 45 'npobject_proxy.cc', |
| 46 'npobject_stub.cc', | 46 'npobject_stub.cc', |
| 47 'npobject_util.cc', | 47 'npobject_util.cc', |
| 48 'plugin_channel.cc', | 48 'plugin_channel.cc', |
| 49 'plugin_channel_base.cc', | 49 'plugin_channel_base.cc', |
| 50 'plugin_main.cc', | 50 'plugin_main.cc', |
| 51 'plugin_process.cc', | 51 'plugin_process.cc', |
| 52 'plugin_thread.cc', | 52 'plugin_thread.cc', |
| 53 'webplugin_delegate_stub.cc', | 53 'webplugin_delegate_stub.cc', |
| 54 'webplugin_proxy.cc', | 54 'webplugin_proxy.cc', |
| 55 ] | 55 ] |
| 56 for remove in to_be_ported_files: | 56 for remove in to_be_ported_files: |
| 57 input_files.remove(remove) | 57 input_files.remove(remove) |
| 58 | 58 |
| 59 env.ChromeStaticLibrary('plugin', input_files) | 59 env.ChromeStaticLibrary('plugin', input_files) |
| 60 | 60 |
| OLD | NEW |