OLD | NEW |
| (Empty) |
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. | |
4 | |
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. | |
8 | |
9 { | |
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/histogram.cc', | |
70 '../base/metrics/stats_counters.cc', | |
71 '../base/metrics/stats_table.cc', | |
72 # '../base/native_library_posix.cc', | |
73 '../base/os_compat_nacl.cc', | |
74 # '../base/path_service.cc', | |
75 '../base/pending_task.cc', | |
76 '../base/pickle.cc', | |
77 '../base/platform_file.cc', | |
78 # '../base/platform_file_posix.cc', | |
79 # '../base/process_posix.cc', | |
80 # '../base/process_util.cc', | |
81 # '../base/process_util_posix.cc', | |
82 '../base/profiler/alternate_timer.cc', | |
83 '../base/profiler/scoped_profile.cc', | |
84 '../base/profiler/tracked_time.cc', | |
85 '../base/property_bag.cc', | |
86 '../base/rand_util.cc', | |
87 '../base/rand_util_nacl.cc', | |
88 '../base/safe_strerror_posix.cc', | |
89 # '../base/scoped_native_library.cc', | |
90 # '../base/scoped_temp_dir.cc', | |
91 '../base/sha1_portable.cc', | |
92 '../base/shared_memory_nacl.cc', | |
93 '../base/string_number_conversions.cc', | |
94 '../base/string_piece.cc', | |
95 '../base/string_split.cc', | |
96 '../base/string_util.cc', | |
97 '../base/string16.cc', | |
98 '../base/stringprintf.cc', | |
99 '../base/sync_socket_nacl.cc', | |
100 '../base/synchronization/cancellation_flag.cc', | |
101 '../base/synchronization/condition_variable_posix.cc', | |
102 '../base/synchronization/lock.cc', | |
103 '../base/synchronization/lock_impl_posix.cc', | |
104 '../base/synchronization/waitable_event_posix.cc', | |
105 '../base/synchronization/waitable_event_watcher_posix.cc', | |
106 '../base/system_monitor/system_monitor.cc', | |
107 '../base/system_monitor/system_monitor_posix.cc', | |
108 # '../base/sys_info_posix.cc', | |
109 '../base/sys_string_conversions_posix.cc', | |
110 '../base/task_runner.cc', | |
111 '../base/threading/non_thread_safe_impl.cc', | |
112 '../base/threading/platform_thread_posix.cc', | |
113 '../base/threading/post_task_and_reply_impl.cc', | |
114 # '../base/threading/sequenced_worker_pool.cc', | |
115 '../base/threading/simple_thread.cc', | |
116 '../base/threading/thread.cc', | |
117 '../base/threading/thread_checker_impl.cc', | |
118 '../base/threading/thread_collision_warner.cc', | |
119 '../base/threading/thread_local_posix.cc', | |
120 '../base/threading/thread_local_storage_posix.cc', | |
121 '../base/threading/thread_restrictions.cc', | |
122 '../base/threading/watchdog.cc', | |
123 '../base/threading/worker_pool.cc', | |
124 '../base/threading/worker_pool_posix.cc', | |
125 '../base/third_party/dmg_fp/g_fmt.cc', | |
126 '../base/third_party/dmg_fp/dtoa_wrapper.cc', | |
127 '../base/third_party/dynamic_annotations/dynamic_annotations.c', | |
128 '../base/third_party/icu/icu_utf.cc', | |
129 '../base/third_party/nspr/prtime.cc', | |
130 '../base/time_posix.cc', | |
131 '../base/time.cc', | |
132 '../base/timer.cc', | |
133 '../base/tracked_objects.cc', | |
134 '../base/tracking_info.cc', | |
135 '../base/utf_offset_string_conversions.cc', | |
136 '../base/utf_string_conversion_utils.cc', | |
137 '../base/utf_string_conversions.cc', | |
138 '../base/values.cc', | |
139 '../base/value_conversions.cc', | |
140 '../base/version.cc', | |
141 '../base/vlog.cc', | |
142 # '../base/nix/mime_util_xdg.cc', | |
143 # '../base/nix/xdg_util.cc', | |
144 ], | |
145 'compile_flags': [ | |
146 '-pthread', | |
147 ], | |
148 }, | |
149 }, | |
150 { | |
151 'target_name': 'gpu_untrusted', | |
152 'type': 'none', | |
153 'dependencies': [ | |
154 'base_untrusted', | |
155 ], | |
156 'variables': { | |
157 'nlib_target': 'libgpu_untrusted.a', | |
158 'build_glibc': 0, | |
159 'build_newlib': 1, | |
160 'include_dirs': [ | |
161 '../gpu/command_buffer', | |
162 '..', | |
163 '../third_party/khronos', | |
164 ], | |
165 'sources': [ | |
166 '../gpu/command_buffer/client/gles2_implementation.cc', | |
167 '../gpu/command_buffer/client/program_info_manager.cc', | |
168 '../gpu/command_buffer/common/gles2_cmd_utils.cc', | |
169 '../gpu/command_buffer/common/logging.cc', | |
170 '../gpu/command_buffer/common/cmd_buffer_common.cc', | |
171 '../gpu/command_buffer/common/gles2_cmd_format.cc', | |
172 '../gpu/command_buffer/common/id_allocator.cc', | |
173 '../gpu/command_buffer/client/cmd_buffer_helper.cc', | |
174 '../gpu/command_buffer/client/fenced_allocator.cc', | |
175 '../gpu/command_buffer/client/mapped_memory.cc', | |
176 '../gpu/command_buffer/client/ring_buffer.cc', | |
177 '../gpu/command_buffer/client/transfer_buffer.cc', | |
178 '../gpu/command_buffer/client/gles2_cmd_helper.cc', | |
179 '../gpu/ipc/gpu_command_buffer_traits.cc', | |
180 ], | |
181 'compile_flags': [ | |
182 '-pthread', | |
183 ], | |
184 'link_flags': [ | |
185 '-pthread', | |
186 '-lbase_untrusted', | |
187 ], | |
188 }, | |
189 }, | |
190 { | |
191 'target_name': 'ipc_untrusted', | |
192 'type': 'none', | |
193 'dependencies': [ | |
194 'base_untrusted', | |
195 ], | |
196 'variables': { | |
197 'nlib_target': 'libipc_untrusted.a', | |
198 'build_glibc': 0, | |
199 'build_newlib': 1, | |
200 'include_dirs': [ | |
201 '..', | |
202 ], | |
203 'sources': [ | |
204 '../ipc/file_descriptor_set_posix.cc', | |
205 '../ipc/ipc_channel.cc', | |
206 '../ipc/ipc_channel_nacl.cc', | |
207 '../ipc/ipc_channel_proxy.cc', | |
208 '../ipc/ipc_channel_reader.cc', | |
209 '../ipc/ipc_logging.cc', | |
210 '../ipc/ipc_message.cc', | |
211 '../ipc/ipc_message_utils.cc', | |
212 '../ipc/ipc_platform_file.cc', | |
213 '../ipc/ipc_sync_channel.cc', | |
214 '../ipc/ipc_sync_message.cc', | |
215 '../ipc/ipc_sync_message_filter.cc', | |
216 ], | |
217 'compile_flags': [ | |
218 '-pthread', | |
219 ], | |
220 'link_flags': [ | |
221 '-pthread', | |
222 '-lbase_untrusted', | |
223 ], | |
224 }, | |
225 }, | |
226 { | |
227 'target_name': 'ppapi_proxy_untrusted', | |
228 'type': 'none', | |
229 'dependencies': [ | |
230 'base_untrusted', | |
231 'gpu_untrusted', | |
232 'ipc_untrusted', | |
233 ], | |
234 'variables': { | |
235 'nexe_target': 'libppapi_proxy_untrusted.nexe', | |
236 'build_glibc': 0, | |
237 'build_newlib': 1, | |
238 'include_dirs': [ | |
239 '..', | |
240 '../third_party/khronos', | |
241 '../third_party/skia/include/config', | |
242 ], | |
243 'sources': [ | |
244 'shared_impl/callback_tracker.cc', | |
245 'shared_impl/file_type_conversion.cc', | |
246 'shared_impl/id_assignment.cc', | |
247 'shared_impl/platform_file.cc', | |
248 'shared_impl/ppapi_globals.cc', | |
249 'shared_impl/ppapi_preferences.cc', | |
250 # 'shared_impl/ppb_audio_config_shared.cc', | |
251 # 'shared_impl/ppb_audio_input_shared.cc', | |
252 # 'shared_impl/ppb_audio_shared.cc', | |
253 'shared_impl/ppb_crypto_shared.cc', | |
254 'shared_impl/ppb_device_ref_shared.cc', | |
255 'shared_impl/ppb_file_io_shared.cc', | |
256 'shared_impl/ppb_file_ref_shared.cc', | |
257 # 'shared_impl/ppb_graphics_3d_shared.cc', | |
258 # 'shared_impl/ppb_image_data_shared.cc', | |
259 'shared_impl/ppb_input_event_shared.cc', | |
260 'shared_impl/ppb_instance_shared.cc', | |
261 'shared_impl/ppb_memory_shared.cc', | |
262 # 'shared_impl/ppb_opengles2_shared.cc', | |
263 'shared_impl/ppb_resource_array_shared.cc', | |
264 'shared_impl/ppb_url_request_info_shared.cc', | |
265 # 'shared_impl/ppb_url_util_shared.cc', | |
266 'shared_impl/ppb_var_shared.cc', | |
267 # 'shared_impl/ppb_video_decoder_shared.cc', | |
268 # 'shared_impl/ppb_video_capture_shared.cc', | |
269 'shared_impl/ppb_view_shared.cc', | |
270 'shared_impl/ppp_instance_combined.cc', | |
271 'shared_impl/proxy_lock.cc', | |
272 'shared_impl/resource.cc', | |
273 'shared_impl/resource_tracker.cc', | |
274 'shared_impl/scoped_pp_resource.cc', | |
275 'shared_impl/time_conversion.cc', | |
276 'shared_impl/tracked_callback.cc', | |
277 'shared_impl/var.cc', | |
278 'shared_impl/var_tracker.cc', | |
279 | |
280 'thunk/enter.cc', | |
281 # 'thunk/ppb_audio_config_thunk.cc', | |
282 # 'thunk/ppb_audio_input_thunk.cc', | |
283 # 'thunk/ppb_audio_input_trusted_thunk.cc', | |
284 # 'thunk/ppb_audio_thunk.cc', | |
285 # 'thunk/ppb_audio_trusted_thunk.cc', | |
286 # 'thunk/ppb_broker_thunk.cc', | |
287 # 'thunk/ppb_browser_font_trusted_thunk.cc', | |
288 # 'thunk/ppb_buffer_thunk.cc', | |
289 # 'thunk/ppb_buffer_trusted_thunk.cc', | |
290 # 'thunk/ppb_char_set_thunk.cc', | |
291 'thunk/ppb_console_thunk.cc', | |
292 'thunk/ppb_cursor_control_thunk.cc', | |
293 'thunk/ppb_device_ref_thunk.cc', | |
294 # 'thunk/ppb_directory_reader_thunk.cc', | |
295 'thunk/ppb_input_event_thunk.cc', | |
296 # 'thunk/ppb_file_chooser_thunk.cc', | |
297 'thunk/ppb_file_io_thunk.cc', | |
298 # 'thunk/ppb_file_io_trusted_thunk.cc', | |
299 'thunk/ppb_file_ref_thunk.cc', | |
300 'thunk/ppb_file_system_thunk.cc', | |
301 'thunk/ppb_find_thunk.cc', | |
302 # 'thunk/ppb_flash_clipboard_thunk.cc', | |
303 # 'thunk/ppb_flash_fullscreen_thunk.cc', | |
304 # 'thunk/ppb_flash_menu_thunk.cc', | |
305 # 'thunk/ppb_flash_message_loop_thunk.cc', | |
306 'thunk/ppb_fullscreen_thunk.cc', | |
307 'thunk/ppb_gamepad_thunk.cc', | |
308 # 'thunk/ppb_gles_chromium_texture_mapping_thunk.cc', | |
309 # 'thunk/ppb_graphics_2d_thunk.cc', | |
310 # 'thunk/ppb_graphics_3d_thunk.cc', | |
311 # 'thunk/ppb_graphics_3d_trusted_thunk.cc', | |
312 # 'thunk/ppb_host_resolver_private_thunk.cc', | |
313 # 'thunk/ppb_image_data_thunk.cc', | |
314 # 'thunk/ppb_image_data_trusted_thunk.cc', | |
315 'thunk/ppb_instance_thunk.cc', | |
316 # 'thunk/ppb_layer_compositor_thunk.cc', | |
317 'thunk/ppb_messaging_thunk.cc', | |
318 'thunk/ppb_mouse_lock_thunk.cc', | |
319 'thunk/ppb_resource_array_thunk.cc', | |
320 # 'thunk/ppb_scrollbar_thunk.cc', | |
321 # 'thunk/ppb_talk_private_thunk.cc', | |
322 # 'thunk/ppb_tcp_server_socket_private_thunk.cc', | |
323 # 'thunk/ppb_tcp_socket_private_thunk.cc', | |
324 'thunk/ppb_text_input_thunk.cc', | |
325 # 'thunk/ppb_transport_thunk.cc', | |
326 # 'thunk/ppb_udp_socket_private_thunk.cc', | |
327 'thunk/ppb_url_loader_thunk.cc', | |
328 'thunk/ppb_url_request_info_thunk.cc', | |
329 'thunk/ppb_url_response_info_thunk.cc', | |
330 # 'thunk/ppb_url_util_thunk.cc', | |
331 # 'thunk/ppb_video_capture_thunk.cc', | |
332 # 'thunk/ppb_video_decoder_thunk.cc', | |
333 # 'thunk/ppb_video_layer_thunk.cc', | |
334 'thunk/ppb_view_thunk.cc', | |
335 # 'thunk/ppb_websocket_thunk.cc', | |
336 'thunk/ppb_widget_thunk.cc', | |
337 # 'thunk/ppb_x509_certificate_private_thunk.cc', | |
338 'thunk/ppb_zoom_thunk.cc', | |
339 | |
340 # 'proxy/broker_dispatcher.cc', | |
341 'proxy/dispatcher.cc', | |
342 'proxy/host_dispatcher.cc', | |
343 'proxy/host_var_serialization_rules.cc', | |
344 'proxy/interface_list.cc', | |
345 'proxy/interface_proxy.cc', | |
346 'proxy/plugin_array_buffer_var.cc', | |
347 'proxy/plugin_dispatcher.cc', | |
348 'proxy/plugin_globals.cc', | |
349 'proxy/plugin_message_filter.cc', | |
350 'proxy/plugin_resource_tracker.cc', | |
351 'proxy/plugin_var_serialization_rules.cc', | |
352 'proxy/plugin_var_tracker.cc', | |
353 'proxy/ppapi_messages.cc', | |
354 'proxy/ppapi_param_traits.cc', | |
355 # 'proxy/ppb_audio_input_proxy.cc', | |
356 # 'proxy/ppb_audio_proxy.cc', | |
357 # 'proxy/ppb_broker_proxy.cc', | |
358 # 'proxy/ppb_buffer_proxy.cc', | |
359 'proxy/ppb_core_proxy.cc', | |
360 # 'proxy/ppb_file_chooser_proxy.cc', | |
361 'proxy/ppb_file_io_proxy.cc', | |
362 'proxy/ppb_file_ref_proxy.cc', | |
363 'proxy/ppb_file_system_proxy.cc', | |
364 # 'proxy/ppb_graphics_2d_proxy.cc', | |
365 # 'proxy/ppb_graphics_3d_proxy.cc', | |
366 # 'proxy/ppb_host_resolver_private_proxy.cc', | |
367 # 'proxy/ppb_image_data_proxy.cc', | |
368 'proxy/ppb_instance_proxy.cc', | |
369 'proxy/ppb_message_loop_proxy.cc', | |
370 # 'proxy/ppb_network_monitor_private_proxy.cc', | |
371 # 'proxy/ppb_pdf_proxy.cc', | |
372 # 'proxy/ppb_talk_private_proxy.cc', | |
373 # 'proxy/ppb_tcp_server_socket_private_proxy.cc', | |
374 # 'proxy/ppb_tcp_socket_private_proxy.cc', | |
375 # 'proxy/ppb_testing_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 ], | |
414 } | |
OLD | NEW |