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