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.
11 'target_conditions': [
12 # This part is shared between the targets defined below.
15 '../build/build_config.h',
16 'third_party/dmg_fp/dmg_fp.h',
17 'third_party/dmg_fp/g_fmt.cc',
18 'third_party/dmg_fp/dtoa_wrapper.cc',
19 'third_party/icu/icu_utf.cc',
20 'third_party/icu/icu_utf.h',
21 'third_party/nspr/prtime.cc',
22 'third_party/nspr/prtime.h',
23 'third_party/superfasthash/superfasthash.c',
24 'third_party/xdg_mime/xdgmime.h',
25 'allocator/allocator_extension.cc',
26 'allocator/allocator_extension.h',
27 'allocator/type_profiler_control.cc',
28 'allocator/type_profiler_control.h',
29 'android/application_status_listener.cc',
30 'android/application_status_listener.h',
31 'android/base_jni_registrar.cc',
32 'android/base_jni_registrar.h',
33 'android/build_info.cc',
34 'android/build_info.h',
35 'android/command_line_android.cc',
36 'android/command_line_android.h',
37 'android/content_uri_utils.cc',
38 'android/content_uri_utils.h',
39 'android/cpu_features.cc',
40 'android/fifo_utils.cc',
41 'android/fifo_utils.h',
42 'android/important_file_writer_android.cc',
43 'android/important_file_writer_android.h',
44 'android/scoped_java_ref.cc',
45 'android/scoped_java_ref.h',
46 'android/jni_android.cc',
47 'android/jni_android.h',
48 'android/jni_array.cc',
49 'android/jni_array.h',
50 'android/jni_registrar.cc',
51 'android/jni_registrar.h',
52 'android/jni_string.cc',
53 'android/jni_string.h',
54 'android/jni_weak_ref.cc',
55 'android/jni_weak_ref.h',
56 'android/library_loader/library_loader_hooks.cc',
57 'android/library_loader/library_loader_hooks.h',
58 'android/memory_pressure_listener_android.cc',
59 'android/memory_pressure_listener_android.h',
60 'android/java_handler_thread.cc',
61 'android/java_handler_thread.h',
62 'android/path_service_android.cc',
63 'android/path_service_android.h',
64 'android/path_utils.cc',
65 'android/path_utils.h',
66 'android/sys_utils.cc',
67 'android/sys_utils.h',
68 'android/thread_utils.h',
69 'android/trace_event_binding.cc',
70 'android/trace_event_binding.h',
74 'atomic_sequence_num.h',
76 'atomicops_internals_gcc.h',
77 'atomicops_internals_mac.h',
78 'atomicops_internals_tsan.h',
79 'atomicops_internals_x86_gcc.cc',
80 'atomicops_internals_x86_gcc.h',
81 'atomicops_internals_x86_msvc.h',
89 'base_paths_android.cc',
90 'base_paths_android.h',
93 'base_paths_posix.cc',
105 'bind_internal_win.h',
110 'callback_helpers.cc',
111 'callback_helpers.h',
112 'callback_internal.cc',
113 'callback_internal.h',
115 'cancelable_callback.h',
118 'compiler_specific.h',
119 'containers/hash_tables.h',
120 'containers/linked_list.h',
121 'containers/mru_cache.h',
122 'containers/scoped_ptr_hash_map.h',
123 'containers/small_map.h',
124 'containers/stack_container.h',
127 'critical_closure.h',
128 'critical_closure_internal_ios.mm',
131 'debug/crash_logging.cc',
132 'debug/crash_logging.h',
135 'debug/debugger_posix.cc',
136 'debug/debugger_win.cc',
137 'debug/dump_without_crashing.cc',
138 'debug/dump_without_crashing.h',
139 'debug/gdi_debug_util_win.cc',
140 'debug/gdi_debug_util_win.h',
141 # This file depends on files from the 'allocator' target,
142 # but this target does not depend on 'allocator' (see
143 # allocator.gyp for details).
144 'debug/leak_annotations.h',
145 'debug/leak_tracker.h',
146 'debug/proc_maps_linux.cc',
147 'debug/proc_maps_linux.h',
150 'debug/stack_trace.cc',
151 'debug/stack_trace.h',
152 'debug/stack_trace_android.cc',
153 'debug/stack_trace_posix.cc',
154 'debug/stack_trace_win.cc',
155 'debug/trace_event.h',
156 'debug/trace_event_android.cc',
157 'debug/trace_event_impl.cc',
158 'debug/trace_event_impl.h',
159 'debug/trace_event_impl_constants.cc',
160 'debug/trace_event_synthetic_delay.cc',
161 'debug/trace_event_synthetic_delay.h',
162 'debug/trace_event_system_stats_monitor.cc',
163 'debug/trace_event_memory.cc',
164 'debug/trace_event_memory.h',
165 'debug/trace_event_win.cc',
166 'deferred_sequenced_task_runner.cc',
167 'deferred_sequenced_task_runner.h',
170 'file_descriptor_posix.h',
173 'file_util_android.cc',
174 'file_util_linux.cc',
176 'file_util_posix.cc',
178 'file_version_info.h',
179 'file_version_info_mac.h',
180 'file_version_info_mac.mm',
181 'file_version_info_win.cc',
182 'file_version_info_win.h',
183 'files/dir_reader_fallback.h',
184 'files/dir_reader_linux.h',
185 'files/dir_reader_posix.h',
188 'files/file_enumerator.cc',
189 'files/file_enumerator.h',
190 'files/file_enumerator_posix.cc',
191 'files/file_enumerator_win.cc',
192 'files/file_path.cc',
194 'files/file_path_constants.cc',
195 'files/file_path_watcher.cc',
196 'files/file_path_watcher.h',
197 'files/file_path_watcher_fsevents.cc',
198 'files/file_path_watcher_fsevents.h',
199 'files/file_path_watcher_kqueue.cc',
200 'files/file_path_watcher_kqueue.h',
201 'files/file_path_watcher_linux.cc',
202 'files/file_path_watcher_mac.cc',
203 'files/file_path_watcher_stub.cc',
204 'files/file_path_watcher_win.cc',
205 'files/file_posix.cc',
206 'files/file_proxy.cc',
207 'files/file_proxy.h',
208 'files/file_util_proxy.cc',
209 'files/file_util_proxy.h',
211 'files/important_file_writer.h',
212 'files/important_file_writer.cc',
213 'files/memory_mapped_file.cc',
214 'files/memory_mapped_file.h',
215 'files/memory_mapped_file_posix.cc',
216 'files/memory_mapped_file_win.cc',
217 'files/scoped_file.cc',
218 'files/scoped_file.h',
219 'files/scoped_platform_file_closer.cc',
220 'files/scoped_platform_file_closer.h',
221 'files/scoped_temp_dir.cc',
222 'files/scoped_temp_dir.h',
236 'ios/device_util.mm',
239 'ios/scoped_critical_action.h',
240 'ios/scoped_critical_action.mm',
241 'json/json_file_value_serializer.cc',
242 'json/json_file_value_serializer.h',
243 'json/json_parser.cc',
244 'json/json_parser.h',
245 'json/json_reader.cc',
246 'json/json_reader.h',
247 'json/json_string_value_serializer.cc',
248 'json/json_string_value_serializer.h',
249 'json/json_value_converter.h',
250 'json/json_writer.cc',
251 'json/json_writer.h',
252 'json/string_escape.cc',
253 'json/string_escape.h',
262 'mac/authorization_util.h',
263 'mac/authorization_util.mm',
264 'mac/bind_objc_block.h',
265 'mac/bundle_locations.h',
266 'mac/bundle_locations.mm',
267 'mac/close_nocancel.cc',
268 'mac/cocoa_protocols.h',
269 'mac/foundation_util.h',
270 'mac/foundation_util.mm',
271 'mac/launch_services_util.cc',
272 'mac/launch_services_util.h',
275 'mac/libdispatch_task_runner.cc',
276 'mac/libdispatch_task_runner.h',
278 'mac/mac_logging.cc',
281 'mac/mach_logging.cc',
282 'mac/mach_logging.h',
283 'mac/objc_property_releaser.h',
284 'mac/objc_property_releaser.mm',
285 'mac/os_crash_dumps.cc',
286 'mac/os_crash_dumps.h',
287 'mac/scoped_aedesc.h',
288 'mac/scoped_authorizationref.h',
289 'mac/scoped_block.h',
290 'mac/scoped_cftyperef.h',
291 'mac/scoped_ioobject.h',
292 'mac/scoped_ioplugininterface.h',
293 'mac/scoped_launch_data.h',
294 'mac/scoped_mach_port.cc',
295 'mac/scoped_mach_port.h',
296 'mac/scoped_mach_vm.cc',
297 'mac/scoped_mach_vm.h',
298 'mac/scoped_nsautorelease_pool.h',
299 'mac/scoped_nsautorelease_pool.mm',
300 'mac/scoped_nsexception_enabler.h',
301 'mac/scoped_nsexception_enabler.mm',
302 'mac/scoped_nsobject.h',
303 'mac/scoped_sending_event.h',
304 'mac/scoped_sending_event.mm',
305 'mac/scoped_typeref.h',
306 'mac/sdk_forward_declarations.h',
310 'memory/aligned_memory.cc',
311 'memory/aligned_memory.h',
312 'memory/discardable_memory.cc',
313 'memory/discardable_memory.h',
314 'memory/discardable_memory_android.cc',
315 'memory/discardable_memory_emulated.cc',
316 'memory/discardable_memory_emulated.h',
317 'memory/discardable_memory_linux.cc',
318 'memory/discardable_memory_mac.cc',
319 'memory/discardable_memory_malloc.cc',
320 'memory/discardable_memory_malloc.h',
321 'memory/discardable_memory_manager.cc',
322 'memory/discardable_memory_manager.h',
323 'memory/discardable_memory_win.cc',
324 'memory/linked_ptr.h',
325 'memory/manual_constructor.h',
326 'memory/memory_pressure_listener.cc',
327 'memory/memory_pressure_listener.h',
328 'memory/raw_scoped_refptr_mismatch_checker.h',
329 'memory/ref_counted.cc',
330 'memory/ref_counted.h',
331 'memory/ref_counted_delete_on_message_loop.h',
332 'memory/ref_counted_memory.cc',
333 'memory/ref_counted_memory.h',
334 'memory/scoped_open_process.h',
335 'memory/scoped_policy.h',
336 'memory/scoped_ptr.h',
337 'memory/scoped_vector.h',
338 'memory/shared_memory.h',
339 'memory/shared_memory_android.cc',
340 'memory/shared_memory_nacl.cc',
341 'memory/shared_memory_posix.cc',
342 'memory/shared_memory_win.cc',
343 'memory/singleton.cc',
344 'memory/singleton.h',
345 'memory/weak_ptr.cc',
347 'message_loop/incoming_task_queue.cc',
348 'message_loop/incoming_task_queue.h',
349 'message_loop/message_loop.cc',
350 'message_loop/message_loop.h',
351 'message_loop/message_loop_proxy.cc',
352 'message_loop/message_loop_proxy.h',
353 'message_loop/message_loop_proxy_impl.cc',
354 'message_loop/message_loop_proxy_impl.h',
355 'message_loop/message_pump.cc',
356 'message_loop/message_pump.h',
357 'message_loop/message_pump_android.cc',
358 'message_loop/message_pump_android.h',
359 'message_loop/message_pump_default.cc',
360 'message_loop/message_pump_default.h',
361 'message_loop/message_pump_win.cc',
362 'message_loop/message_pump_win.h',
363 'message_loop/timer_slack.h',
364 'metrics/sample_map.cc',
365 'metrics/sample_map.h',
366 'metrics/sample_vector.cc',
367 'metrics/sample_vector.h',
368 'metrics/bucket_ranges.cc',
369 'metrics/bucket_ranges.h',
370 'metrics/histogram.cc',
371 'metrics/histogram.h',
372 'metrics/histogram_base.cc',
373 'metrics/histogram_base.h',
374 'metrics/histogram_delta_serialization.cc',
375 'metrics/histogram_delta_serialization.h',
376 'metrics/histogram_flattener.h',
377 'metrics/histogram_samples.cc',
378 'metrics/histogram_samples.h',
379 'metrics/histogram_snapshot_manager.cc',
380 'metrics/histogram_snapshot_manager.h',
381 'metrics/sparse_histogram.cc',
382 'metrics/sparse_histogram.h',
383 'metrics/statistics_recorder.cc',
384 'metrics/statistics_recorder.h',
385 'metrics/stats_counters.cc',
386 'metrics/stats_counters.h',
387 'metrics/stats_table.cc',
388 'metrics/stats_table.h',
389 'metrics/user_metrics.cc',
390 'metrics/user_metrics.h',
391 'metrics/user_metrics_action.h',
394 'native_library_mac.mm',
395 'native_library_posix.cc',
396 'native_library_win.cc',
397 'nix/mime_util_xdg.cc',
398 'nix/mime_util_xdg.h',
402 'observer_list_threadsafe.h',
403 'os_compat_android.cc',
404 'os_compat_android.h',
415 'platform_file_posix.cc',
416 'platform_file_win.cc',
418 'posix/eintr_wrapper.h',
419 'posix/global_descriptors.cc',
420 'posix/global_descriptors.h',
421 'posix/unix_domain_socket_linux.cc',
422 'posix/unix_domain_socket_linux.h',
423 'power_monitor/power_monitor.cc',
424 'power_monitor/power_monitor.h',
425 'power_monitor/power_monitor_device_source_android.cc',
426 'power_monitor/power_monitor_device_source_android.h',
427 'power_monitor/power_monitor_device_source.cc',
428 'power_monitor/power_monitor_device_source.h',
429 'power_monitor/power_monitor_device_source_ios.mm',
430 'power_monitor/power_monitor_device_source_mac.mm',
431 'power_monitor/power_monitor_device_source_posix.cc',
432 'power_monitor/power_monitor_device_source_win.cc',
433 'power_monitor/power_monitor_source.cc',
434 'power_monitor/power_monitor_source.h',
435 'power_monitor/power_observer.h',
436 'process/internal_linux.cc',
437 'process/internal_linux.h',
440 'process/kill_mac.cc',
441 'process/kill_posix.cc',
442 'process/kill_win.cc',
445 'process/launch_ios.cc',
446 'process/launch_mac.cc',
447 'process/launch_posix.cc',
448 'process/launch_win.cc',
451 'process/memory_linux.cc',
452 'process/memory_mac.mm',
453 'process/memory_win.cc',
455 'process/process_handle_freebsd.cc',
456 'process/process_handle_linux.cc',
457 'process/process_handle_mac.cc',
458 'process/process_handle_openbsd.cc',
459 'process/process_handle_posix.cc',
460 'process/process_handle_win.cc',
461 'process/process_info.h',
462 'process/process_info_linux.cc',
463 'process/process_info_mac.cc',
464 'process/process_info_win.cc',
465 'process/process_iterator.cc',
466 'process/process_iterator.h',
467 'process/process_iterator_freebsd.cc',
468 'process/process_iterator_linux.cc',
469 'process/process_iterator_mac.cc',
470 'process/process_iterator_openbsd.cc',
471 'process/process_iterator_win.cc',
472 'process/process_linux.cc',
473 'process/process_metrics.h',
474 'process/process_metrics.cc',
475 'process/process_metrics_freebsd.cc',
476 'process/process_metrics_ios.cc',
477 'process/process_metrics_linux.cc',
478 'process/process_metrics_mac.cc',
479 'process/process_metrics_openbsd.cc',
480 'process/process_metrics_posix.cc',
481 'process/process_metrics_win.cc',
482 'process/process_posix.cc',
483 'process/process_win.cc',
484 'profiler/scoped_profile.cc',
485 'profiler/scoped_profile.h',
486 'profiler/alternate_timer.cc',
487 'profiler/alternate_timer.h',
488 'profiler/tracked_time.cc',
489 'profiler/tracked_time.h',
493 'rand_util_posix.cc',
497 'numerics/safe_conversions.h',
498 'numerics/safe_conversions_impl.h',
499 'numerics/safe_math.h',
500 'numerics/safe_math_impl.h',
501 'safe_strerror_posix.cc',
502 'safe_strerror_posix.h',
504 'scoped_native_library.cc',
505 'scoped_native_library.h',
506 'sequence_checker.h',
507 'sequence_checker_impl.cc',
508 'sequence_checker_impl.h',
509 'sequenced_task_runner.cc',
510 'sequenced_task_runner.h',
511 'sequenced_task_runner_helpers.h',
515 'single_thread_task_runner.h',
517 'strings/latin1_string_conversions.cc',
518 'strings/latin1_string_conversions.h',
519 'strings/nullable_string16.cc',
520 'strings/nullable_string16.h',
521 'strings/safe_sprintf.cc',
522 'strings/safe_sprintf.h',
523 'strings/string16.cc',
524 'strings/string16.h',
525 'strings/string_number_conversions.cc',
526 'strings/string_split.cc',
527 'strings/string_split.h',
528 'strings/string_number_conversions.h',
529 'strings/string_piece.cc',
530 'strings/string_piece.h',
531 'strings/string_tokenizer.h',
532 'strings/string_util.cc',
533 'strings/string_util.h',
534 'strings/string_util_constants.cc',
535 'strings/string_util_posix.h',
536 'strings/string_util_win.h',
537 'strings/stringize_macros.h',
538 'strings/stringprintf.cc',
539 'strings/stringprintf.h',
540 'strings/sys_string_conversions.h',
541 'strings/sys_string_conversions_mac.mm',
542 'strings/sys_string_conversions_posix.cc',
543 'strings/sys_string_conversions_win.cc',
544 'strings/utf_offset_string_conversions.cc',
545 'strings/utf_offset_string_conversions.h',
546 'strings/utf_string_conversion_utils.cc',
547 'strings/utf_string_conversion_utils.h',
548 'strings/utf_string_conversions.cc',
549 'strings/utf_string_conversions.h',
550 'supports_user_data.cc',
551 'supports_user_data.h',
552 'synchronization/cancellation_flag.cc',
553 'synchronization/cancellation_flag.h',
554 'synchronization/condition_variable.h',
555 'synchronization/condition_variable_posix.cc',
556 'synchronization/condition_variable_win.cc',
557 'synchronization/lock.cc',
558 'synchronization/lock.h',
559 'synchronization/lock_impl.h',
560 'synchronization/lock_impl_posix.cc',
561 'synchronization/lock_impl_win.cc',
562 'synchronization/spin_wait.h',
563 'synchronization/waitable_event.h',
564 'synchronization/waitable_event_posix.cc',
565 'synchronization/waitable_event_watcher.h',
566 'synchronization/waitable_event_watcher_posix.cc',
567 'synchronization/waitable_event_watcher_win.cc',
568 'synchronization/waitable_event_win.cc',
569 'system_monitor/system_monitor.cc',
570 'system_monitor/system_monitor.h',
574 'sys_info_android.cc',
575 'sys_info_chromeos.cc',
576 'sys_info_freebsd.cc',
577 'sys_info_internal.h',
581 'sys_info_openbsd.cc',
584 'task/cancelable_task_tracker.cc',
585 'task/cancelable_task_tracker.h',
588 'task_runner_util.h',
590 'thread_task_runner_handle.cc',
591 'thread_task_runner_handle.h',
592 'threading/non_thread_safe.h',
593 'threading/non_thread_safe_impl.cc',
594 'threading/non_thread_safe_impl.h',
595 'threading/platform_thread.h',
596 'threading/platform_thread_android.cc',
597 'threading/platform_thread_linux.cc',
598 'threading/platform_thread_mac.mm',
599 'threading/platform_thread_posix.cc',
600 'threading/platform_thread_win.cc',
601 'threading/post_task_and_reply_impl.cc',
602 'threading/post_task_and_reply_impl.h',
603 'threading/sequenced_worker_pool.cc',
604 'threading/sequenced_worker_pool.h',
605 'threading/simple_thread.cc',
606 'threading/simple_thread.h',
607 'threading/thread.cc',
608 'threading/thread.h',
609 'threading/thread_checker.h',
610 'threading/thread_checker_impl.cc',
611 'threading/thread_checker_impl.h',
612 'threading/thread_collision_warner.cc',
613 'threading/thread_collision_warner.h',
614 'threading/thread_id_name_manager.cc',
615 'threading/thread_id_name_manager.h',
616 'threading/thread_local.h',
617 'threading/thread_local_android.cc',
618 'threading/thread_local_posix.cc',
619 'threading/thread_local_storage.cc',
620 'threading/thread_local_storage.h',
621 'threading/thread_local_storage_posix.cc',
622 'threading/thread_local_storage_win.cc',
623 'threading/thread_local_win.cc',
624 'threading/thread_restrictions.h',
625 'threading/thread_restrictions.cc',
626 'threading/watchdog.cc',
627 'threading/watchdog.h',
628 'threading/worker_pool.h',
629 'threading/worker_pool.cc',
630 'threading/worker_pool_posix.cc',
631 'threading/worker_pool_posix.h',
632 'threading/worker_pool_win.cc',
635 'time/default_clock.cc',
636 'time/default_clock.h',
637 'time/default_tick_clock.cc',
638 'time/default_tick_clock.h',
639 'time/tick_clock.cc',
644 'time/time_posix.cc',
646 'timer/elapsed_timer.cc',
647 'timer/elapsed_timer.h',
648 'timer/hi_res_timer_manager.h',
649 'timer/hi_res_timer_manager_posix.cc',
650 'timer/hi_res_timer_manager_win.cc',
651 'timer/mock_timer.cc',
652 'timer/mock_timer.h',
655 'tracked_objects.cc',
662 'value_conversions.cc',
663 'value_conversions.h',
668 'win/enum_variant.cc',
669 'win/enum_variant.h',
670 'win/event_trace_consumer.h',
671 'win/event_trace_controller.cc',
672 'win/event_trace_controller.h',
673 'win/event_trace_provider.cc',
674 'win/event_trace_provider.h',
677 'win/iat_patch_function.cc',
678 'win/iat_patch_function.h',
679 'win/iunknown_impl.cc',
680 'win/iunknown_impl.h',
681 'win/message_window.cc',
682 'win/message_window.h',
685 'win/object_watcher.cc',
686 'win/object_watcher.h',
689 'win/resource_util.cc',
690 'win/resource_util.h',
691 'win/scoped_bstr.cc',
693 'win/scoped_co_mem.h',
694 'win/scoped_com_initializer.h',
695 'win/scoped_comptr.h',
696 'win/scoped_gdi_object.h',
697 'win/scoped_handle.cc',
698 'win/scoped_handle.h',
700 'win/scoped_hglobal.h',
701 'win/scoped_process_information.cc',
702 'win/scoped_process_information.h',
703 'win/scoped_propvariant.h',
704 'win/scoped_select_object.h',
705 'win/scoped_variant.cc',
706 'win/scoped_variant.h',
709 'win/startup_information.cc',
710 'win/startup_information.h',
713 'win/windows_version.cc',
714 'win/windows_version.h',
715 'win/wrapped_window_proc.cc',
716 'win/wrapped_window_proc.h',
719 'BASE_IMPLEMENTATION',
724 'msvs_disabled_warnings': [
727 'target_conditions': [
728 ['(<(desktop_linux) == 0 and <(chromeos) == 0) or >(nacl_untrusted_build)==1', {
730 ['exclude', '^nix/'],
733 'atomicops_internals_x86_gcc.cc',
736 ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
738 'message_loop/message_pump_glib.cc',
741 ['(OS != "linux" and <(os_bsd) != 1 and OS != "android") or >(nacl_untrusted_build)==1', {
743 # Not automatically excluded by the *linux.cc rules.
748 ['>(nacl_untrusted_build)==1', {
750 'allocator/type_profiler_control.cc',
751 'allocator/type_profiler_control.h',
754 'debug/stack_trace_posix.cc',
756 'file_util_posix.cc',
757 'files/file_enumerator_posix.cc',
758 'files/file_path_watcher_fsevents.cc',
759 'files/file_path_watcher_fsevents.h',
760 'files/file_path_watcher_kqueue.cc',
761 'files/file_path_watcher_kqueue.h',
762 'files/file_proxy.cc',
763 'files/file_util_proxy.cc',
764 'memory/shared_memory_posix.cc',
765 'native_library_posix.cc',
767 'posix/unix_domain_socket_linux.cc',
768 'process/kill_posix.cc',
769 'process/launch_posix.cc',
770 'process/process_metrics_posix.cc',
771 'process/process_posix.cc',
772 'rand_util_posix.cc',
773 'scoped_native_library.cc',
774 'files/scoped_temp_dir.cc',
776 'third_party/dynamic_annotations/dynamic_annotations.c',
779 ['include', '^threading/platform_thread_linux\\.cc$'],
782 ['OS == "android" and _toolset == "target" and >(nacl_untrusted_build)==0', {
784 'memory/discardable_memory_ashmem_allocator.cc',
785 'memory/discardable_memory_ashmem_allocator.h',
786 'memory/discardable_memory_ashmem.cc',
787 'memory/discardable_memory_ashmem.h',
790 ['OS == "android" and >(nacl_untrusted_build)==0', {
792 'base_paths_posix.cc',
793 'files/file_path_watcher_fsevents.cc',
794 'files/file_path_watcher_fsevents.h',
795 'files/file_path_watcher_kqueue.cc',
796 'files/file_path_watcher_kqueue.h',
797 'files/file_path_watcher_stub.cc',
798 'power_monitor/power_monitor_device_source_posix.cc',
801 ['include', '^debug/proc_maps_linux\\.cc$'],
802 ['include', '^files/file_path_watcher_linux\\.cc$'],
803 ['include', '^process/memory_linux\\.cc$'],
804 ['include', '^process/internal_linux\\.cc$'],
805 ['include', '^process/process_handle_linux\\.cc$'],
806 ['include', '^process/process_iterator\\.cc$'],
807 ['include', '^process/process_iterator_linux\\.cc$'],
808 ['include', '^process/process_metrics_linux\\.cc$'],
809 ['include', '^posix/unix_domain_socket_linux\\.cc$'],
810 ['include', '^strings/sys_string_conversions_posix\\.cc$'],
811 ['include', '^sys_info_linux\\.cc$'],
812 ['include', '^worker_pool_linux\\.cc$'],
815 ['OS == "android" and _toolset == "host" and host_os == "linux"', {
817 'OS_ANDROID_HOST=Linux',
820 # Pull in specific files for host builds.
821 ['include', '^atomicops_internals_x86_gcc\\.cc$'],
822 ['include', '^threading/platform_thread_linux\\.cc$'],
825 ['OS == "android" and <(android_webview_build)==1', {
827 # WebView builds as part of the system which already has sincos;
828 # avoid defining it again as it causes a linker warning.
829 'ANDROID_SINCOS_PROVIDED',
832 ['OS == "ios" and _toolset != "host"', {
834 # Pull in specific Mac files for iOS (which have been filtered out
835 # by file name rules).
836 ['include', '^atomicops_internals_mac\\.'],
837 ['include', '^base_paths_mac\\.'],
838 ['include', '^file_util_mac\\.'],
839 ['include', '^file_version_info_mac\\.'],
840 ['include', '^mac/bundle_locations\\.'],
841 ['include', '^mac/foundation_util\\.'],
842 ['include', '^mac/mac_logging\\.'],
843 ['include', '^mac/mach_logging\\.'],
844 ['include', '^mac/objc_property_releaser\\.'],
845 ['include', '^mac/scoped_mach_port\\.'],
846 ['include', '^mac/scoped_mach_vm\\.'],
847 ['include', '^mac/scoped_nsautorelease_pool\\.'],
848 ['include', '^mac/scoped_nsobject\\.'],
849 ['include', '^memory/discardable_memory_mac\\.'],
850 ['include', '^message_loop/message_pump_mac\\.'],
851 ['include', '^strings/sys_string_conversions_mac\\.'],
852 ['include', '^threading/platform_thread_mac\\.'],
853 ['include', '^time/time_mac\\.'],
854 ['include', '^worker_pool_mac\\.'],
855 # Exclude all process/ except the minimal implementation
856 # needed on iOS (mostly for unit tests).
857 ['exclude', '^process/.*'],
858 ['include', '^process/.*_ios\.(cc|mm)$'],
859 ['include', '^process/memory_stubs\.cc$'],
860 ['include', '^process/process_handle_posix\.cc$'],
861 ['exclude', 'files/file_path_watcher_fsevents.cc'],
862 ['exclude', 'files/file_path_watcher_fsevents.h'],
863 ['include', 'files/file_path_watcher_mac.cc'],
866 'process/memory_stubs.cc',
869 'message_loop/message_pump_libevent.cc'
872 ['OS == "ios" and _toolset == "host"', {
874 # Copied filename_rules to switch from iOS to Mac inclusions.
875 ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
876 ['include', '(^|/)(cocoa|mac)/'],
877 ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
878 ['exclude', '(^|/)ios/'],
879 ['exclude', 'files/file_path_watcher_fsevents.cc'],
880 ['exclude', 'files/file_path_watcher_fsevents.h'],
881 ['include', 'files/file_path_watcher_mac.cc'],
884 # For now, just test the *BSD platforms enough to exclude them.
885 # Subsequent changes will include them further.
886 ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
887 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
890 ['OS != "openbsd" or >(nacl_untrusted_build)==1', {
891 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
894 ['OS == "win" and >(nacl_untrusted_build)==0', {
896 '<(DEPTH)/third_party/wtl/include',
899 'event_recorder_stubs.cc',
900 'files/file_path_watcher_fsevents.cc',
901 'files/file_path_watcher_fsevents.h',
902 'files/file_path_watcher_kqueue.cc',
903 'files/file_path_watcher_kqueue.h',
904 'files/file_path_watcher_stub.cc',
905 'message_loop/message_pump_libevent.cc',
906 'posix/file_descriptor_shuffle.cc',
907 # Not using sha1_win.cc because it may have caused a
908 # regression to page cycler moz.
910 'strings/string16.cc',
913 ['<(use_ozone) == 1', {
915 'message_loop/message_pump_glib.cc',
918 ['OS == "linux" and >(nacl_untrusted_build)==0', {
920 'files/file_path_watcher_fsevents.cc',
921 'files/file_path_watcher_fsevents.h',
922 'files/file_path_watcher_kqueue.cc',
923 'files/file_path_watcher_kqueue.h',
924 'files/file_path_watcher_stub.cc',
927 ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', {
929 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
930 ['exclude', '^base_paths_posix\\.cc$'],
931 ['exclude', '^native_library_posix\\.cc$'],
932 ['exclude', '^strings/sys_string_conversions_posix\\.cc$'],
935 ['<(os_bsd)==1 and >(nacl_untrusted_build)==0', {
937 'process/memory_stubs.cc',
940 ['exclude', '^files/file_path_watcher_linux\\.cc$'],
941 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
942 ['exclude', '^file_util_linux\\.cc$'],
943 ['exclude', '^process/process_linux\\.cc$'],
944 ['exclude', '^sys_info_linux\\.cc$'],
947 # Remove all unnecessary files for build_nexe.py to avoid exceeding
948 # command-line-string limitation when building NaCl on Windows.
949 ['OS == "win" and >(nacl_untrusted_build)==1', {
950 'sources/': [ ['exclude', '\\.h$'] ],
954 ['base_i18n_target==1', {
956 'BASE_I18N_IMPLEMENTATION',
959 'i18n/base_i18n_export.h',
960 'i18n/bidi_line_iterator.cc',
961 'i18n/bidi_line_iterator.h',
962 'i18n/break_iterator.cc',
963 'i18n/break_iterator.h',
964 'i18n/case_conversion.cc',
965 'i18n/case_conversion.h',
966 'i18n/char_iterator.cc',
967 'i18n/char_iterator.h',
968 'i18n/file_util_icu.cc',
969 'i18n/file_util_icu.h',
970 'i18n/i18n_constants.cc',
971 'i18n/i18n_constants.h',
972 'i18n/icu_encoding_detection.cc',
973 'i18n/icu_encoding_detection.h',
974 'i18n/icu_string_conversions.cc',
975 'i18n/icu_string_conversions.h',
978 'i18n/number_formatting.cc',
979 'i18n/number_formatting.h',
982 'i18n/streaming_utf8_validator.cc',
983 'i18n/streaming_utf8_validator.h',
984 'i18n/string_compare.cc',
985 'i18n/string_compare.h',
986 'i18n/string_search.cc',
987 'i18n/string_search.h',
988 'i18n/time_formatting.cc',
989 'i18n/time_formatting.h',
992 'i18n/utf8_validator_tables.cc',
993 'i18n/utf8_validator_tables.h',