remove redundant DCHECK that a size_t variable >= 0
[chromium-blink-merge.git] / ppapi / ppapi_proxy.gypi
blob838bbc6d562684b0c6054977c2a04fbcea485898
1 # Copyright (c) 2012 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.
6   'target_defaults': {
7     'variables': {
8       'ppapi_proxy_target': 0,
9     },
10     'target_conditions': [
11       # This part is shared between the targets defined below.
12       ['ppapi_proxy_target==1', {
13         'sources': [
14           # Take some standalone files from the C++ wrapper allowing us to more
15           # easily make async callbacks in the proxy. We can't depend on the
16           # full C++ wrappers at this layer since the C++ wrappers expect
17           # symbols defining the globals for "being a plugin" which we are not.
18           # These callback files are standalone.
19           'cpp/completion_callback.h',
20           'utility/completion_callback_factory.h',
22           'proxy/audio_input_resource.cc',
23           'proxy/audio_input_resource.h',
24           'proxy/broker_dispatcher.cc',
25           'proxy/broker_dispatcher.h',
26           'proxy/broker_resource.cc',
27           'proxy/broker_resource.h',
28           'proxy/browser_font_resource_trusted.cc',
29           'proxy/browser_font_resource_trusted.h',
30           'proxy/browser_font_singleton_resource.cc',
31           'proxy/browser_font_singleton_resource.h',
32           'proxy/connection.h',
33           'proxy/device_enumeration_resource_helper.cc',
34           'proxy/device_enumeration_resource_helper.h',
35           'proxy/directory_reader_resource.cc',
36           'proxy/directory_reader_resource.h',
37           'proxy/dispatcher.cc',
38           'proxy/dispatcher.h',
39           'proxy/enter_proxy.h',
40           'proxy/graphics_2d_resource.cc',
41           'proxy/graphics_2d_resource.h',
42           'proxy/file_chooser_resource.cc',
43           'proxy/file_chooser_resource.h',
44           'proxy/flash_clipboard_resource.cc',
45           'proxy/flash_clipboard_resource.h',
46           'proxy/flash_device_id_resource.cc',
47           'proxy/flash_device_id_resource.h',
48           'proxy/flash_file_resource.cc',
49           'proxy/flash_file_resource.h',
50           'proxy/flash_font_file_resource.cc',
51           'proxy/flash_font_file_resource.h',
52           'proxy/flash_fullscreen_resource.cc',
53           'proxy/flash_fullscreen_resource.h',
54           'proxy/flash_menu_resource.cc',
55           'proxy/flash_menu_resource.h',
56           'proxy/flash_resource.cc',
57           'proxy/flash_resource.h',
58           'proxy/file_io_resource.cc',
59           'proxy/file_io_resource.h',
60           'proxy/gamepad_resource.cc',
61           'proxy/gamepad_resource.h',
62           'proxy/host_dispatcher.cc',
63           'proxy/host_dispatcher.h',
64           'proxy/host_resolver_private_resource.cc',
65           'proxy/host_resolver_private_resource.h',
66           'proxy/host_var_serialization_rules.cc',
67           'proxy/host_var_serialization_rules.h',
68           'proxy/interface_list.cc',
69           'proxy/interface_list.h',
70           'proxy/interface_proxy.cc',
71           'proxy/interface_proxy.h',
72           'proxy/plugin_array_buffer_var.cc',
73           'proxy/plugin_array_buffer_var.h',
74           'proxy/plugin_dispatcher.cc',
75           'proxy/plugin_dispatcher.h',
76           'proxy/plugin_globals.cc',
77           'proxy/plugin_globals.h',
78           'proxy/plugin_main_nacl.cc',
79           'proxy/plugin_message_filter.cc',
80           'proxy/plugin_message_filter.h',
81           'proxy/plugin_resource.cc',
82           'proxy/plugin_resource.h',
83           'proxy/plugin_resource_tracker.cc',
84           'proxy/plugin_resource_tracker.h',
85           'proxy/plugin_var_serialization_rules.cc',
86           'proxy/plugin_var_serialization_rules.h',
87           'proxy/plugin_var_tracker.cc',
88           'proxy/plugin_var_tracker.h',
89           'proxy/ppapi_command_buffer_proxy.h',
90           'proxy/ppapi_command_buffer_proxy.cc',
91           'proxy/ppapi_messages.h',
92           'proxy/ppapi_message_utils.h',
93           'proxy/ppb_audio_proxy.cc',
94           'proxy/ppb_audio_proxy.h',
95           'proxy/ppb_broker_proxy.cc',
96           'proxy/ppb_broker_proxy.h',
97           'proxy/ppb_buffer_proxy.cc',
98           'proxy/ppb_buffer_proxy.h',
99           'proxy/ppb_core_proxy.cc',
100           'proxy/ppb_core_proxy.h',
101           'proxy/ppb_file_ref_proxy.cc',
102           'proxy/ppb_file_ref_proxy.h',
103           'proxy/ppb_file_system_proxy.cc',
104           'proxy/ppb_file_system_proxy.h',
105           'proxy/ppb_flash_message_loop_proxy.cc',
106           'proxy/ppb_flash_message_loop_proxy.h',
107           'proxy/ppb_graphics_3d_proxy.cc',
108           'proxy/ppb_graphics_3d_proxy.h',
109           'proxy/ppb_image_data_proxy.cc',
110           'proxy/ppb_image_data_proxy.h',
111           'proxy/ppb_instance_proxy.cc',
112           'proxy/ppb_instance_proxy.h',
113           'proxy/ppb_message_loop_proxy.cc',
114           'proxy/ppb_message_loop_proxy.h',
115           'proxy/ppb_network_monitor_private_proxy.cc',
116           'proxy/ppb_network_monitor_private_proxy.h',
117           'proxy/ppb_tcp_server_socket_private_proxy.cc',
118           'proxy/ppb_tcp_server_socket_private_proxy.h',
119           'proxy/ppb_tcp_socket_private_proxy.cc',
120           'proxy/ppb_tcp_socket_private_proxy.h',
121           'proxy/ppb_testing_proxy.cc',
122           'proxy/ppb_testing_proxy.h',
123           'proxy/ppb_url_loader_proxy.cc',
124           'proxy/ppb_url_loader_proxy.h',
125           'proxy/ppb_var_deprecated_proxy.cc',
126           'proxy/ppb_var_deprecated_proxy.h',
127           'proxy/ppb_video_decoder_proxy.cc',
128           'proxy/ppb_video_decoder_proxy.h',
129           'proxy/ppb_x509_certificate_private_proxy.cc',
130           'proxy/ppb_x509_certificate_private_proxy.h',
131           'proxy/ppp_class_proxy.cc',
132           'proxy/ppp_class_proxy.h',
133           'proxy/ppp_content_decryptor_private_proxy.cc',
134           'proxy/ppp_content_decryptor_private_proxy.h',
135           'proxy/ppp_graphics_3d_proxy.cc',
136           'proxy/ppp_graphics_3d_proxy.h',
137           'proxy/ppp_input_event_proxy.cc',
138           'proxy/ppp_input_event_proxy.h',
139           'proxy/ppp_instance_private_proxy.cc',
140           'proxy/ppp_instance_private_proxy.h',
141           'proxy/ppp_instance_proxy.cc',
142           'proxy/ppp_instance_proxy.h',
143           'proxy/ppp_messaging_proxy.cc',
144           'proxy/ppp_messaging_proxy.h',
145           'proxy/ppp_mouse_lock_proxy.cc',
146           'proxy/ppp_mouse_lock_proxy.h',
147           'proxy/ppp_printing_proxy.cc',
148           'proxy/ppp_printing_proxy.h',
149           'proxy/ppp_text_input_proxy.cc',
150           'proxy/ppp_text_input_proxy.h',
151           'proxy/ppp_video_decoder_proxy.cc',
152           'proxy/ppp_video_decoder_proxy.h',
153           'proxy/printing_resource.cc',
154           'proxy/printing_resource.h',
155           'proxy/proxy_array_output.cc',
156           'proxy/proxy_array_output.h',
157           'proxy/proxy_channel.cc',
158           'proxy/proxy_channel.h',
159           'proxy/proxy_completion_callback_factory.h',
160           'proxy/proxy_module.cc',
161           'proxy/proxy_module.h',
162           'proxy/proxy_object_var.cc',
163           'proxy/proxy_object_var.h',
164           'proxy/resource_creation_proxy.cc',
165           'proxy/resource_creation_proxy.h',
166           'proxy/talk_resource.cc',
167           'proxy/talk_resource.h',
168           'proxy/truetype_font_resource.cc',
169           'proxy/truetype_font_resource.h',
170           'proxy/truetype_font_singleton_resource.cc',
171           'proxy/truetype_font_singleton_resource.h',
172           'proxy/udp_socket_private_resource.cc',
173           'proxy/udp_socket_private_resource.h',
174           'proxy/url_request_info_resource.cc',
175           'proxy/url_request_info_resource.h',
176           'proxy/url_response_info_resource.cc',
177           'proxy/url_response_info_resource.h',
178           'proxy/var_serialization_rules.h',
179           'proxy/video_capture_resource.cc',
180           'proxy/video_capture_resource.h',
181           'proxy/websocket_resource.cc',
182           'proxy/websocket_resource.h',
183         ],
184         'defines': [
185           'PPAPI_PROXY_IMPLEMENTATION',
186         ],
187         'include_dirs': [
188           '..',
189         ],
190         'target_conditions': [
191           ['>(nacl_untrusted_build)==1', {
192             'sources!': [
193               'proxy/audio_input_resource.cc',
194               'proxy/broker_dispatcher.cc',
195               'proxy/browser_font_resource_trusted.cc',
196               'proxy/browser_font_singleton_resource.cc',
197               'proxy/device_enumeration_resource_helper.cc',
198               'proxy/flash_clipboard_resource.cc',
199               'proxy/flash_device_id_resource.cc',
200               'proxy/flash_file_resource.cc',
201               'proxy/flash_font_file_resource.cc',
202               'proxy/flash_fullscreen_resource.cc',
203               'proxy/flash_menu_resource.cc',
204               'proxy/flash_resource.cc',
205               'proxy/host_dispatcher.cc',
206               'proxy/host_var_serialization_rules.cc',
207               'proxy/ppb_broker_proxy.cc',
208               'proxy/ppb_buffer_proxy.cc',
209               'proxy/ppb_flash_message_loop_proxy.cc',
210               'proxy/ppb_flash_proxy.cc',
211               'proxy/ppb_pdf_proxy.cc',
212               'proxy/ppb_talk_private_proxy.cc',
213               'proxy/ppb_video_capture_proxy.cc',
214               'proxy/ppb_video_decoder_proxy.cc',
215               'proxy/ppp_content_decryptor_private_proxy.cc',
216               'proxy/ppp_instance_private_proxy.cc',
217               'proxy/ppp_video_decoder_proxy.cc',
218               'proxy/serialized_flash_menu.cc',
219               'proxy/talk_resource.cc',
220               'proxy/video_capture_resource.cc',
221             ],
222           }],
223         ],
224       }],
225     ],
226   },