OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 Import('env', 'env_res') | |
6 | |
7 env = env.Clone() | |
8 env_res = env_res.Clone() | |
9 | |
10 input_files = [ | |
11 'npapi_constants.cc', | |
12 'npapi_test.cc', | |
13 'plugin_arguments_test.cc', | |
14 'plugin_delete_plugin_in_stream_test.cc', | |
15 'plugin_get_javascript_url_test.cc', | |
16 'plugin_geturl_test.cc', | |
17 'plugin_new_fails_test.cc', | |
18 'plugin_npobject_proxy_test.cc', | |
19 'plugin_test.cc' | |
20 ] | |
21 | |
22 if env.Bit('windows'): | |
23 # TODO(port): Port these. | |
24 input_files.extend([ | |
25 'plugin_execute_script_delete_test.cc', | |
26 'plugin_javascript_open_popup.cc', | |
27 'plugin_client.cc', # Includes not ported headers. | |
28 'plugin_npobject_lifetime_test.cc', # Has win32-isms (HWND, CALLBACK). | |
29 'plugin_window_size_test.cc' # Has w32-isms including HWND. | |
30 ]) | |
31 | |
32 env.Append( | |
33 LIBS = [ | |
34 'base', | |
35 'icu', | |
36 ], | |
37 ) | |
38 | |
39 if env.Bit('windows'): | |
40 input_files.extend([ | |
41 env_res.RES('npapi_test.rc'), | |
42 'npapi_test.def' | |
43 ]) | |
44 | |
45 env.Append( | |
46 CCFLAGS = [ | |
47 '/TP', | |
48 '/wd4800', | |
49 ], | |
50 | |
51 LIBS = [ | |
52 'comctl32.lib', | |
53 'rpcrt4.lib', | |
54 'shlwapi.lib', | |
55 'winmm.lib', | |
56 ], | |
57 | |
58 LINKFLAGS = [ | |
59 '/INCREMENTAL', | |
60 '/DELAYLOAD:"dwmapi.dll"', | |
61 '/DELAYLOAD:"uxtheme.dll"', | |
62 '/FIXED:No', | |
63 '/SUBSYSTEM:CONSOLE', | |
64 '/MACHINE:X86', | |
65 '/safeseh', | |
66 '/dynamicbase', | |
67 '/ignore:4199', | |
68 '/nxcompat', | |
69 ], | |
70 ) | |
71 | |
72 dll = env.ChromeSharedLibrary('npapi_test_plugin', input_files) | |
73 | |
74 # Install ourselves into the destination root so that dependent tests | |
75 # can find us. | |
76 i = env.Install('$DESTINATION_ROOT/plugins', dll) | |
77 env.Alias('webkit', i) | |
78 | |
79 env.ChromeMSVSProject('$WEBKIT_DIR/glue/plugins/test/npapi_test_plugin.vcproj', | |
80 dependencies = [ | |
81 '$BASE_DIR/build/base.vcproj', | |
82 '$ICU38_DIR/build/icu.vcproj', | |
83 ], | |
84 guid='{0D04AEC1-6B68-492C-BCCF-808DFD69ABC6}') | |
OLD | NEW |