OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'plugins_common', | 8 'target_name': 'plugins_common', |
9 'type': 'static_library', | 9 'type': 'static_library', |
10 'defines': [ | 10 'defines': [ |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 48 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
49 'msvs_disabled_warnings': [ 4800, 4267 ], | 49 'msvs_disabled_warnings': [ 4800, 4267 ], |
50 'sources/': [['exclude', '_posix\\.cc$']], | 50 'sources/': [['exclude', '_posix\\.cc$']], |
51 'include_dirs': [ | 51 'include_dirs': [ |
52 '<(DEPTH)/third_party/wtl/include', | 52 '<(DEPTH)/third_party/wtl/include', |
53 ], | 53 ], |
54 }], | 54 }], |
55 ], | 55 ], |
56 }, | 56 }, |
57 ], | 57 ], |
58 'conditions': [ | |
59 ['OS!="android" and OS!="ios"', { | |
60 # npapi test plugin doesn't build on android or ios | |
61 'targets': [ | |
62 { | |
63 'target_name': 'npapi_test_common', | |
64 'type': 'static_library', | |
65 'dependencies': [ | |
66 '<(DEPTH)/base/base.gyp:base', | |
67 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi', | |
68 ], | |
69 'sources': [ | |
70 'npapi/test/npapi_constants.cc', | |
71 'npapi/test/npapi_constants.h', | |
72 'npapi/test/plugin_client.cc', | |
73 'npapi/test/plugin_client.h', | |
74 'npapi/test/plugin_test.cc', | |
75 'npapi/test/plugin_test.h', | |
76 'npapi/test/plugin_test_factory.h', | |
77 ], | |
78 'export_dependent_settings': [ | |
79 '<(DEPTH)/base/base.gyp:base', | |
80 ], | |
81 }, | |
82 { | |
83 'target_name': 'npapi_test_plugin', | |
84 'type': 'loadable_module', | |
85 'variables': { | |
86 'chromium_code': 1, | |
87 }, | |
88 'mac_bundle': 1, | |
89 'dependencies': [ | |
90 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', | |
91 'npapi_test_common', | |
92 ], | |
93 'sources': [ | |
94 'npapi/test/npapi_test.cc', | |
95 'npapi/test/npapi_test.def', | |
96 'npapi/test/npapi_test.rc', | |
97 'npapi/test/plugin_arguments_test.cc', | |
98 'npapi/test/plugin_arguments_test.h', | |
99 'npapi/test/plugin_create_instance_in_paint.cc', | |
100 'npapi/test/plugin_create_instance_in_paint.h', | |
101 'npapi/test/plugin_delete_plugin_in_deallocate_test.cc', | |
102 'npapi/test/plugin_delete_plugin_in_deallocate_test.h', | |
103 'npapi/test/plugin_delete_plugin_in_stream_test.cc', | |
104 'npapi/test/plugin_delete_plugin_in_stream_test.h', | |
105 'npapi/test/plugin_execute_stream_javascript.cc', | |
106 'npapi/test/plugin_execute_stream_javascript.h', | |
107 'npapi/test/plugin_get_javascript_url_test.cc', | |
108 'npapi/test/plugin_get_javascript_url_test.h', | |
109 'npapi/test/plugin_get_javascript_url2_test.cc', | |
110 'npapi/test/plugin_get_javascript_url2_test.h', | |
111 'npapi/test/plugin_geturl_test.cc', | |
112 'npapi/test/plugin_geturl_test.h', | |
113 'npapi/test/plugin_javascript_open_popup.cc', | |
114 'npapi/test/plugin_javascript_open_popup.h', | |
115 'npapi/test/plugin_new_fails_test.cc', | |
116 'npapi/test/plugin_new_fails_test.h', | |
117 'npapi/test/plugin_npobject_identity_test.cc', | |
118 'npapi/test/plugin_npobject_identity_test.h', | |
119 'npapi/test/plugin_npobject_lifetime_test.cc', | |
120 'npapi/test/plugin_npobject_lifetime_test.h', | |
121 'npapi/test/plugin_npobject_proxy_test.cc', | |
122 'npapi/test/plugin_npobject_proxy_test.h', | |
123 'npapi/test/plugin_request_read_test.h', | |
124 'npapi/test/plugin_request_read_test.cc', | |
125 'npapi/test/plugin_schedule_timer_test.cc', | |
126 'npapi/test/plugin_schedule_timer_test.h', | |
127 'npapi/test/plugin_setup_test.cc', | |
128 'npapi/test/plugin_setup_test.h', | |
129 'npapi/test/plugin_thread_async_call_test.cc', | |
130 'npapi/test/plugin_thread_async_call_test.h', | |
131 'npapi/test/plugin_windowed_test.cc', | |
132 'npapi/test/plugin_windowed_test.h', | |
133 'npapi/test/plugin_private_test.cc', | |
134 'npapi/test/plugin_private_test.h', | |
135 'npapi/test/plugin_test_factory.cc', | |
136 'npapi/test/plugin_window_size_test.cc', | |
137 'npapi/test/plugin_window_size_test.h', | |
138 'npapi/test/plugin_windowless_test.cc', | |
139 'npapi/test/plugin_windowless_test.h', | |
140 'npapi/test/resource.h', | |
141 ], | |
142 'include_dirs': [ | |
143 '../..', | |
144 ], | |
145 'xcode_settings': { | |
146 'INFOPLIST_FILE': '<(DEPTH)/webkit/plugins/npapi/test/Info.plist', | |
147 }, | |
148 'conditions': [ | |
149 ['OS!="win"', { | |
150 'sources!': [ | |
151 # TODO(port): Port these. | |
152 # plugin_npobject_lifetime_test.cc has win32-isms | |
153 # (HWND, CALLBACK). | |
154 'npapi/test/plugin_npobject_lifetime_test.cc', | |
155 # The window APIs are necessarily platform-specific. | |
156 'npapi/test/plugin_window_size_test.cc', | |
157 'npapi/test/plugin_windowed_test.cc', | |
158 # Seems windows specific. | |
159 'npapi/test/plugin_create_instance_in_paint.cc', | |
160 'npapi/test/plugin_create_instance_in_paint.h', | |
161 # windows-specific resources | |
162 'npapi/test/npapi_test.def', | |
163 'npapi/test/npapi_test.rc', | |
164 ], | |
165 }], | |
166 ['OS=="mac"', { | |
167 'product_extension': 'plugin', | |
168 'link_settings': { | |
169 'libraries': [ | |
170 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | |
171 ], | |
172 }, | |
173 }], | |
174 ['os_posix == 1 and OS != "mac" and (target_arch == "x64" or target_
arch == "arm")', { | |
175 # Shared libraries need -fPIC on x86-64 | |
176 'cflags': ['-fPIC'] | |
177 }], | |
178 ], | |
179 }, | |
180 { | |
181 'target_name': 'copy_npapi_test_plugin', | |
182 'type': 'none', | |
183 'dependencies': [ | |
184 'npapi_test_plugin', | |
185 ], | |
186 'conditions': [ | |
187 ['OS=="win"', { | |
188 'copies': [ | |
189 { | |
190 'destination': '<(PRODUCT_DIR)/plugins', | |
191 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.dll'], | |
192 }, | |
193 ], | |
194 }], | |
195 ['OS=="mac"', { | |
196 'copies': [ | |
197 { | |
198 'destination': '<(PRODUCT_DIR)/plugins/', | |
199 'files': ['<(PRODUCT_DIR)/npapi_test_plugin.plugin'], | |
200 }, | |
201 ] | |
202 }], | |
203 ['os_posix == 1 and OS != "mac"', { | |
204 'copies': [ | |
205 { | |
206 'destination': '<(PRODUCT_DIR)/plugins', | |
207 'files': ['<(PRODUCT_DIR)/libnpapi_test_plugin.so'], | |
208 }, | |
209 ], | |
210 }], | |
211 ], | |
212 }, | |
213 ], | |
214 }], | |
215 ], | |
216 } | 58 } |
217 | 59 |
OLD | NEW |