Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Side by Side Diff: ppapi/BUILD.gn

Issue 305513003: Add ppapi, improve Windows GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright 2014 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 gypi_values = exec_script(
6 "//build/gypi_to_gn.py",
7 [ rebase_path("ppapi_sources.gypi") ],
8 "scope",
9 [ "ppapi_sources.gypi" ])
10
11 # TODO(GYP) support chrome_multiple_dll
12 #if (chrome_multiple_dll) {
13 # blink_target = "//third_party/WebKit/public:blink_minimal"
14 #} else {
15 # blink_target = "//third_party/WebKit/public:blink"
16 #}
17
18 # These are just headers.
19 source_set("ppapi_c") {
20 sources = gypi_values.c_source_files
21 }
22
23 source_set("ppapi_cpp_objects") {
24 sources = gypi_values.cpp_source_files
25
26 if (is_win) {
27 cflags = [
28 "/we4244", # Implicit conversion, possible loss of data.
29 ]
30 } else {
31 cflags = [
32 "-Wextra",
33 "-pedantic",
34 ]
35 }
36 }
37
38 source_set("ppapi_cpp") {
39 sources = [
40 "cpp/module_embedder.h",
41 "cpp/ppp_entrypoints.cc",
42 ]
43
44 if (is_posix) {
45 cflags = [
46 "-Wextra",
47 "-pedantic",
48 ]
49 }
50
51 deps = [
52 ":ppapi_c",
53 ":ppapi_cpp_objects",
54 ]
55 }
56
57 source_set("ppapi_gles2") {
58 sources = [
59 "lib/gl/gles2/gl2ext_ppapi.c",
60 "lib/gl/gles2/gl2ext_ppapi.h",
61 "lib/gl/gles2/gles2.c",
62 ]
63
64 include_dirs = [ "lib/gl/include" ]
65
66 deps = [
67 ":ppapi_c",
68 ]
69 }
70
71 shared_library("ppapi_tests") {
72 sources = gypi_values.test_common_source_files +
73 gypi_values.test_trusted_source_files
74
75 defines = [ "GL_GLEXT_PROTOTYPES" ]
76 include_dirs = [ "lib/gl/include" ]
77
78 deps = [
79 ":ppapi_cpp",
80 ":ppapi_shared",
81 ]
82 }
83
84 component("ppapi_shared") {
85 sources = [
86 "shared_impl/array_var.cc",
87 "shared_impl/array_var.h",
88 "shared_impl/array_writer.cc",
89 "shared_impl/array_writer.h",
90 "shared_impl/callback_tracker.cc",
91 "shared_impl/callback_tracker.h",
92 "shared_impl/dictionary_var.cc",
93 "shared_impl/dictionary_var.h",
94 "shared_impl/file_io_state_manager.cc",
95 "shared_impl/file_io_state_manager.h",
96 "shared_impl/file_growth.cc",
97 "shared_impl/file_growth.h",
98 "shared_impl/file_path.cc",
99 "shared_impl/file_path.h",
100 "shared_impl/file_ref_create_info.cc",
101 "shared_impl/file_ref_create_info.h",
102 "shared_impl/file_ref_util.cc",
103 "shared_impl/file_ref_util.h",
104 "shared_impl/file_system_util.cc",
105 "shared_impl/file_system_util.h",
106 "shared_impl/file_type_conversion.cc",
107 "shared_impl/file_type_conversion.h",
108 "shared_impl/host_resource.cc",
109 "shared_impl/host_resource.h",
110 "shared_impl/id_assignment.cc",
111 "shared_impl/id_assignment.h",
112 "shared_impl/media_stream_buffer.h",
113 "shared_impl/media_stream_buffer_manager.cc",
114 "shared_impl/media_stream_buffer_manager.h",
115 "shared_impl/media_stream_video_track_shared.h",
116 "shared_impl/media_stream_video_track_shared.cc",
117 "shared_impl/platform_file.cc",
118 "shared_impl/platform_file.h",
119 "shared_impl/ppapi_constants.h",
120 "shared_impl/ppapi_globals.cc",
121 "shared_impl/ppapi_globals.h",
122 "shared_impl/ppapi_nacl_plugin_args.cc",
123 "shared_impl/ppapi_nacl_plugin_args.h",
124 "shared_impl/ppapi_permissions.cc",
125 "shared_impl/ppapi_permissions.h",
126 "shared_impl/ppapi_preferences.cc",
127 "shared_impl/ppapi_preferences.h",
128 "shared_impl/ppapi_switches.cc",
129 "shared_impl/ppapi_switches.h",
130 "shared_impl/ppb_audio_config_shared.cc",
131 "shared_impl/ppb_audio_config_shared.h",
132 "shared_impl/ppb_audio_shared.cc",
133 "shared_impl/ppb_audio_shared.h",
134 "shared_impl/ppb_crypto_shared.cc",
135 "shared_impl/ppb_device_ref_shared.cc",
136 "shared_impl/ppb_device_ref_shared.h",
137 "shared_impl/ppb_gamepad_shared.cc",
138 "shared_impl/ppb_gamepad_shared.h",
139 "shared_impl/ppb_graphics_3d_shared.cc",
140 "shared_impl/ppb_graphics_3d_shared.h",
141 "shared_impl/ppb_image_data_shared.cc",
142 "shared_impl/ppb_image_data_shared.h",
143 "shared_impl/ppb_input_event_shared.cc",
144 "shared_impl/ppb_input_event_shared.h",
145 "shared_impl/ppb_instance_shared.cc",
146 "shared_impl/ppb_instance_shared.h",
147 "shared_impl/ppb_memory_shared.cc",
148 "shared_impl/ppb_message_loop_shared.cc",
149 "shared_impl/ppb_message_loop_shared.h",
150 "shared_impl/ppb_opengles2_shared.cc",
151 "shared_impl/ppb_opengles2_shared.h",
152 "shared_impl/ppb_tcp_socket_shared.cc",
153 "shared_impl/ppb_tcp_socket_shared.h",
154 "shared_impl/ppb_trace_event_impl.cc",
155 "shared_impl/ppb_trace_event_impl.h",
156 "shared_impl/ppb_var_shared.cc",
157 "shared_impl/ppb_var_shared.h",
158 "shared_impl/ppb_view_shared.cc",
159 "shared_impl/ppb_view_shared.h",
160 "shared_impl/ppp_flash_browser_operations_shared.h",
161 "shared_impl/ppp_instance_combined.cc",
162 "shared_impl/ppp_instance_combined.h",
163 "shared_impl/proxy_lock.cc",
164 "shared_impl/proxy_lock.h",
165 "shared_impl/resource.cc",
166 "shared_impl/resource.h",
167 "shared_impl/resource_tracker.cc",
168 "shared_impl/resource_tracker.h",
169 "shared_impl/resource_var.cc",
170 "shared_impl/resource_var.h",
171 "shared_impl/scoped_pp_resource.cc",
172 "shared_impl/scoped_pp_resource.h",
173 "shared_impl/scoped_pp_var.cc",
174 "shared_impl/scoped_pp_var.h",
175 "shared_impl/socket_option_data.cc",
176 "shared_impl/socket_option_data.h",
177 "shared_impl/thread_aware_callback.cc",
178 "shared_impl/thread_aware_callback.h",
179 "shared_impl/time_conversion.cc",
180 "shared_impl/time_conversion.h",
181 "shared_impl/tracked_callback.cc",
182 "shared_impl/tracked_callback.h",
183 "shared_impl/url_request_info_data.cc",
184 "shared_impl/url_request_info_data.h",
185 "shared_impl/url_response_info_data.cc",
186 "shared_impl/url_response_info_data.h",
187 "shared_impl/var.cc",
188 "shared_impl/var.h",
189 "shared_impl/var_tracker.cc",
190 "shared_impl/var_tracker.h",
191 "shared_impl/var_value_conversions.cc",
192 "shared_impl/var_value_conversions.h",
193 # TODO(viettrungluu): Split these out; it won"t be used in NaCl.
194 "shared_impl/private/net_address_private_impl.cc",
195 "shared_impl/private/net_address_private_impl_constants.cc",
196 "shared_impl/private/net_address_private_impl.h",
197
198 "shared_impl/private/ppb_x509_certificate_private_shared.cc",
199 "shared_impl/private/ppb_x509_certificate_private_shared.h",
200
201 "thunk/enter.cc",
202 "thunk/enter.h",
203 "thunk/extensions_common_api.h",
204 "thunk/ppb_alarms_dev_thunk.cc",
205 "thunk/ppb_audio_api.h",
206 "thunk/ppb_audio_config_api.h",
207 "thunk/ppb_audio_config_thunk.cc",
208 "thunk/ppb_audio_buffer_api.h",
209 "thunk/ppb_audio_buffer_thunk.cc",
210 "thunk/ppb_audio_input_api.h",
211 "thunk/ppb_audio_thunk.cc",
212 "thunk/ppb_broker_api.h",
213 "thunk/ppb_browser_font_trusted_api.h",
214 "thunk/ppb_buffer_api.h",
215 "thunk/ppb_console_thunk.cc",
216 "thunk/ppb_cursor_control_thunk.cc",
217 "thunk/ppb_device_ref_api.h",
218 "thunk/ppb_device_ref_dev_thunk.cc",
219 "thunk/ppb_ext_crx_file_system_private_thunk.cc",
220 "thunk/ppb_file_chooser_api.h",
221 "thunk/ppb_file_chooser_dev_thunk.cc",
222 "thunk/ppb_file_chooser_trusted_thunk.cc",
223 "thunk/ppb_file_io_api.h",
224 "thunk/ppb_file_io_private_thunk.cc",
225 "thunk/ppb_file_io_thunk.cc",
226 "thunk/ppb_file_mapping_thunk.cc",
227 "thunk/ppb_file_ref_api.h",
228 "thunk/ppb_file_ref_thunk.cc",
229 "thunk/ppb_file_system_api.h",
230 "thunk/ppb_file_system_thunk.cc",
231 "thunk/ppb_find_private_thunk.cc",
232 "thunk/ppb_flash_clipboard_api.h",
233 "thunk/ppb_flash_drm_api.h",
234 "thunk/ppb_flash_font_file_api.h",
235 "thunk/ppb_flash_fullscreen_api.h",
236 "thunk/ppb_flash_functions_api.h",
237 "thunk/ppb_flash_menu_api.h",
238 "thunk/ppb_flash_message_loop_api.h",
239 "thunk/ppb_flash_print_thunk.cc",
240 "thunk/ppb_fullscreen_thunk.cc",
241 "thunk/ppb_gamepad_api.h",
242 "thunk/ppb_gamepad_thunk.cc",
243 "thunk/ppb_graphics_2d_api.h",
244 "thunk/ppb_graphics_2d_thunk.cc",
245 "thunk/ppb_graphics_3d_api.h",
246 "thunk/ppb_graphics_3d_thunk.cc",
247 "thunk/ppb_host_resolver_api.h",
248 "thunk/ppb_host_resolver_thunk.cc",
249 "thunk/ppb_host_resolver_private_api.h",
250 "thunk/ppb_host_resolver_private_thunk.cc",
251 "thunk/ppb_image_data_api.h",
252 "thunk/ppb_image_data_thunk.cc",
253 "thunk/ppb_input_event_api.h",
254 "thunk/ppb_input_event_thunk.cc",
255 "thunk/ppb_instance_api.h",
256 "thunk/ppb_instance_private_thunk.cc",
257 "thunk/ppb_instance_thunk.cc",
258 "thunk/ppb_isolated_file_system_private_api.h",
259 "thunk/ppb_isolated_file_system_private_thunk.cc",
260 "thunk/ppb_media_stream_audio_track_api.h",
261 "thunk/ppb_media_stream_audio_track_thunk.cc",
262 "thunk/ppb_media_stream_video_track_api.h",
263 "thunk/ppb_media_stream_video_track_thunk.cc",
264 "thunk/ppb_message_loop_api.h",
265 "thunk/ppb_messaging_thunk.cc",
266 "thunk/ppb_mouse_cursor_thunk.cc",
267 "thunk/ppb_mouse_lock_thunk.cc",
268 "thunk/ppb_net_address_api.h",
269 "thunk/ppb_net_address_thunk.cc",
270 "thunk/ppb_network_list_api.h",
271 "thunk/ppb_network_list_thunk.cc",
272 "thunk/ppb_network_monitor_api.h",
273 "thunk/ppb_network_monitor_thunk.cc",
274 "thunk/ppb_network_proxy_api.h",
275 "thunk/ppb_network_proxy_thunk.cc",
276 "thunk/ppb_output_protection_api.h",
277 "thunk/ppb_output_protection_private_thunk.cc",
278 "thunk/ppb_pdf_api.h",
279 "thunk/ppb_platform_verification_api.h",
280 "thunk/ppb_printing_api.h",
281 "thunk/ppb_printing_dev_thunk.cc",
282 "thunk/ppb_scrollbar_api.h",
283 "thunk/ppb_talk_private_api.h",
284 "thunk/ppb_tcp_server_socket_private_api.h",
285 "thunk/ppb_tcp_server_socket_private_thunk.cc",
286 "thunk/ppb_tcp_socket_api.h",
287 "thunk/ppb_tcp_socket_private_api.h",
288 "thunk/ppb_tcp_socket_private_thunk.cc",
289 "thunk/ppb_tcp_socket_thunk.cc",
290 "thunk/ppb_text_input_thunk.cc",
291 "thunk/ppb_truetype_font_api.h",
292 "thunk/ppb_truetype_font_singleton_api.h",
293 "thunk/ppb_truetype_font_dev_thunk.cc",
294 "thunk/ppb_udp_socket_api.h",
295 "thunk/ppb_udp_socket_thunk.cc",
296 "thunk/ppb_udp_socket_private_api.h",
297 "thunk/ppb_udp_socket_private_thunk.cc",
298 "thunk/ppb_uma_private_thunk.cc",
299 "thunk/ppb_uma_singleton_api.h",
300 "thunk/ppb_url_loader_api.h",
301 "thunk/ppb_url_loader_thunk.cc",
302 "thunk/ppb_url_loader_trusted_thunk.cc",
303 "thunk/ppb_url_request_info_api.h",
304 "thunk/ppb_url_request_info_thunk.cc",
305 "thunk/ppb_url_response_info_api.h",
306 "thunk/ppb_url_response_info_thunk.cc",
307 "thunk/ppb_var_array_thunk.cc",
308 "thunk/ppb_var_dictionary_thunk.cc",
309 "thunk/ppb_video_capture_api.h",
310 "thunk/ppb_video_decoder_api.h",
311 "thunk/ppb_video_decoder_dev_api.h",
312 "thunk/ppb_video_destination_private_api.h",
313 "thunk/ppb_video_destination_private_thunk.cc",
314 "thunk/ppb_video_frame_api.h",
315 "thunk/ppb_video_frame_thunk.cc",
316 "thunk/ppb_video_source_private_api.h",
317 "thunk/ppb_video_source_private_thunk.cc",
318 "thunk/ppb_view_api.h",
319 "thunk/ppb_view_dev_thunk.cc",
320 "thunk/ppb_view_thunk.cc",
321 "thunk/ppb_websocket_api.h",
322 "thunk/ppb_websocket_thunk.cc",
323 "thunk/ppb_widget_api.h",
324 "thunk/ppb_widget_dev_thunk.cc",
325 "thunk/ppb_x509_certificate_private_api.h",
326 "thunk/ppb_x509_certificate_private_thunk.cc",
327 "thunk/ppb_zoom_dev_thunk.cc",
328 "thunk/thunk.h",
329 ]
330
331 if (!is_nacl) {
332 sources += [
333 "shared_impl/flash_clipboard_format_registry.cc",
334 "shared_impl/flash_clipboard_format_registry.h",
335 "shared_impl/ppb_url_util_shared.cc",
336 "shared_impl/ppb_url_util_shared.h",
337 "shared_impl/ppb_video_decoder_shared.cc",
338 "shared_impl/ppb_video_decoder_shared.h",
339 "shared_impl/private/ppb_char_set_shared.cc",
340 "shared_impl/private/ppb_char_set_shared.h",
341 "thunk/ppb_audio_input_dev_thunk.cc",
342 "thunk/ppb_broker_thunk.cc",
343 "thunk/ppb_browser_font_trusted_thunk.cc",
344 "thunk/ppb_buffer_thunk.cc",
345 "thunk/ppb_content_decryptor_private_thunk.cc",
346 "thunk/ppb_char_set_thunk.cc",
347 "thunk/ppb_flash_clipboard_thunk.cc",
348 "thunk/ppb_flash_device_id_thunk.cc",
349 "thunk/ppb_flash_drm_thunk.cc",
350 "thunk/ppb_flash_file_fileref_thunk.cc",
351 "thunk/ppb_flash_file_modulelocal_thunk.cc",
352 "thunk/ppb_flash_font_file_thunk.cc",
353 "thunk/ppb_flash_fullscreen_thunk.cc",
354 "thunk/ppb_flash_menu_thunk.cc",
355 "thunk/ppb_flash_thunk.cc",
356 "thunk/ppb_flash_message_loop_thunk.cc",
357 "thunk/ppb_gles_chromium_texture_mapping_thunk.cc",
358 "thunk/ppb_pdf_thunk.cc",
359 "thunk/ppb_platform_verification_private_thunk.cc",
360 "thunk/ppb_scrollbar_thunk.cc",
361 "thunk/ppb_talk_private_thunk.cc",
362 "thunk/ppb_url_util_thunk.cc",
363 "thunk/ppb_video_capture_thunk.cc",
364 "thunk/ppb_video_decoder_dev_thunk.cc",
365 ]
366 }
367
368 # We exclude a few more things for nacl_win64, to avoid pulling in more
369 # dependencies.
370 if (is_win && cpu_arch == "x64" && current_toolchain != default_toolchain) {
371 sources -= [
372 "shared_impl/ppb_audio_shared.cc",
373 "shared_impl/ppb_graphics_3d_shared.cc",
374 "shared_impl/ppb_opengles2_shared.cc",
375 "shared_impl/private/ppb_host_resolver_shared.cc",
376 "shared_impl/private/net_address_private_impl.cc",
377 "thunk/ppb_graphics_3d_thunk.cc",
378 "thunk/ppb_host_resolver_private_thunk.cc",
379 "thunk/ppb_tcp_server_socket_private_thunk.cc",
380 "thunk/ppb_tcp_socket_private_thunk.cc",
381 "thunk/ppb_udp_socket_private_thunk.cc",
382 "thunk/ppb_x509_certificate_private_thunk.cc",
383 ]
384 }
385
386 defines = [
387 "PPAPI_SHARED_IMPLEMENTATION",
388 "PPAPI_THUNK_IMPLEMENTATION",
389 ]
390
391 deps = [
392 ":ppapi_c",
393 "//base",
394 "//base:i18n",
395 "//base/third_party/dynamic_annotations",
396 "//gpu/command_buffer/client",
397 "//gpu/command_buffer/client:gles2_implementation",
398 "//gpu/command_buffer/common",
399 "//ipc",
400 #"//media:shared_memory_support", TODO(GYP)
401 "//skia",
402 "//third_party/icu:icuuc",
403 "//ui/surface",
404 "//url",
405 ]
406
407 if (is_mac) {
408 libs = [ "QuartzCore.framework" ]
409 } else if (is_win) {
410 cflags = [ "/wd4267" ] # size_t to int truncation.
411 }
412
413 # TODO(GYP)
414 #deps += [ blink_target ]
415 #forward_dependent_configs_from = [ blink_target ]
416 }
417
418 source_set("ppapi_ipc") {
419 sources = [
420 "proxy/nacl_message_scanner.cc",
421 "proxy/nacl_message_scanner.h",
422 "proxy/ppapi_messages.cc",
423 "proxy/ppapi_messages.h",
424 "proxy/ppapi_param_traits.cc",
425 "proxy/ppapi_param_traits.h",
426 "proxy/raw_var_data.cc",
427 "proxy/raw_var_data.h",
428 "proxy/resource_message_params.cc",
429 "proxy/resource_message_params.h",
430 "proxy/serialized_flash_menu.cc",
431 "proxy/serialized_flash_menu.h",
432 "proxy/serialized_handle.cc",
433 "proxy/serialized_handle.h",
434 "proxy/serialized_structs.cc",
435 "proxy/serialized_structs.h",
436 "proxy/serialized_var.cc",
437 "proxy/serialized_var.h",
438 "proxy/var_serialization_rules.h",
439 ]
440
441 deps = [
442 ":ppapi_c",
443 ":ppapi_shared",
444 "//base",
445 "//gpu/ipc",
446 "//ipc",
447 "//skia",
448 ]
449
450 if (is_nacl) {
451 sources -= [ "proxy/serialized_flash_menu.cc" ]
452 }
453 }
454
455 component("ppapi_proxy") {
456 sources = [
457 # Take some standalone files from the C++ wrapper allowing us to more
458 # easily make async callbacks in the proxy. We can"t depend on the
459 # full C++ wrappers at this layer since the C++ wrappers expect
460 # symbols defining the globals for "being a plugin" which we are not.
461 # These callback files are standalone.
462 "cpp/completion_callback.h",
463 "utility/completion_callback_factory.h",
464
465 "proxy/audio_buffer_resource.cc",
466 "proxy/audio_buffer_resource.h",
467 "proxy/broker_resource.cc",
468 "proxy/broker_resource.h",
469 "proxy/connection.h",
470 "proxy/dispatcher.cc",
471 "proxy/dispatcher.h",
472 "proxy/enter_proxy.h",
473 "proxy/error_conversion.cc",
474 "proxy/error_conversion.h",
475 "proxy/extensions_common_resource.cc",
476 "proxy/extensions_common_resource.h",
477 "proxy/file_chooser_resource.cc",
478 "proxy/file_chooser_resource.h",
479 "proxy/file_io_resource.cc",
480 "proxy/file_io_resource.h",
481 "proxy/file_mapping_resource.cc",
482 "proxy/file_mapping_resource.h",
483 "proxy/file_mapping_resource_posix.cc",
484 "proxy/file_mapping_resource_win.cc",
485 "proxy/file_ref_resource.cc",
486 "proxy/file_ref_resource.h",
487 "proxy/file_system_resource.cc",
488 "proxy/file_system_resource.h",
489 "proxy/gamepad_resource.cc",
490 "proxy/gamepad_resource.h",
491 "proxy/graphics_2d_resource.cc",
492 "proxy/graphics_2d_resource.h",
493 "proxy/host_resolver_private_resource.cc",
494 "proxy/host_resolver_private_resource.h",
495 "proxy/host_resolver_resource.cc",
496 "proxy/host_resolver_resource.h",
497 "proxy/host_resolver_resource_base.cc",
498 "proxy/host_resolver_resource_base.h",
499 "proxy/interface_list.cc",
500 "proxy/interface_list.h",
501 "proxy/interface_proxy.cc",
502 "proxy/interface_proxy.h",
503 "proxy/isolated_file_system_private_resource.cc",
504 "proxy/isolated_file_system_private_resource.h",
505 "proxy/locking_resource_releaser.h",
506 "proxy/media_stream_audio_track_resource.cc",
507 "proxy/media_stream_audio_track_resource.h",
508 "proxy/media_stream_track_resource_base.cc",
509 "proxy/media_stream_track_resource_base.h",
510 "proxy/media_stream_video_track_resource.cc",
511 "proxy/media_stream_video_track_resource.h",
512 "proxy/net_address_resource.cc",
513 "proxy/net_address_resource.h",
514 "proxy/network_list_resource.cc",
515 "proxy/network_list_resource.h",
516 "proxy/network_monitor_resource.cc",
517 "proxy/network_monitor_resource.h",
518 "proxy/network_proxy_resource.cc",
519 "proxy/network_proxy_resource.h",
520 "proxy/output_protection_resource.cc",
521 "proxy/output_protection_resource.h",
522 "proxy/plugin_array_buffer_var.cc",
523 "proxy/plugin_array_buffer_var.h",
524 "proxy/plugin_dispatcher.cc",
525 "proxy/plugin_dispatcher.h",
526 "proxy/plugin_globals.cc",
527 "proxy/plugin_globals.h",
528 "proxy/plugin_message_filter.cc",
529 "proxy/plugin_message_filter.h",
530 "proxy/plugin_resource.cc",
531 "proxy/plugin_resource.h",
532 "proxy/plugin_resource_tracker.cc",
533 "proxy/plugin_resource_tracker.h",
534 "proxy/plugin_resource_var.cc",
535 "proxy/plugin_resource_var.h",
536 "proxy/plugin_var_serialization_rules.cc",
537 "proxy/plugin_var_serialization_rules.h",
538 "proxy/plugin_var_tracker.cc",
539 "proxy/plugin_var_tracker.h",
540 "proxy/ppapi_command_buffer_proxy.cc",
541 "proxy/ppapi_command_buffer_proxy.h",
542 "proxy/ppapi_messages.h",
543 "proxy/ppapi_message_utils.h",
544 "proxy/ppb_audio_proxy.cc",
545 "proxy/ppb_audio_proxy.h",
546 "proxy/ppb_core_proxy.cc",
547 "proxy/ppb_core_proxy.h",
548 "proxy/ppb_graphics_3d_proxy.cc",
549 "proxy/ppb_graphics_3d_proxy.h",
550 "proxy/ppb_image_data_proxy.cc",
551 "proxy/ppb_image_data_proxy.h",
552 "proxy/ppb_instance_proxy.cc",
553 "proxy/ppb_instance_proxy.h",
554 "proxy/ppb_message_loop_proxy.cc",
555 "proxy/ppb_message_loop_proxy.h",
556 "proxy/ppb_testing_proxy.cc",
557 "proxy/ppb_testing_proxy.h",
558 "proxy/ppb_var_deprecated_proxy.cc",
559 "proxy/ppb_var_deprecated_proxy.h",
560 "proxy/ppb_x509_certificate_private_proxy.cc",
561 "proxy/ppb_x509_certificate_private_proxy.h",
562 "proxy/ppp_class_proxy.cc",
563 "proxy/ppp_class_proxy.h",
564 "proxy/ppp_find_proxy.cc",
565 "proxy/ppp_find_proxy.h",
566 "proxy/ppp_graphics_3d_proxy.cc",
567 "proxy/ppp_graphics_3d_proxy.h",
568 "proxy/ppp_input_event_proxy.cc",
569 "proxy/ppp_input_event_proxy.h",
570 "proxy/ppp_instance_proxy.cc",
571 "proxy/ppp_instance_proxy.h",
572 "proxy/ppp_messaging_proxy.cc",
573 "proxy/ppp_messaging_proxy.h",
574 "proxy/ppp_mouse_lock_proxy.cc",
575 "proxy/ppp_mouse_lock_proxy.h",
576 "proxy/ppp_pdf_proxy.cc",
577 "proxy/ppp_pdf_proxy.h",
578 "proxy/ppp_printing_proxy.cc",
579 "proxy/ppp_printing_proxy.h",
580 "proxy/ppp_text_input_proxy.cc",
581 "proxy/ppp_text_input_proxy.h",
582 "proxy/printing_resource.cc",
583 "proxy/printing_resource.h",
584 "proxy/proxy_array_output.cc",
585 "proxy/proxy_array_output.h",
586 "proxy/proxy_channel.cc",
587 "proxy/proxy_channel.h",
588 "proxy/proxy_completion_callback_factory.h",
589 "proxy/proxy_module.cc",
590 "proxy/proxy_module.h",
591 "proxy/proxy_object_var.cc",
592 "proxy/proxy_object_var.h",
593 "proxy/resource_creation_proxy.cc",
594 "proxy/resource_creation_proxy.h",
595 "proxy/resource_reply_thread_registrar.cc",
596 "proxy/resource_reply_thread_registrar.h",
597 "proxy/tcp_server_socket_private_resource.cc",
598 "proxy/tcp_server_socket_private_resource.h",
599 "proxy/tcp_socket_private_resource.cc",
600 "proxy/tcp_socket_private_resource.h",
601 "proxy/tcp_socket_resource.cc",
602 "proxy/tcp_socket_resource.h",
603 "proxy/tcp_socket_resource_base.cc",
604 "proxy/tcp_socket_resource_base.h",
605 "proxy/truetype_font_resource.cc",
606 "proxy/truetype_font_resource.h",
607 "proxy/truetype_font_singleton_resource.cc",
608 "proxy/truetype_font_singleton_resource.h",
609 "proxy/udp_socket_private_resource.cc",
610 "proxy/udp_socket_private_resource.h",
611 "proxy/udp_socket_resource.cc",
612 "proxy/udp_socket_resource.h",
613 "proxy/udp_socket_resource_base.cc",
614 "proxy/udp_socket_resource_base.h",
615 "proxy/uma_private_resource.cc",
616 "proxy/uma_private_resource.h",
617 "proxy/url_loader_resource.cc",
618 "proxy/url_loader_resource.h",
619 "proxy/url_request_info_resource.cc",
620 "proxy/url_request_info_resource.h",
621 "proxy/url_response_info_resource.cc",
622 "proxy/url_response_info_resource.h",
623 "proxy/var_serialization_rules.h",
624 "proxy/video_destination_resource.cc",
625 "proxy/video_destination_resource.h",
626 "proxy/video_frame_resource.cc",
627 "proxy/video_frame_resource.h",
628 "proxy/video_source_resource.cc",
629 "proxy/video_source_resource.h",
630 "proxy/websocket_resource.cc",
631 "proxy/websocket_resource.h",
632 ]
633
634 if (is_nacl) {
635 sources += [
636 "nacl_irt/irt_ppapi.cc",
637 "nacl_irt/irt_ppapi.h",
638 "nacl_irt/irt_start.cc",
639 "nacl_irt/manifest_service.cc",
640 "nacl_irt/manifest_service.h",
641 "nacl_irt/plugin_main.cc",
642 "nacl_irt/plugin_main.h",
643 "nacl_irt/plugin_startup.cc",
644 "nacl_irt/plugin_startup.h",
645 "nacl_irt/ppapi_dispatcher.cc",
646 "nacl_irt/ppapi_dispatcher.h",
647 ]
648 } else {
649 sources += [
650 "proxy/audio_input_resource.cc",
651 "proxy/audio_input_resource.h",
652 "proxy/broker_dispatcher.cc",
653 "proxy/broker_dispatcher.h",
654 "proxy/browser_font_singleton_resource.cc",
655 "proxy/browser_font_singleton_resource.h",
656 "proxy/device_enumeration_resource_helper.cc",
657 "proxy/device_enumeration_resource_helper.h",
658 "proxy/flash_clipboard_resource.cc",
659 "proxy/flash_clipboard_resource.h",
660 "proxy/flash_drm_resource.cc",
661 "proxy/flash_drm_resource.h",
662 "proxy/flash_file_resource.cc",
663 "proxy/flash_file_resource.h",
664 "proxy/flash_font_file_resource.cc",
665 "proxy/flash_font_file_resource.h",
666 "proxy/flash_fullscreen_resource.cc",
667 "proxy/flash_fullscreen_resource.h",
668 "proxy/flash_menu_resource.cc",
669 "proxy/flash_menu_resource.h",
670 "proxy/flash_resource.cc",
671 "proxy/flash_resource.h",
672 "proxy/host_dispatcher.cc",
673 "proxy/host_dispatcher.h",
674 "proxy/host_var_serialization_rules.cc",
675 "proxy/host_var_serialization_rules.h",
676 "proxy/pdf_resource.cc",
677 "proxy/pdf_resource.h",
678 "proxy/platform_verification_private_resource.cc",
679 "proxy/platform_verification_private_resource.h",
680 "proxy/ppb_broker_proxy.cc",
681 "proxy/ppb_broker_proxy.h",
682 "proxy/ppb_buffer_proxy.cc",
683 "proxy/ppb_buffer_proxy.h",
684 "proxy/ppb_flash_message_loop_proxy.cc",
685 "proxy/ppb_flash_message_loop_proxy.h",
686 "proxy/ppb_video_decoder_proxy.cc",
687 "proxy/ppb_video_decoder_proxy.h",
688 "proxy/ppp_content_decryptor_private_proxy.cc",
689 "proxy/ppp_content_decryptor_private_proxy.h",
690 "proxy/ppp_instance_private_proxy.cc",
691 "proxy/ppp_instance_private_proxy.h",
692 "proxy/ppp_video_decoder_proxy.cc",
693 "proxy/ppp_video_decoder_proxy.h",
694 "proxy/talk_resource.cc",
695 "proxy/talk_resource.h",
696 "proxy/video_capture_resource.cc",
697 "proxy/video_capture_resource.h",
698 ]
699 }
700
701 defines = [ "PPAPI_PROXY_IMPLEMENTATION" ]
702
703 deps = [
704 ":ppapi_c",
705 ":ppapi_shared",
706 ":ppapi_ipc",
707 "//base",
708 "//base/third_party/dynamic_annotations",
709 "//gpu/command_buffer/client:gles2_implementation",
710 "//gpu/ipc",
711 #"//media:shared_memory_support", # TODO(GYP)
712 "//ipc",
713 "//skia",
714 "//third_party/icu",
715 "//ui/surface",
716 #blink_target, TODO(GYP)
717 ]
718
719 if (is_win) {
720 cflags = [ "/wd4267" ] # size_t to int truncation.
721 }
722 }
723
724 # TODO(GYP) other targets from ppapi_tests.gyp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698