| 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 'npapi_constants.cc', | 11 'npapi_constants.cc', |
| 12 'npapi_test.cc', | 12 'npapi_test.cc', |
| 13 env_res.RES('npapi_test.rc'), | |
| 14 'plugin_arguments_test.cc', | |
| 15 'plugin_client.cc', | |
| 16 'plugin_delete_plugin_in_stream_test.cc', | 13 'plugin_delete_plugin_in_stream_test.cc', |
| 17 'plugin_execute_script_delete_test.cc', | |
| 18 'plugin_get_javascript_url_test.cc', | 14 'plugin_get_javascript_url_test.cc', |
| 19 'plugin_geturl_test.cc', | |
| 20 'plugin_new_fails_test.cc', | 15 'plugin_new_fails_test.cc', |
| 21 'plugin_npobject_lifetime_test.cc', | |
| 22 'plugin_npobject_proxy_test.cc', | 16 'plugin_npobject_proxy_test.cc', |
| 23 'plugin_test.cc', | 17 'plugin_test.cc' |
| 24 'plugin_window_size_test.cc', | |
| 25 'npapi_test.def', | |
| 26 ] | 18 ] |
| 27 | 19 |
| 20 if env['PLATFORM'] == 'win32': |
| 21 # TODO(port): Port these. |
| 22 input_files.extend([ |
| 23 'plugin_arguments_test.cc', |
| 24 'plugin_execute_script_delete_test.cc', |
| 25 'plugin_geturl_test.cc', |
| 26 'plugin_client.cc', # Includes not ported headers. |
| 27 'plugin_npobject_lifetime_test.cc', # Has win32-isms (HWND, CALLBACK). |
| 28 'plugin_window_size_test.cc' # Has w32-isms including HWND. |
| 29 ]) |
| 30 |
| 28 env.Append( | 31 env.Append( |
| 29 LIBS = [ | 32 LIBS = [ |
| 30 'base', | 33 'base', |
| 31 ], | 34 ], |
| 32 ) | 35 ) |
| 33 | 36 |
| 34 env.Append( | 37 if env['PLATFORM'] == 'win32': |
| 35 CCFLAGS = [ | 38 input_files.extend([ |
| 36 '/TP', | 39 env_res.RES('npapi_test.rc'), |
| 37 '/wd4800', | 40 'npapi_test.def' |
| 38 ], | 41 ]) |
| 39 | 42 |
| 40 LIBS = [ | 43 env.Append( |
| 41 'comctl32.lib', | 44 CCFLAGS = [ |
| 42 'rpcrt4.lib', | 45 '/TP', |
| 43 'shlwapi.lib', | 46 '/wd4800', |
| 44 'winmm.lib', | 47 ], |
| 45 ], | |
| 46 | 48 |
| 47 LINKFLAGS = [ | 49 LIBS = [ |
| 48 '/INCREMENTAL', | 50 'comctl32.lib', |
| 49 '/DELAYLOAD:"dwmapi.dll"', | 51 'rpcrt4.lib', |
| 50 '/DELAYLOAD:"uxtheme.dll"', | 52 'shlwapi.lib', |
| 51 '/FIXED:No', | 53 'winmm.lib', |
| 52 '/SUBSYSTEM:CONSOLE', | 54 ], |
| 53 '/MACHINE:X86', | |
| 54 '/safeseh', | |
| 55 '/dynamicbase', | |
| 56 '/ignore:4199', | |
| 57 '/nxcompat', | |
| 58 ], | |
| 59 ) | |
| 60 | 55 |
| 61 dll = env.ChromeSharedLibrary(['npapi_test_plugin', | 56 LINKFLAGS = [ |
| 62 'npapi_test_plugin.lib', | 57 '/INCREMENTAL', |
| 63 'npapi_test_plugin.ilk', | 58 '/DELAYLOAD:"dwmapi.dll"', |
| 64 'npapi_test_plugin.pdb'], | 59 '/DELAYLOAD:"uxtheme.dll"', |
| 65 input_files) | 60 '/FIXED:No', |
| 61 '/SUBSYSTEM:CONSOLE', |
| 62 '/MACHINE:X86', |
| 63 '/safeseh', |
| 64 '/dynamicbase', |
| 65 '/ignore:4199', |
| 66 '/nxcompat', |
| 67 ], |
| 68 ) |
| 66 | 69 |
| 67 # TODO(sgk): goes away once ChromeSharedLibrary does this for us. | 70 dll = env.ChromeSharedLibrary([ |
| 68 env.Install('$LIBS_DIR', dll[1]) | 71 'npapi_test_plugin', |
| 72 'npapi_test_plugin.lib', |
| 73 'npapi_test_plugin.ilk', |
| 74 'npapi_test_plugin.pdb' |
| 75 ], input_files) |
| 76 |
| 77 # TODO(sgk): goes away once ChromeSharedLibrary does this for us. |
| 78 env.Install('$LIBS_DIR', dll[1]) |
| 79 else: |
| 80 dll = env.ChromeSharedLibrary(['npapi_test_plugin'], input_files) |
| 69 | 81 |
| 70 i = env.Install('$TARGET_ROOT', dll) | 82 i = env.Install('$TARGET_ROOT', dll) |
| 71 env.Alias('webkit', i) | 83 env.Alias('webkit', i) |
| 72 | 84 |
| OLD | NEW |