| 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', 'env_res') | 5 Import('env', 'env_res') |
| 6 | 6 |
| 7 env = env.Clone() | 7 env = env.Clone() |
| 8 env_res = env_res.Clone() | 8 env_res = env_res.Clone() |
| 9 | 9 |
| 10 input_files = [ | 10 input_files = [ |
| 11 'main.cpp', | 11 'main.cpp', |
| 12 'PluginObject.cpp', | 12 'PluginObject.cpp', |
| 13 'TestObject.cpp' | 13 'TestObject.cpp' |
| 14 ] | 14 ] |
| 15 | 15 |
| 16 if env['PLATFORM'] == 'win32': | 16 if env.Bit('windows'): |
| 17 input_files.extend([ | 17 input_files.extend([ |
| 18 env_res.RES('npapi_layout_test_plugin.rc'), | 18 env_res.RES('npapi_layout_test_plugin.rc'), |
| 19 'npapi_layout_test_plugin.def' | 19 'npapi_layout_test_plugin.def' |
| 20 ]) | 20 ]) |
| 21 | 21 |
| 22 env.Append( | 22 env.Append( |
| 23 CCFLAGS = [ | 23 CCFLAGS = [ |
| 24 '/TP', | 24 '/TP', |
| 25 '/WX', | 25 '/WX', |
| 26 ], | 26 ], |
| (...skipping 19 matching lines...) Expand all Loading... |
| 46 ) | 46 ) |
| 47 | 47 |
| 48 dll = env.ChromeSharedLibrary('npapi_layout_test_plugin', input_files) | 48 dll = env.ChromeSharedLibrary('npapi_layout_test_plugin', input_files) |
| 49 | 49 |
| 50 i = env.Install('$TARGET_ROOT/plugins', dll) | 50 i = env.Install('$TARGET_ROOT/plugins', dll) |
| 51 env.Alias('webkit', i) | 51 env.Alias('webkit', i) |
| 52 | 52 |
| 53 i = env.Install('$TARGET_ROOT', dll) | 53 i = env.Install('$TARGET_ROOT', dll) |
| 54 env.Alias('webkit', i) | 54 env.Alias('webkit', i) |
| 55 | 55 |
| OLD | NEW |