Update .DEPS.git
[chromium-blink-merge.git] / ppapi / ppapi_proxy_untrusted.gyp
blob74785d232b1b84a30356fc71b8e5ed02d5dcfea3
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.
5 # This GYP file defines untrusted (NaCl) targets.  All targets in this
6 # file should be conditionally depended upon via 'disable_nacl!=1' to avoid
7 # requiring NaCl sources for building.
10   'includes': [
11     '../native_client/build/common.gypi',
12   ],
13   'targets': [
14     {
15       'target_name': 'base_untrusted',
16       'type': 'none',
17       'dependencies': [
18         '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
19         '<(DEPTH)/native_client/src/untrusted/pthread/pthread.gyp:pthread_lib',
20         '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib',
21       ],
22       'variables': {
23         'nlib_target': 'libbase_untrusted.a',
24         'build_glibc': 0,
25         'build_newlib': 1,
26         'include_dirs': [
27           '..',
28         ],
29         'sources': [
30           '../base/at_exit.cc',
31           '../base/atomicops_internals_x86_gcc.cc',
32 #          '../base/base_paths.cc',
33 #          '../base/base_paths_posix.cc',
34           '../base/bind_helpers.cc',
35           '../base/build_time.cc',
36           '../base/callback_internal.cc',
37 #          '../base/command_line.cc',
38 #          '../base/cpu.cc',
39           '../base/debug/alias.cc',
40           '../base/debug/debugger_posix.cc',
41 #          '../base/debug/stack_trace.cc',
42           '../base/debug/trace_event.cc',
43           '../base/debug/trace_event_impl.cc',
44 #          '../base/environment.cc',
45           '../base/file_path.cc',
46 #          '../base/file_util.cc',
47 #          '../base/file_util_posix.cc',
48 #          '../base/file_util_proxy.cc',
49           '../base/files/file_path_watcher.cc',
50 #          '../base/files/file_path_watcher_kqueue.cc',
51           '../base/files/file_path_watcher_stub.cc',
52 #          '../base/global_descriptors_posix.cc',
53           '../base/json/json_reader.cc',
54           '../base/json/json_string_value_serializer.cc',
55           '../base/json/json_writer.cc',
56           '../base/json/string_escape.cc',
57           '../base/lazy_instance.cc',
58           '../base/location.cc',
59           '../base/logging.cc',
60           '../base/memory/ref_counted.cc',
61           '../base/memory/ref_counted_memory.cc',
62           '../base/memory/singleton.cc',
63           '../base/memory/weak_ptr.cc',
64           '../base/message_loop.cc',
65           '../base/message_loop_proxy.cc',
66           '../base/message_loop_proxy_impl.cc',
67           '../base/message_pump.cc',
68           '../base/message_pump_default.cc',
69           '../base/metrics/field_trial.cc',
70           '../base/metrics/histogram.cc',
71           '../base/metrics/stats_counters.cc',
72           '../base/metrics/stats_table.cc',
73 #          '../base/native_library_posix.cc',
74           '../base/os_compat_nacl.cc',
75 #          '../base/path_service.cc',
76           '../base/pending_task.cc',
77           '../base/pickle.cc',
78           '../base/platform_file.cc',
79 #          '../base/platform_file_posix.cc',
80 #          '../base/process_posix.cc',
81 #          '../base/process_util.cc',
82 #          '../base/process_util_posix.cc',
83           '../base/profiler/alternate_timer.cc',
84           '../base/profiler/scoped_profile.cc',
85           '../base/profiler/tracked_time.cc',
86           '../base/property_bag.cc',
87           '../base/rand_util.cc',
88           '../base/rand_util_nacl.cc',
89           '../base/safe_strerror_posix.cc',
90 #          '../base/scoped_native_library.cc',
91 #          '../base/scoped_temp_dir.cc',
92           '../base/sha1_portable.cc',
93           '../base/shared_memory_nacl.cc',
94           '../base/string_number_conversions.cc',
95           '../base/string_piece.cc',
96           '../base/string_split.cc',
97           '../base/string_util.cc',
98           '../base/string16.cc',
99           '../base/stringprintf.cc',
100           '../base/sync_socket_nacl.cc',
101           '../base/synchronization/cancellation_flag.cc',
102           '../base/synchronization/condition_variable_posix.cc',
103           '../base/synchronization/lock.cc',
104           '../base/synchronization/lock_impl_posix.cc',
105           '../base/synchronization/waitable_event_posix.cc',
106           '../base/synchronization/waitable_event_watcher_posix.cc',
107           '../base/system_monitor/system_monitor.cc',
108           '../base/system_monitor/system_monitor_posix.cc',
109 #          '../base/sys_info_posix.cc',
110           '../base/sys_string_conversions_posix.cc',
111           '../base/task_runner.cc',
112           '../base/threading/non_thread_safe_impl.cc',
113           '../base/threading/platform_thread_posix.cc',
114           '../base/threading/post_task_and_reply_impl.cc',
115 #          '../base/threading/sequenced_worker_pool.cc',
116           '../base/threading/simple_thread.cc',
117           '../base/threading/thread.cc',
118           '../base/threading/thread_checker_impl.cc',
119           '../base/threading/thread_collision_warner.cc',
120           '../base/threading/thread_local_posix.cc',
121           '../base/threading/thread_local_storage_posix.cc',
122           '../base/threading/thread_restrictions.cc',
123           '../base/threading/watchdog.cc',
124           '../base/threading/worker_pool.cc',
125           '../base/threading/worker_pool_posix.cc',
126           '../base/third_party/dmg_fp/g_fmt.cc',
127           '../base/third_party/dmg_fp/dtoa_wrapper.cc',
128           '../base/third_party/dynamic_annotations/dynamic_annotations.c',
129           '../base/third_party/icu/icu_utf.cc',
130           '../base/third_party/nspr/prtime.cc',
131           '../base/time_posix.cc',
132           '../base/time.cc',
133           '../base/timer.cc',
134           '../base/tracked_objects.cc',
135           '../base/tracking_info.cc',
136           '../base/utf_offset_string_conversions.cc',
137           '../base/utf_string_conversion_utils.cc',
138           '../base/utf_string_conversions.cc',
139           '../base/values.cc',
140           '../base/value_conversions.cc',
141           '../base/version.cc',
142           '../base/vlog.cc',
143 #          '../base/nix/mime_util_xdg.cc',
144 #          '../base/nix/xdg_util.cc',
145         ],
146         'compile_flags': [
147           '-pthread',
148         ],
149       },
150     },
151     {
152       'target_name': 'gpu_untrusted',
153       'type': 'none',
154       'dependencies': [
155         'base_untrusted',
156       ],
157       'variables': {
158         'nlib_target': 'libgpu_untrusted.a',
159         'build_glibc': 0,
160         'build_newlib': 1,
161         'include_dirs': [
162           '../gpu/command_buffer',
163           '..',
164           '../third_party/khronos',
165         ],
166         'sources': [
167           '../gpu/command_buffer/client/gles2_implementation.cc',
168           '../gpu/command_buffer/client/program_info_manager.cc',
169           '../gpu/command_buffer/common/gles2_cmd_utils.cc',
170           '../gpu/command_buffer/common/logging.cc',
171           '../gpu/command_buffer/common/cmd_buffer_common.cc',
172           '../gpu/command_buffer/common/gles2_cmd_format.cc',
173           '../gpu/command_buffer/common/id_allocator.cc',
174           '../gpu/command_buffer/client/cmd_buffer_helper.cc',
175           '../gpu/command_buffer/client/fenced_allocator.cc',
176           '../gpu/command_buffer/client/mapped_memory.cc',
177           '../gpu/command_buffer/client/ring_buffer.cc',
178           '../gpu/command_buffer/client/transfer_buffer.cc',
179           '../gpu/command_buffer/client/gles2_cmd_helper.cc',
180           '../gpu/ipc/gpu_command_buffer_traits.cc',
181         ],
182         'compile_flags': [
183           '-pthread',
184         ],
185         'link_flags': [
186           '-pthread',
187           '-lbase_untrusted',
188         ],
189       },
190     },
191     {
192       'target_name': 'ipc_untrusted',
193       'type': 'none',
194       'dependencies': [
195         'base_untrusted',
196       ],
197       'variables': {
198         'nlib_target': 'libipc_untrusted.a',
199         'build_glibc': 0,
200         'build_newlib': 1,
201         'include_dirs': [
202           '..',
203         ],
204         'sources': [
205           '../ipc/file_descriptor_set_posix.cc',
206 #          '../ipc/ipc_channel_posix.cc',
207           '../ipc/ipc_channel_proxy.cc',
208           '../ipc/ipc_logging.cc',
209           '../ipc/ipc_message.cc',
210           '../ipc/ipc_message_utils.cc',
211           '../ipc/ipc_sync_channel.cc',
212           '../ipc/ipc_sync_message.cc',
213           '../ipc/ipc_sync_message_filter.cc',
214         ],
215         'compile_flags': [
216           '-pthread',
217         ],
218         'link_flags': [
219           '-pthread',
220           '-lbase_untrusted',
221         ],
222       },
223     },
224     {
225       'target_name': 'ppapi_proxy_untrusted',
226       'type': 'none',
227       'dependencies': [
228         'base_untrusted',
229         'gpu_untrusted',
230         'ipc_untrusted',
231       ],
232       'variables': {
233         'nexe_target': 'libppapi_proxy_untrusted.nexe',
234         'build_glibc': 0,
235         'build_newlib': 1,
236         'include_dirs': [
237           '..',
238           '../third_party/khronos',
239           '../third_party/skia/include/config',
240         ],
241         'sources': [
242           'shared_impl/callback_tracker.cc',
243           'shared_impl/file_type_conversion.cc',
244           'shared_impl/function_group_base.cc',
245           'shared_impl/id_assignment.cc',
246           'shared_impl/platform_file.cc',
247           'shared_impl/ppapi_globals.cc',
248           'shared_impl/ppapi_preferences.cc',
249           'shared_impl/ppb_audio_config_shared.cc',
250           'shared_impl/ppb_audio_input_shared.cc',
251           'shared_impl/ppb_audio_shared.cc',
252           'shared_impl/ppb_crypto_shared.cc',
253           'shared_impl/ppb_device_ref_shared.cc',
254           'shared_impl/ppb_file_io_shared.cc',
255           'shared_impl/ppb_file_ref_shared.cc',
256 #          'shared_impl/ppb_graphics_3d_shared.cc',
257           'shared_impl/ppb_image_data_shared.cc',
258           'shared_impl/ppb_input_event_shared.cc',
259           'shared_impl/ppb_instance_shared.cc',
260           'shared_impl/ppb_memory_shared.cc',
261 #          'shared_impl/ppb_opengles2_shared.cc',
262           'shared_impl/ppb_resource_array_shared.cc',
263           'shared_impl/ppb_url_request_info_shared.cc',
264 #          'shared_impl/ppb_url_util_shared.cc',
265           'shared_impl/ppb_var_shared.cc',
266 #          'shared_impl/ppb_video_decoder_shared.cc',
267 #          'shared_impl/ppb_video_capture_shared.cc',
268           'shared_impl/ppb_view_shared.cc',
269           'shared_impl/ppp_instance_combined.cc',
270           'shared_impl/proxy_lock.cc',
271           'shared_impl/resource.cc',
272           'shared_impl/resource_tracker.cc',
273           'shared_impl/scoped_pp_resource.cc',
274           'shared_impl/time_conversion.cc',
275           'shared_impl/tracked_callback.cc',
276           'shared_impl/var.cc',
277           'shared_impl/var_tracker.cc',
279           'thunk/enter.cc',
280           'thunk/ppb_audio_config_thunk.cc',
281           'thunk/ppb_audio_input_thunk.cc',
282           'thunk/ppb_audio_input_trusted_thunk.cc',
283           'thunk/ppb_audio_thunk.cc',
284           'thunk/ppb_audio_trusted_thunk.cc',
285           'thunk/ppb_broker_thunk.cc',
286 #          'thunk/ppb_browser_font_trusted_thunk.cc',
287           'thunk/ppb_buffer_thunk.cc',
288           'thunk/ppb_buffer_trusted_thunk.cc',
289 #          'thunk/ppb_char_set_thunk.cc',
290           'thunk/ppb_console_thunk.cc',
291           'thunk/ppb_cursor_control_thunk.cc',
292           'thunk/ppb_device_ref_thunk.cc',
293           'thunk/ppb_directory_reader_thunk.cc',
294           'thunk/ppb_input_event_thunk.cc',
295           'thunk/ppb_file_chooser_thunk.cc',
296           'thunk/ppb_file_io_thunk.cc',
297           'thunk/ppb_file_io_trusted_thunk.cc',
298           'thunk/ppb_file_ref_thunk.cc',
299           'thunk/ppb_file_system_thunk.cc',
300           'thunk/ppb_find_thunk.cc',
301 #          'thunk/ppb_flash_clipboard_thunk.cc',
302 #          'thunk/ppb_flash_fullscreen_thunk.cc',
303 #          'thunk/ppb_flash_menu_thunk.cc',
304 #          'thunk/ppb_flash_message_loop_thunk.cc',
305           'thunk/ppb_fullscreen_thunk.cc',
306           'thunk/ppb_gamepad_thunk.cc',
307 #          'thunk/ppb_gles_chromium_texture_mapping_thunk.cc',
308 #          'thunk/ppb_graphics_2d_thunk.cc',
309 #          'thunk/ppb_graphics_3d_thunk.cc',
310 #          'thunk/ppb_graphics_3d_trusted_thunk.cc',
311 #          'thunk/ppb_host_resolver_private_thunk.cc',
312 #          'thunk/ppb_image_data_thunk.cc',
313 #          'thunk/ppb_image_data_trusted_thunk.cc',
314           'thunk/ppb_instance_thunk.cc',
315           'thunk/ppb_layer_compositor_thunk.cc',
316           'thunk/ppb_messaging_thunk.cc',
317           'thunk/ppb_mouse_lock_thunk.cc',
318           'thunk/ppb_resource_array_thunk.cc',
319           'thunk/ppb_scrollbar_thunk.cc',
320           'thunk/ppb_talk_private_thunk.cc',
321 #          'thunk/ppb_tcp_server_socket_private_thunk.cc',
322 #          'thunk/ppb_tcp_socket_private_thunk.cc',
323           'thunk/ppb_text_input_thunk.cc',
324           'thunk/ppb_transport_thunk.cc',
325 #          'thunk/ppb_udp_socket_private_thunk.cc',
326           'thunk/ppb_url_loader_thunk.cc',
327           'thunk/ppb_url_request_info_thunk.cc',
328           'thunk/ppb_url_response_info_thunk.cc',
329 #          'thunk/ppb_url_util_thunk.cc',
330 #          'thunk/ppb_video_capture_thunk.cc',
331 #          'thunk/ppb_video_decoder_thunk.cc',
332 #          'thunk/ppb_video_layer_thunk.cc',
333           'thunk/ppb_view_thunk.cc',
334           'thunk/ppb_websocket_thunk.cc',
335           'thunk/ppb_widget_thunk.cc',
336 #          'thunk/ppb_x509_certificate_private_thunk.cc',
337           'thunk/ppb_zoom_thunk.cc',
339           'proxy/broker_dispatcher.cc',
340           'proxy/dispatcher.cc',
341           'proxy/host_dispatcher.cc',
342           'proxy/host_var_serialization_rules.cc',
343           'proxy/interface_list.cc',
344           'proxy/interface_proxy.cc',
345           'proxy/plugin_array_buffer_var.cc',
346           'proxy/plugin_dispatcher.cc',
347           'proxy/plugin_globals.cc',
348           'proxy/plugin_message_filter.cc',
349           'proxy/plugin_resource_tracker.cc',
350           'proxy/plugin_var_serialization_rules.cc',
351           'proxy/plugin_var_tracker.cc',
352           'proxy/ppapi_messages.cc',
353           'proxy/ppapi_param_traits.cc',
354           'proxy/ppb_audio_input_proxy.cc',
355           'proxy/ppb_audio_proxy.cc',
356           'proxy/ppb_broker_proxy.cc',
357           'proxy/ppb_buffer_proxy.cc',
358           'proxy/ppb_core_proxy.cc',
359 #          'proxy/ppb_file_chooser_proxy.cc',
360           'proxy/ppb_file_io_proxy.cc',
361           'proxy/ppb_file_ref_proxy.cc',
362           'proxy/ppb_file_system_proxy.cc',
363 #          'proxy/ppb_graphics_2d_proxy.cc',
364 #          'proxy/ppb_graphics_3d_proxy.cc',
365           'proxy/ppb_host_resolver_private_proxy.cc',
366           'proxy/ppb_image_data_proxy.cc',
367           'proxy/ppb_instance_proxy.cc',
368           'proxy/ppb_message_loop_proxy.cc',
369 #          'proxy/ppb_network_monitor_private_proxy.cc',
370 #          'proxy/ppb_pdf_proxy.cc',
371           'proxy/ppb_talk_private_proxy.cc',
372 #          'proxy/ppb_tcp_server_socket_private_proxy.cc',
373 #          'proxy/ppb_tcp_socket_private_proxy.cc',
374 #          'proxy/ppb_testing_proxy.cc',
375           'proxy/ppb_text_input_proxy.cc',
376 #          'proxy/ppb_udp_socket_private_proxy.cc',
377           'proxy/ppb_url_loader_proxy.cc',
378           'proxy/ppb_url_response_info_proxy.cc',
379           'proxy/ppb_var_deprecated_proxy.cc',
380 #          'proxy/ppb_video_capture_proxy.cc',
381 #          'proxy/ppb_video_decoder_proxy.cc',
382           'proxy/ppp_class_proxy.cc',
383 #          'proxy/ppp_graphics_3d_proxy.cc',
384           'proxy/ppp_input_event_proxy.cc',
385 #          'proxy/ppp_instance_private_proxy.cc',
386           'proxy/ppp_instance_proxy.cc',
387           'proxy/ppp_messaging_proxy.cc',
388           'proxy/ppp_mouse_lock_proxy.cc',
389           'proxy/ppp_printing_proxy.cc',
390           'proxy/ppp_text_input_proxy.cc',
391 #          'proxy/ppp_video_decoder_proxy.cc',
392           'proxy/proxy_channel.cc',
393           'proxy/proxy_module.cc',
394           'proxy/proxy_object_var.cc',
395           'proxy/resource_creation_proxy.cc',
396           'proxy/serialized_structs.cc',
397           'proxy/serialized_var.cc',
398         ],
399         'compile_flags': [
400           '-pthread',
401         ],
402         'link_flags': [
403 #          '-lppapi_cpp',
404 #          '-lppapi',
405 #          '-lppruntime',
406           '-pthread',
407           '-lgpu_untrusted',
408           '-lipc_untrusted',
409           '-lbase_untrusted',
410         ],
411       },
412     },
413   ],