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/event_log.cc',
41 'android/event_log.h',
42 'android/field_trial_list.cc',
43 'android/field_trial_list.h',
44 'android/fifo_utils.cc',
45 'android/fifo_utils.h',
46 'android/important_file_writer_android.cc',
47 'android/important_file_writer_android.h',
48 'android/locale_utils.h',
49 'android/locale_utils.cc',
50 'android/scoped_java_ref.cc',
51 'android/scoped_java_ref.h',
52 'android/jni_android.cc',
53 'android/jni_android.h',
54 'android/jni_array.cc',
55 'android/jni_array.h',
56 'android/jni_registrar.cc',
57 'android/jni_registrar.h',
58 'android/jni_string.cc',
59 'android/jni_string.h',
60 'android/jni_utils.cc',
61 'android/jni_utils.h',
62 'android/jni_weak_ref.cc',
63 'android/jni_weak_ref.h',
64 'android/library_loader/library_loader_hooks.cc',
65 'android/library_loader/library_loader_hooks.h',
66 'android/library_loader/library_load_from_apk_status_codes.h',
67 'android/memory_pressure_listener_android.cc',
68 'android/memory_pressure_listener_android.h',
69 'android/java_handler_thread.cc',
70 'android/java_handler_thread.h',
71 'android/path_service_android.cc',
72 'android/path_service_android.h',
73 'android/path_utils.cc',
74 'android/path_utils.h',
75 'android/sys_utils.cc',
76 'android/sys_utils.h',
77 'android/thread_utils.h',
78 'android/trace_event_binding.cc',
79 'android/trace_event_binding.h',
83 'atomic_sequence_num.h',
85 'atomicops_internals_gcc.h',
86 'atomicops_internals_mac.h',
87 'atomicops_internals_portable.h',
88 'atomicops_internals_x86_gcc.cc',
89 'atomicops_internals_x86_gcc.h',
90 'atomicops_internals_x86_msvc.h',
98 'base_paths_android.cc',
99 'base_paths_android.h',
102 'base_paths_posix.cc',
103 'base_paths_posix.h',
114 'bind_internal_win.h',
119 'callback_helpers.cc',
120 'callback_helpers.h',
121 'callback_internal.cc',
122 'callback_internal.h',
124 'cancelable_callback.h',
125 'chromeos/memory_pressure_observer_chromeos.cc',
126 'chromeos/memory_pressure_observer_chromeos.h',
129 'compiler_specific.h',
130 'containers/adapters.h',
131 'containers/hash_tables.h',
132 'containers/linked_list.h',
133 'containers/mru_cache.h',
134 'containers/scoped_ptr_hash_map.h',
135 'containers/small_map.h',
136 'containers/stack_container.h',
139 'critical_closure.h',
140 'critical_closure_internal_ios.mm',
143 'debug/asan_invalid_access.cc',
144 'debug/asan_invalid_access.h',
145 'debug/crash_logging.cc',
146 'debug/crash_logging.h',
149 'debug/debugger_posix.cc',
150 'debug/debugger_win.cc',
151 'debug/dump_without_crashing.cc',
152 'debug/dump_without_crashing.h',
153 'debug/gdi_debug_util_win.cc',
154 'debug/gdi_debug_util_win.h',
155 # This file depends on files from the 'allocator' target,
156 # but this target does not depend on 'allocator' (see
157 # allocator.gyp for details).
158 'debug/leak_annotations.h',
159 'debug/leak_tracker.h',
160 'debug/proc_maps_linux.cc',
161 'debug/proc_maps_linux.h',
164 'debug/stack_trace.cc',
165 'debug/stack_trace.h',
166 'debug/stack_trace_android.cc',
167 'debug/stack_trace_posix.cc',
168 'debug/stack_trace_win.cc',
169 'debug/task_annotator.cc',
170 'debug/task_annotator.h',
171 'debug/trace_event.h',
172 'debug/trace_event_android.cc',
173 'debug/trace_event_argument.cc',
174 'debug/trace_event_argument.h',
175 'debug/trace_event_impl.cc',
176 'debug/trace_event_impl.h',
177 'debug/trace_event_impl_constants.cc',
178 'debug/trace_event_synthetic_delay.cc',
179 'debug/trace_event_synthetic_delay.h',
180 'debug/trace_event_system_stats_monitor.cc',
181 'debug/trace_event_memory.cc',
182 'debug/trace_event_memory.h',
183 'debug/trace_event_win.cc',
184 'deferred_sequenced_task_runner.cc',
185 'deferred_sequenced_task_runner.h',
188 'file_descriptor_posix.h',
189 'file_version_info.h',
190 'file_version_info_mac.h',
191 'file_version_info_mac.mm',
192 'file_version_info_win.cc',
193 'file_version_info_win.h',
194 'files/dir_reader_fallback.h',
195 'files/dir_reader_linux.h',
196 'files/dir_reader_posix.h',
199 'files/file_enumerator.cc',
200 'files/file_enumerator.h',
201 'files/file_enumerator_posix.cc',
202 'files/file_enumerator_win.cc',
203 'files/file_path.cc',
205 'files/file_path_constants.cc',
206 'files/file_path_watcher.cc',
207 'files/file_path_watcher.h',
208 'files/file_path_watcher_fsevents.cc',
209 'files/file_path_watcher_fsevents.h',
210 'files/file_path_watcher_kqueue.cc',
211 'files/file_path_watcher_kqueue.h',
212 'files/file_path_watcher_linux.cc',
213 'files/file_path_watcher_mac.cc',
214 'files/file_path_watcher_stub.cc',
215 'files/file_path_watcher_win.cc',
216 'files/file_posix.cc',
217 'files/file_proxy.cc',
218 'files/file_proxy.h',
219 'files/file_util.cc',
221 'files/file_util_android.cc',
222 'files/file_util_linux.cc',
223 'files/file_util_mac.mm',
224 'files/file_util_posix.cc',
225 'files/file_util_proxy.cc',
226 'files/file_util_proxy.h',
227 'files/file_util_win.cc',
229 'files/important_file_writer.h',
230 'files/important_file_writer.cc',
231 'files/memory_mapped_file.cc',
232 'files/memory_mapped_file.h',
233 'files/memory_mapped_file_posix.cc',
234 'files/memory_mapped_file_win.cc',
235 'files/scoped_file.cc',
236 'files/scoped_file.h',
237 'files/scoped_temp_dir.cc',
238 'files/scoped_temp_dir.h',
251 'ios/device_util.mm',
254 'ios/scoped_critical_action.h',
255 'ios/scoped_critical_action.mm',
256 'ios/weak_nsobject.h',
257 'ios/weak_nsobject.mm',
258 'json/json_file_value_serializer.cc',
259 'json/json_file_value_serializer.h',
260 'json/json_parser.cc',
261 'json/json_parser.h',
262 'json/json_reader.cc',
263 'json/json_reader.h',
264 'json/json_string_value_serializer.cc',
265 'json/json_string_value_serializer.h',
266 'json/json_value_converter.cc',
267 'json/json_value_converter.h',
268 'json/json_writer.cc',
269 'json/json_writer.h',
270 'json/string_escape.cc',
271 'json/string_escape.h',
280 'mac/authorization_util.h',
281 'mac/authorization_util.mm',
282 'mac/bind_objc_block.h',
283 'mac/bundle_locations.h',
284 'mac/bundle_locations.mm',
285 'mac/close_nocancel.cc',
286 'mac/cocoa_protocols.h',
287 'mac/foundation_util.h',
288 'mac/foundation_util.mm',
289 'mac/launch_services_util.cc',
290 'mac/launch_services_util.h',
293 'mac/libdispatch_task_runner.cc',
294 'mac/libdispatch_task_runner.h',
296 'mac/mac_logging.cc',
299 'mac/mach_logging.cc',
300 'mac/mach_logging.h',
301 'mac/objc_property_releaser.h',
302 'mac/objc_property_releaser.mm',
303 'mac/os_crash_dumps.cc',
304 'mac/os_crash_dumps.h',
305 'mac/scoped_aedesc.h',
306 'mac/scoped_authorizationref.h',
307 'mac/scoped_block.h',
308 'mac/scoped_cftyperef.h',
309 'mac/scoped_ioobject.h',
310 'mac/scoped_ioplugininterface.h',
311 'mac/scoped_launch_data.h',
312 'mac/scoped_mach_port.cc',
313 'mac/scoped_mach_port.h',
314 'mac/scoped_mach_vm.cc',
315 'mac/scoped_mach_vm.h',
316 'mac/scoped_nsautorelease_pool.h',
317 'mac/scoped_nsautorelease_pool.mm',
318 'mac/scoped_nsexception_enabler.h',
319 'mac/scoped_nsexception_enabler.mm',
320 'mac/scoped_nsobject.h',
321 'mac/scoped_objc_class_swizzler.h',
322 'mac/scoped_objc_class_swizzler.mm',
323 'mac/scoped_sending_event.h',
324 'mac/scoped_sending_event.mm',
325 'mac/scoped_typeref.h',
326 'mac/sdk_forward_declarations.h',
327 'mac/sdk_forward_declarations.mm',
331 'memory/aligned_memory.cc',
332 'memory/aligned_memory.h',
333 'memory/discardable_memory.cc',
334 'memory/discardable_memory.h',
335 'memory/discardable_memory_android.cc',
336 'memory/discardable_memory_emulated.cc',
337 'memory/discardable_memory_emulated.h',
338 'memory/discardable_memory_linux.cc',
339 'memory/discardable_memory_mac.cc',
340 'memory/discardable_memory_manager.cc',
341 'memory/discardable_memory_manager.h',
342 'memory/discardable_memory_shmem.cc',
343 'memory/discardable_memory_shmem.h',
344 'memory/discardable_memory_shmem_allocator.cc',
345 'memory/discardable_memory_shmem_allocator.h',
346 'memory/discardable_memory_win.cc',
347 'memory/discardable_shared_memory.cc',
348 'memory/discardable_shared_memory.h',
349 'memory/linked_ptr.h',
350 'memory/manual_constructor.h',
351 'memory/memory_pressure_listener.cc',
352 'memory/memory_pressure_listener.h',
353 'memory/raw_scoped_refptr_mismatch_checker.h',
354 'memory/ref_counted.cc',
355 'memory/ref_counted.h',
356 'memory/ref_counted_delete_on_message_loop.h',
357 'memory/ref_counted_memory.cc',
358 'memory/ref_counted_memory.h',
359 'memory/scoped_open_process.h',
360 'memory/scoped_policy.h',
361 'memory/scoped_ptr.h',
362 'memory/scoped_vector.h',
363 'memory/shared_memory.h',
364 'memory/shared_memory_android.cc',
365 'memory/shared_memory_nacl.cc',
366 'memory/shared_memory_posix.cc',
367 'memory/shared_memory_win.cc',
368 'memory/singleton.cc',
369 'memory/singleton.h',
370 'memory/weak_ptr.cc',
372 'message_loop/incoming_task_queue.cc',
373 'message_loop/incoming_task_queue.h',
374 'message_loop/message_loop.cc',
375 'message_loop/message_loop.h',
376 'message_loop/message_loop_proxy.cc',
377 'message_loop/message_loop_proxy.h',
378 'message_loop/message_loop_proxy_impl.cc',
379 'message_loop/message_loop_proxy_impl.h',
380 'message_loop/message_pump.cc',
381 'message_loop/message_pump.h',
382 'message_loop/message_pump_android.cc',
383 'message_loop/message_pump_android.h',
384 'message_loop/message_pump_default.cc',
385 'message_loop/message_pump_default.h',
386 'message_loop/message_pump_win.cc',
387 'message_loop/message_pump_win.h',
388 'message_loop/timer_slack.h',
389 'metrics/sample_map.cc',
390 'metrics/sample_map.h',
391 'metrics/sample_vector.cc',
392 'metrics/sample_vector.h',
393 'metrics/bucket_ranges.cc',
394 'metrics/bucket_ranges.h',
395 'metrics/histogram.cc',
396 'metrics/histogram.h',
397 'metrics/histogram_base.cc',
398 'metrics/histogram_base.h',
399 'metrics/histogram_delta_serialization.cc',
400 'metrics/histogram_delta_serialization.h',
401 'metrics/histogram_flattener.h',
402 'metrics/histogram_macros.h',
403 'metrics/histogram_samples.cc',
404 'metrics/histogram_samples.h',
405 'metrics/histogram_snapshot_manager.cc',
406 'metrics/histogram_snapshot_manager.h',
407 'metrics/sparse_histogram.cc',
408 'metrics/sparse_histogram.h',
409 'metrics/statistics_recorder.cc',
410 'metrics/statistics_recorder.h',
411 'metrics/stats_counters.cc',
412 'metrics/stats_counters.h',
413 'metrics/stats_table.cc',
414 'metrics/stats_table.h',
415 'metrics/user_metrics.cc',
416 'metrics/user_metrics.h',
417 'metrics/user_metrics_action.h',
420 'native_library_mac.mm',
421 'native_library_posix.cc',
422 'native_library_win.cc',
423 'nix/mime_util_xdg.cc',
424 'nix/mime_util_xdg.h',
428 'observer_list_threadsafe.h',
429 'os_compat_android.cc',
430 'os_compat_android.h',
440 'posix/eintr_wrapper.h',
441 'posix/global_descriptors.cc',
442 'posix/global_descriptors.h',
443 'posix/unix_domain_socket_linux.cc',
444 'posix/unix_domain_socket_linux.h',
445 'power_monitor/power_monitor.cc',
446 'power_monitor/power_monitor.h',
447 'power_monitor/power_monitor_device_source_android.cc',
448 'power_monitor/power_monitor_device_source_android.h',
449 'power_monitor/power_monitor_device_source_chromeos.cc',
450 'power_monitor/power_monitor_device_source.cc',
451 'power_monitor/power_monitor_device_source.h',
452 'power_monitor/power_monitor_device_source_ios.mm',
453 'power_monitor/power_monitor_device_source_mac.mm',
454 'power_monitor/power_monitor_device_source_posix.cc',
455 'power_monitor/power_monitor_device_source_win.cc',
456 'power_monitor/power_monitor_source.cc',
457 'power_monitor/power_monitor_source.h',
458 'power_monitor/power_observer.h',
459 'process/internal_linux.cc',
460 'process/internal_linux.h',
463 'process/kill_mac.cc',
464 'process/kill_posix.cc',
465 'process/kill_win.cc',
468 'process/launch_ios.cc',
469 'process/launch_mac.cc',
470 'process/launch_posix.cc',
471 'process/launch_win.cc',
474 'process/memory_linux.cc',
475 'process/memory_mac.mm',
476 'process/memory_win.cc',
478 'process/process_handle_freebsd.cc',
479 'process/process_handle_linux.cc',
480 'process/process_handle_mac.cc',
481 'process/process_handle_openbsd.cc',
482 'process/process_handle_posix.cc',
483 'process/process_handle_win.cc',
484 'process/process_info.h',
485 'process/process_info_linux.cc',
486 'process/process_info_mac.cc',
487 'process/process_info_win.cc',
488 'process/process_iterator.cc',
489 'process/process_iterator.h',
490 'process/process_iterator_freebsd.cc',
491 'process/process_iterator_linux.cc',
492 'process/process_iterator_mac.cc',
493 'process/process_iterator_openbsd.cc',
494 'process/process_iterator_win.cc',
495 'process/process_linux.cc',
496 'process/process_metrics.h',
497 'process/process_metrics.cc',
498 'process/process_metrics_freebsd.cc',
499 'process/process_metrics_ios.cc',
500 'process/process_metrics_linux.cc',
501 'process/process_metrics_mac.cc',
502 'process/process_metrics_openbsd.cc',
503 'process/process_metrics_posix.cc',
504 'process/process_metrics_win.cc',
505 'process/process_posix.cc',
506 'process/process_win.cc',
507 'profiler/alternate_timer.cc',
508 'profiler/alternate_timer.h',
509 'profiler/scoped_profile.cc',
510 'profiler/scoped_profile.h',
511 'profiler/scoped_tracker.cc',
512 'profiler/scoped_tracker.h',
513 'profiler/tracked_time.cc',
514 'profiler/tracked_time.h',
518 'rand_util_posix.cc',
522 'numerics/safe_conversions.h',
523 'numerics/safe_conversions_impl.h',
524 'numerics/safe_math.h',
525 'numerics/safe_math_impl.h',
526 'safe_strerror_posix.cc',
527 'safe_strerror_posix.h',
529 'scoped_native_library.cc',
530 'scoped_native_library.h',
532 'sequence_checker.h',
533 'sequence_checker_impl.cc',
534 'sequence_checker_impl.h',
535 'sequenced_task_runner.cc',
536 'sequenced_task_runner.h',
537 'sequenced_task_runner_helpers.h',
541 'single_thread_task_runner.h',
543 'strings/latin1_string_conversions.cc',
544 'strings/latin1_string_conversions.h',
545 'strings/nullable_string16.cc',
546 'strings/nullable_string16.h',
547 'strings/safe_sprintf.cc',
548 'strings/safe_sprintf.h',
549 'strings/string16.cc',
550 'strings/string16.h',
551 'strings/string_number_conversions.cc',
552 'strings/string_split.cc',
553 'strings/string_split.h',
554 'strings/string_number_conversions.h',
555 'strings/string_piece.cc',
556 'strings/string_piece.h',
557 'strings/string_tokenizer.h',
558 'strings/string_util.cc',
559 'strings/string_util.h',
560 'strings/string_util_constants.cc',
561 'strings/string_util_posix.h',
562 'strings/string_util_win.h',
563 'strings/stringize_macros.h',
564 'strings/stringprintf.cc',
565 'strings/stringprintf.h',
566 'strings/sys_string_conversions.h',
567 'strings/sys_string_conversions_mac.mm',
568 'strings/sys_string_conversions_posix.cc',
569 'strings/sys_string_conversions_win.cc',
570 'strings/utf_offset_string_conversions.cc',
571 'strings/utf_offset_string_conversions.h',
572 'strings/utf_string_conversion_utils.cc',
573 'strings/utf_string_conversion_utils.h',
574 'strings/utf_string_conversions.cc',
575 'strings/utf_string_conversions.h',
576 'supports_user_data.cc',
577 'supports_user_data.h',
578 'synchronization/cancellation_flag.cc',
579 'synchronization/cancellation_flag.h',
580 'synchronization/condition_variable.h',
581 'synchronization/condition_variable_posix.cc',
582 'synchronization/condition_variable_win.cc',
583 'synchronization/lock.cc',
584 'synchronization/lock.h',
585 'synchronization/lock_impl.h',
586 'synchronization/lock_impl_posix.cc',
587 'synchronization/lock_impl_win.cc',
588 'synchronization/spin_wait.h',
589 'synchronization/waitable_event.h',
590 'synchronization/waitable_event_posix.cc',
591 'synchronization/waitable_event_watcher.h',
592 'synchronization/waitable_event_watcher_posix.cc',
593 'synchronization/waitable_event_watcher_win.cc',
594 'synchronization/waitable_event_win.cc',
595 'system_monitor/system_monitor.cc',
596 'system_monitor/system_monitor.h',
600 'sys_info_android.cc',
601 'sys_info_chromeos.cc',
602 'sys_info_freebsd.cc',
603 'sys_info_internal.h',
607 'sys_info_openbsd.cc',
610 'task/cancelable_task_tracker.cc',
611 'task/cancelable_task_tracker.h',
614 'task_runner_util.h',
616 'thread_task_runner_handle.cc',
617 'thread_task_runner_handle.h',
618 'threading/non_thread_safe.h',
619 'threading/non_thread_safe_impl.cc',
620 'threading/non_thread_safe_impl.h',
621 'threading/platform_thread.h',
622 'threading/platform_thread_android.cc',
623 'threading/platform_thread_linux.cc',
624 'threading/platform_thread_mac.mm',
625 'threading/platform_thread_posix.cc',
626 'threading/platform_thread_win.cc',
627 'threading/post_task_and_reply_impl.cc',
628 'threading/post_task_and_reply_impl.h',
629 'threading/sequenced_worker_pool.cc',
630 'threading/sequenced_worker_pool.h',
631 'threading/simple_thread.cc',
632 'threading/simple_thread.h',
633 'threading/thread.cc',
634 'threading/thread.h',
635 'threading/thread_checker.h',
636 'threading/thread_checker_impl.cc',
637 'threading/thread_checker_impl.h',
638 'threading/thread_collision_warner.cc',
639 'threading/thread_collision_warner.h',
640 'threading/thread_id_name_manager.cc',
641 'threading/thread_id_name_manager.h',
642 'threading/thread_local.h',
643 'threading/thread_local_android.cc',
644 'threading/thread_local_posix.cc',
645 'threading/thread_local_storage.cc',
646 'threading/thread_local_storage.h',
647 'threading/thread_local_storage_posix.cc',
648 'threading/thread_local_storage_win.cc',
649 'threading/thread_local_win.cc',
650 'threading/thread_restrictions.h',
651 'threading/thread_restrictions.cc',
652 'threading/watchdog.cc',
653 'threading/watchdog.h',
654 'threading/worker_pool.h',
655 'threading/worker_pool.cc',
656 'threading/worker_pool_posix.cc',
657 'threading/worker_pool_posix.h',
658 'threading/worker_pool_win.cc',
661 'time/default_clock.cc',
662 'time/default_clock.h',
663 'time/default_tick_clock.cc',
664 'time/default_tick_clock.h',
665 'time/tick_clock.cc',
670 'time/time_posix.cc',
672 'timer/elapsed_timer.cc',
673 'timer/elapsed_timer.h',
674 'timer/hi_res_timer_manager.h',
675 'timer/hi_res_timer_manager_posix.cc',
676 'timer/hi_res_timer_manager_win.cc',
677 'timer/mock_timer.cc',
678 'timer/mock_timer.h',
681 'tracked_objects.cc',
688 'value_conversions.cc',
689 'value_conversions.h',
694 'win/enum_variant.cc',
695 'win/enum_variant.h',
696 'win/event_trace_consumer.h',
697 'win/event_trace_controller.cc',
698 'win/event_trace_controller.h',
699 'win/event_trace_provider.cc',
700 'win/event_trace_provider.h',
703 'win/iat_patch_function.cc',
704 'win/iat_patch_function.h',
705 'win/iunknown_impl.cc',
706 'win/iunknown_impl.h',
707 'win/message_window.cc',
708 'win/message_window.h',
711 'win/object_watcher.cc',
712 'win/object_watcher.h',
715 'win/resource_util.cc',
716 'win/resource_util.h',
717 'win/scoped_bstr.cc',
719 'win/scoped_co_mem.h',
720 'win/scoped_com_initializer.h',
721 'win/scoped_comptr.h',
722 'win/scoped_gdi_object.h',
723 'win/scoped_handle.cc',
724 'win/scoped_handle.h',
726 'win/scoped_hglobal.h',
727 'win/scoped_process_information.cc',
728 'win/scoped_process_information.h',
729 'win/scoped_propvariant.h',
730 'win/scoped_select_object.h',
731 'win/scoped_variant.cc',
732 'win/scoped_variant.h',
735 'win/startup_information.cc',
736 'win/startup_information.h',
739 'win/windows_version.cc',
740 'win/windows_version.h',
741 'win/wrapped_window_proc.cc',
742 'win/wrapped_window_proc.h',
745 'BASE_IMPLEMENTATION',
750 'msvs_disabled_warnings': [
753 'target_conditions': [
754 ['(<(desktop_linux) == 0 and <(chromeos) == 0) or >(nacl_untrusted_build)==1', {
756 ['exclude', '^nix/'],
759 'atomicops_internals_x86_gcc.cc',
762 ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
764 'message_loop/message_pump_glib.cc',
767 ['(OS != "linux" and <(os_bsd) != 1 and OS != "android") or >(nacl_untrusted_build)==1', {
769 # Not automatically excluded by the *linux.cc rules.
774 ['>(nacl_untrusted_build)==1', {
776 'allocator/type_profiler_control.cc',
777 'allocator/type_profiler_control.h',
780 'debug/stack_trace_posix.cc',
781 'files/file_enumerator_posix.cc',
782 'files/file_path_watcher_fsevents.cc',
783 'files/file_path_watcher_fsevents.h',
784 'files/file_path_watcher_kqueue.cc',
785 'files/file_path_watcher_kqueue.h',
786 'files/file_proxy.cc',
787 'files/file_util.cc',
788 'files/file_util_posix.cc',
789 'files/file_util_proxy.cc',
790 'memory/shared_memory_posix.cc',
791 'native_library_posix.cc',
793 'posix/unix_domain_socket_linux.cc',
794 'process/kill_posix.cc',
795 'process/launch_posix.cc',
796 'process/process_metrics_posix.cc',
797 'process/process_posix.cc',
798 'rand_util_posix.cc',
799 'scoped_native_library.cc',
800 'files/scoped_temp_dir.cc',
802 'third_party/dynamic_annotations/dynamic_annotations.c',
805 ['include', '^threading/platform_thread_linux\\.cc$'],
808 ['OS == "android" and _toolset == "target" and >(nacl_untrusted_build)==0', {
810 'memory/discardable_memory_ashmem_allocator.cc',
811 'memory/discardable_memory_ashmem_allocator.h',
812 'memory/discardable_memory_ashmem.cc',
813 'memory/discardable_memory_ashmem.h',
816 ['OS == "android" and >(nacl_untrusted_build)==0', {
818 'base_paths_posix.cc',
819 'files/file_path_watcher_fsevents.cc',
820 'files/file_path_watcher_fsevents.h',
821 'files/file_path_watcher_kqueue.cc',
822 'files/file_path_watcher_kqueue.h',
823 'files/file_path_watcher_stub.cc',
824 'power_monitor/power_monitor_device_source_posix.cc',
827 ['include', '^debug/proc_maps_linux\\.cc$'],
828 ['include', '^files/file_path_watcher_linux\\.cc$'],
829 ['include', '^process/memory_linux\\.cc$'],
830 ['include', '^process/internal_linux\\.cc$'],
831 ['include', '^process/process_handle_linux\\.cc$'],
832 ['include', '^process/process_iterator\\.cc$'],
833 ['include', '^process/process_iterator_linux\\.cc$'],
834 ['include', '^process/process_metrics_linux\\.cc$'],
835 ['include', '^posix/unix_domain_socket_linux\\.cc$'],
836 ['include', '^strings/sys_string_conversions_posix\\.cc$'],
837 ['include', '^sys_info_linux\\.cc$'],
838 ['include', '^worker_pool_linux\\.cc$'],
841 ['OS == "android" and _toolset == "host" and host_os == "linux"', {
843 'OS_ANDROID_HOST=Linux',
846 # Pull in specific files for host builds.
847 ['include', '^atomicops_internals_x86_gcc\\.cc$'],
848 ['include', '^threading/platform_thread_linux\\.cc$'],
851 ['OS == "android" and <(android_webview_build)==1', {
853 # WebView builds as part of the system which already has sincos;
854 # avoid defining it again as it causes a linker warning.
855 'ANDROID_SINCOS_PROVIDED',
858 ['<(chromeos) == 1', {
860 'power_monitor/power_monitor_device_source_posix.cc',
863 ['OS == "ios" and _toolset != "host"', {
865 # Pull in specific Mac files for iOS (which have been filtered out
866 # by file name rules).
867 ['include', '^atomicops_internals_mac\\.'],
868 ['include', '^base_paths_mac\\.'],
869 ['include', '^files/file_util_mac\\.'],
870 ['include', '^file_version_info_mac\\.'],
871 ['include', '^mac/bundle_locations\\.'],
872 ['include', '^mac/foundation_util\\.'],
873 ['include', '^mac/mac_logging\\.'],
874 ['include', '^mac/mach_logging\\.'],
875 ['include', '^mac/objc_property_releaser\\.'],
876 ['include', '^mac/scoped_mach_port\\.'],
877 ['include', '^mac/scoped_mach_vm\\.'],
878 ['include', '^mac/scoped_nsautorelease_pool\\.'],
879 ['include', '^mac/scoped_nsobject\\.'],
880 ['include', '^memory/discardable_memory_mac\\.'],
881 ['include', '^message_loop/message_pump_mac\\.'],
882 ['include', '^strings/sys_string_conversions_mac\\.'],
883 ['include', '^threading/platform_thread_mac\\.'],
884 ['include', '^time/time_mac\\.'],
885 ['include', '^worker_pool_mac\\.'],
886 # Exclude all process/ except the minimal implementation
887 # needed on iOS (mostly for unit tests).
888 ['exclude', '^process/.*'],
889 ['include', '^process/.*_ios\.(cc|mm)$'],
890 ['include', '^process/memory_stubs\.cc$'],
891 ['include', '^process/process_handle_posix\.cc$'],
892 ['exclude', 'files/file_path_watcher_fsevents.cc'],
893 ['exclude', 'files/file_path_watcher_fsevents.h'],
894 ['include', 'files/file_path_watcher_mac.cc'],
897 'process/memory_stubs.cc',
900 'message_loop/message_pump_libevent.cc'
903 ['OS == "ios" and _toolset == "host"', {
905 # Copied filename_rules to switch from iOS to Mac inclusions.
906 ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
907 ['include', '(^|/)(cocoa|mac)/'],
908 ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
909 ['exclude', '(^|/)ios/'],
910 ['exclude', 'files/file_path_watcher_fsevents.cc'],
911 ['exclude', 'files/file_path_watcher_fsevents.h'],
912 ['include', 'files/file_path_watcher_mac.cc'],
915 # For now, just test the *BSD platforms enough to exclude them.
916 # Subsequent changes will include them further.
917 ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
918 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
921 ['OS != "openbsd" or >(nacl_untrusted_build)==1', {
922 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
925 ['OS == "win" and >(nacl_untrusted_build)==0', {
927 '<(DEPTH)/third_party/wtl/include',
930 'event_recorder_stubs.cc',
931 'files/file_path_watcher_fsevents.cc',
932 'files/file_path_watcher_fsevents.h',
933 'files/file_path_watcher_kqueue.cc',
934 'files/file_path_watcher_kqueue.h',
935 'files/file_path_watcher_stub.cc',
936 'message_loop/message_pump_libevent.cc',
937 'posix/file_descriptor_shuffle.cc',
938 # Not using sha1_win.cc because it may have caused a
939 # regression to page cycler moz.
941 'strings/string16.cc',
944 ['<(use_ozone) == 1', {
946 'message_loop/message_pump_glib.cc',
949 ['OS == "linux" and >(nacl_untrusted_build)==0', {
951 'files/file_path_watcher_fsevents.cc',
952 'files/file_path_watcher_fsevents.h',
953 'files/file_path_watcher_kqueue.cc',
954 'files/file_path_watcher_kqueue.h',
955 'files/file_path_watcher_stub.cc',
958 ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', {
960 'memory/discardable_memory_mach.cc',
961 'memory/discardable_memory_mach.h',
964 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
965 ['exclude', '^base_paths_posix\\.cc$'],
966 ['exclude', '^native_library_posix\\.cc$'],
967 ['exclude', '^strings/sys_string_conversions_posix\\.cc$'],
970 ['<(os_bsd)==1 and >(nacl_untrusted_build)==0', {
972 'process/memory_stubs.cc',
975 ['exclude', '^files/file_path_watcher_linux\\.cc$'],
976 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
977 ['exclude', '^files/file_util_linux\\.cc$'],
978 ['exclude', '^process/process_linux\\.cc$'],
979 ['exclude', '^sys_info_linux\\.cc$'],
982 # Remove all unnecessary files for build_nexe.py to avoid exceeding
983 # command-line-string limitation when building NaCl on Windows.
984 ['OS == "win" and >(nacl_untrusted_build)==1', {
985 'sources/': [ ['exclude', '\\.h$'] ],
987 # Enable more direct string conversions on platforms with native utf8
989 ['OS=="mac" or OS=="ios" or <(chromeos)==1 or <(chromecast)==1', {
990 'defines': ['SYSTEM_NATIVE_UTF8'],
994 ['base_i18n_target==1', {
996 'BASE_I18N_IMPLEMENTATION',
999 'i18n/base_i18n_export.h',
1000 'i18n/bidi_line_iterator.cc',
1001 'i18n/bidi_line_iterator.h',
1002 'i18n/break_iterator.cc',
1003 'i18n/break_iterator.h',
1004 'i18n/case_conversion.cc',
1005 'i18n/case_conversion.h',
1006 'i18n/char_iterator.cc',
1007 'i18n/char_iterator.h',
1008 'i18n/file_util_icu.cc',
1009 'i18n/file_util_icu.h',
1010 'i18n/i18n_constants.cc',
1011 'i18n/i18n_constants.h',
1012 'i18n/icu_encoding_detection.cc',
1013 'i18n/icu_encoding_detection.h',
1014 'i18n/icu_string_conversions.cc',
1015 'i18n/icu_string_conversions.h',
1018 'i18n/number_formatting.cc',
1019 'i18n/number_formatting.h',
1022 'i18n/streaming_utf8_validator.cc',
1023 'i18n/streaming_utf8_validator.h',
1024 'i18n/string_compare.cc',
1025 'i18n/string_compare.h',
1026 'i18n/string_search.cc',
1027 'i18n/string_search.h',
1028 'i18n/time_formatting.cc',
1029 'i18n/time_formatting.h',
1032 'i18n/utf8_validator_tables.cc',
1033 'i18n/utf8_validator_tables.h',