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.
7 'trace_event/trace_event.gypi',
12 'base_i18n_target': 0,
14 'target_conditions': [
15 # This part is shared between the targets defined below.
18 '../build/build_config.h',
19 'allocator/allocator_extension.cc',
20 'allocator/allocator_extension.h',
21 'allocator/type_profiler_control.cc',
22 'allocator/type_profiler_control.h',
23 'android/animation_frame_time_histogram.cc',
24 'android/animation_frame_time_histogram.h',
25 'android/application_status_listener.cc',
26 'android/application_status_listener.h',
27 'android/base_jni_onload.cc',
28 'android/base_jni_onload.h',
29 'android/base_jni_registrar.cc',
30 'android/base_jni_registrar.h',
31 'android/build_info.cc',
32 'android/build_info.h',
33 'android/command_line_android.cc',
34 'android/command_line_android.h',
35 'android/content_uri_utils.cc',
36 'android/content_uri_utils.h',
37 'android/cpu_features.cc',
38 'android/event_log.cc',
39 'android/event_log.h',
40 'android/field_trial_list.cc',
41 'android/field_trial_list.h',
42 'android/fifo_utils.cc',
43 'android/fifo_utils.h',
44 'android/important_file_writer_android.cc',
45 'android/important_file_writer_android.h',
46 'android/java_handler_thread.cc',
47 'android/java_handler_thread.h',
48 'android/jni_android.cc',
49 'android/jni_android.h',
50 'android/jni_array.cc',
51 'android/jni_array.h',
52 'android/jni_registrar.cc',
53 'android/jni_registrar.h',
54 'android/jni_string.cc',
55 'android/jni_string.h',
56 'android/jni_utils.cc',
57 'android/jni_utils.h',
58 'android/jni_weak_ref.cc',
59 'android/jni_weak_ref.h',
60 'android/library_loader/library_load_from_apk_status_codes.h',
61 'android/library_loader/library_loader_hooks.cc',
62 'android/library_loader/library_loader_hooks.h',
63 'android/locale_utils.cc',
64 'android/locale_utils.h',
65 'android/memory_pressure_listener_android.cc',
66 'android/memory_pressure_listener_android.h',
67 'android/path_service_android.cc',
68 'android/path_service_android.h',
69 'android/path_utils.cc',
70 'android/path_utils.h',
71 'android/record_histogram.cc',
72 'android/record_histogram.h',
73 'android/scoped_java_ref.cc',
74 'android/scoped_java_ref.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 'deferred_sequenced_task_runner.cc',
172 'deferred_sequenced_task_runner.h',
175 'file_descriptor_posix.h',
176 'file_version_info.h',
177 'file_version_info_mac.h',
178 'file_version_info_mac.mm',
179 'file_version_info_win.cc',
180 'file_version_info_win.h',
181 'files/dir_reader_fallback.h',
182 'files/dir_reader_linux.h',
183 'files/dir_reader_posix.h',
186 'files/file_enumerator.cc',
187 'files/file_enumerator.h',
188 'files/file_enumerator_posix.cc',
189 'files/file_enumerator_win.cc',
190 'files/file_path.cc',
192 'files/file_path_constants.cc',
193 'files/file_path_watcher.cc',
194 'files/file_path_watcher.h',
195 'files/file_path_watcher_fsevents.cc',
196 'files/file_path_watcher_fsevents.h',
197 'files/file_path_watcher_kqueue.cc',
198 'files/file_path_watcher_kqueue.h',
199 'files/file_path_watcher_linux.cc',
200 'files/file_path_watcher_mac.cc',
201 'files/file_path_watcher_stub.cc',
202 'files/file_path_watcher_win.cc',
203 'files/file_posix.cc',
204 'files/file_proxy.cc',
205 'files/file_proxy.h',
206 'files/file_util.cc',
208 'files/file_util_android.cc',
209 'files/file_util_linux.cc',
210 'files/file_util_mac.mm',
211 'files/file_util_posix.cc',
212 'files/file_util_proxy.cc',
213 'files/file_util_proxy.h',
214 'files/file_util_win.cc',
216 'files/important_file_writer.cc',
217 'files/important_file_writer.h',
218 'files/memory_mapped_file.cc',
219 'files/memory_mapped_file.h',
220 'files/memory_mapped_file_posix.cc',
221 'files/memory_mapped_file_win.cc',
222 'files/scoped_file.cc',
223 'files/scoped_file.h',
224 'files/scoped_temp_dir.cc',
225 'files/scoped_temp_dir.h',
237 'ios/crb_protocol_observers.h',
238 'ios/crb_protocol_observers.mm',
240 'ios/device_util.mm',
243 'ios/scoped_critical_action.h',
244 'ios/scoped_critical_action.mm',
245 'ios/weak_nsobject.h',
246 'ios/weak_nsobject.mm',
247 'json/json_file_value_serializer.cc',
248 'json/json_file_value_serializer.h',
249 'json/json_parser.cc',
250 'json/json_parser.h',
251 'json/json_reader.cc',
252 'json/json_reader.h',
253 'json/json_string_value_serializer.cc',
254 'json/json_string_value_serializer.h',
255 'json/json_value_converter.cc',
256 'json/json_value_converter.h',
257 'json/json_writer.cc',
258 'json/json_writer.h',
259 'json/string_escape.cc',
260 'json/string_escape.h',
269 'mac/authorization_util.h',
270 'mac/authorization_util.mm',
271 'mac/bind_objc_block.h',
272 'mac/bundle_locations.h',
273 'mac/bundle_locations.mm',
274 'mac/close_nocancel.cc',
275 'mac/cocoa_protocols.h',
276 'mac/foundation_util.h',
277 'mac/foundation_util.mm',
278 'mac/launch_services_util.cc',
279 'mac/launch_services_util.h',
282 'mac/libdispatch_task_runner.cc',
283 'mac/libdispatch_task_runner.h',
284 'mac/mac_logging.cc',
288 'mac/mach_logging.cc',
289 'mac/mach_logging.h',
290 'mac/objc_property_releaser.h',
291 'mac/objc_property_releaser.mm',
292 'mac/os_crash_dumps.cc',
293 'mac/os_crash_dumps.h',
294 'mac/scoped_aedesc.h',
295 'mac/scoped_authorizationref.h',
296 'mac/scoped_block.h',
297 'mac/scoped_cftyperef.h',
298 'mac/scoped_ioobject.h',
299 'mac/scoped_ioplugininterface.h',
300 'mac/scoped_launch_data.h',
301 'mac/scoped_mach_port.cc',
302 'mac/scoped_mach_port.h',
303 'mac/scoped_mach_vm.cc',
304 'mac/scoped_mach_vm.h',
305 'mac/scoped_nsautorelease_pool.h',
306 'mac/scoped_nsautorelease_pool.mm',
307 'mac/scoped_nsexception_enabler.h',
308 'mac/scoped_nsexception_enabler.mm',
309 'mac/scoped_nsobject.h',
310 'mac/scoped_objc_class_swizzler.h',
311 'mac/scoped_objc_class_swizzler.mm',
312 'mac/scoped_sending_event.h',
313 'mac/scoped_sending_event.mm',
314 'mac/scoped_typeref.h',
315 'mac/sdk_forward_declarations.h',
316 'mac/sdk_forward_declarations.mm',
320 'memory/aligned_memory.cc',
321 'memory/aligned_memory.h',
322 'memory/discardable_memory.cc',
323 'memory/discardable_memory.h',
324 'memory/discardable_memory_allocator.cc',
325 'memory/discardable_memory_allocator.h',
326 'memory/discardable_shared_memory.cc',
327 'memory/discardable_shared_memory.h',
328 'memory/linked_ptr.h',
329 'memory/manual_constructor.h',
330 'memory/memory_pressure_listener.cc',
331 'memory/memory_pressure_listener.h',
332 'memory/memory_pressure_monitor.cc',
333 'memory/memory_pressure_monitor.h',
334 'memory/raw_scoped_refptr_mismatch_checker.h',
335 'memory/ref_counted.cc',
336 'memory/ref_counted.h',
337 'memory/ref_counted_delete_on_message_loop.h',
338 'memory/ref_counted_memory.cc',
339 'memory/ref_counted_memory.h',
340 'memory/scoped_policy.h',
341 'memory/scoped_ptr.h',
342 'memory/scoped_vector.h',
343 'memory/shared_memory.h',
344 'memory/shared_memory_android.cc',
345 'memory/shared_memory_nacl.cc',
346 'memory/shared_memory_posix.cc',
347 'memory/shared_memory_win.cc',
348 'memory/singleton.cc',
349 'memory/singleton.h',
350 'memory/weak_ptr.cc',
352 'message_loop/incoming_task_queue.cc',
353 'message_loop/incoming_task_queue.h',
354 'message_loop/message_loop.cc',
355 'message_loop/message_loop.h',
356 'message_loop/message_loop_proxy.cc',
357 'message_loop/message_loop_proxy.h',
358 'message_loop/message_loop_proxy_impl.cc',
359 'message_loop/message_loop_proxy_impl.h',
360 'message_loop/message_pump.cc',
361 'message_loop/message_pump.h',
362 'message_loop/message_pump_android.cc',
363 'message_loop/message_pump_android.h',
364 'message_loop/message_pump_default.cc',
365 'message_loop/message_pump_default.h',
366 'message_loop/message_pump_win.cc',
367 'message_loop/message_pump_win.h',
368 'message_loop/timer_slack.h',
369 'metrics/bucket_ranges.cc',
370 'metrics/bucket_ranges.h',
371 'metrics/histogram.cc',
372 'metrics/histogram.h',
373 'metrics/histogram_base.cc',
374 'metrics/histogram_base.h',
375 'metrics/histogram_delta_serialization.cc',
376 'metrics/histogram_delta_serialization.h',
377 'metrics/histogram_flattener.h',
378 'metrics/histogram_macros.h',
379 'metrics/histogram_samples.cc',
380 'metrics/histogram_samples.h',
381 'metrics/histogram_snapshot_manager.cc',
382 'metrics/histogram_snapshot_manager.h',
383 'metrics/sample_map.cc',
384 'metrics/sample_map.h',
385 'metrics/sample_vector.cc',
386 'metrics/sample_vector.h',
387 'metrics/sparse_histogram.cc',
388 'metrics/sparse_histogram.h',
389 'metrics/statistics_recorder.cc',
390 'metrics/statistics_recorder.h',
391 'metrics/user_metrics.cc',
392 'metrics/user_metrics.h',
393 'metrics/user_metrics_action.h',
396 'native_library_ios.mm',
397 'native_library_mac.mm',
398 'native_library_posix.cc',
399 'native_library_win.cc',
400 'nix/mime_util_xdg.cc',
401 'nix/mime_util_xdg.h',
404 'numerics/safe_conversions.h',
405 'numerics/safe_conversions_impl.h',
406 'numerics/safe_math.h',
407 'numerics/safe_math_impl.h',
409 'observer_list_threadsafe.h',
410 'os_compat_android.cc',
411 'os_compat_android.h',
421 'posix/eintr_wrapper.h',
422 'posix/global_descriptors.cc',
423 'posix/global_descriptors.h',
424 'posix/unix_domain_socket_linux.cc',
425 'posix/unix_domain_socket_linux.h',
426 'power_monitor/power_monitor.cc',
427 'power_monitor/power_monitor.h',
428 'power_monitor/power_monitor_device_source.cc',
429 'power_monitor/power_monitor_device_source.h',
430 'power_monitor/power_monitor_device_source_android.cc',
431 'power_monitor/power_monitor_device_source_android.h',
432 'power_monitor/power_monitor_device_source_chromeos.cc',
433 'power_monitor/power_monitor_device_source_ios.mm',
434 'power_monitor/power_monitor_device_source_mac.mm',
435 'power_monitor/power_monitor_device_source_posix.cc',
436 'power_monitor/power_monitor_device_source_win.cc',
437 'power_monitor/power_monitor_source.cc',
438 'power_monitor/power_monitor_source.h',
439 'power_monitor/power_observer.h',
440 'process/internal_linux.cc',
441 'process/internal_linux.h',
444 'process/kill_mac.cc',
445 'process/kill_posix.cc',
446 'process/kill_win.cc',
449 'process/launch_ios.cc',
450 'process/launch_mac.cc',
451 'process/launch_posix.cc',
452 'process/launch_win.cc',
455 'process/memory_linux.cc',
456 'process/memory_mac.mm',
457 'process/memory_win.cc',
459 'process/process_handle_freebsd.cc',
460 'process/process_handle_linux.cc',
461 'process/process_handle_mac.cc',
462 'process/process_handle_openbsd.cc',
463 'process/process_handle_posix.cc',
464 'process/process_handle_win.cc',
465 'process/process_info.h',
466 'process/process_info_linux.cc',
467 'process/process_info_mac.cc',
468 'process/process_info_win.cc',
469 'process/process_iterator.cc',
470 'process/process_iterator.h',
471 'process/process_iterator_freebsd.cc',
472 'process/process_iterator_linux.cc',
473 'process/process_iterator_mac.cc',
474 'process/process_iterator_openbsd.cc',
475 'process/process_iterator_win.cc',
476 'process/process_linux.cc',
477 'process/process_metrics.cc',
478 'process/process_metrics.h',
479 'process/process_metrics_freebsd.cc',
480 'process/process_metrics_ios.cc',
481 'process/process_metrics_linux.cc',
482 'process/process_metrics_mac.cc',
483 'process/process_metrics_openbsd.cc',
484 'process/process_metrics_posix.cc',
485 'process/process_metrics_win.cc',
486 'process/process_posix.cc',
487 'process/process_win.cc',
488 'profiler/alternate_timer.cc',
489 'profiler/alternate_timer.h',
490 'profiler/native_stack_sampler.cc',
491 'profiler/native_stack_sampler.h',
492 'profiler/scoped_profile.cc',
493 'profiler/scoped_profile.h',
494 'profiler/scoped_tracker.cc',
495 'profiler/scoped_tracker.h',
496 'profiler/stack_sampling_profiler.cc',
497 'profiler/stack_sampling_profiler.h',
498 'profiler/stack_sampling_profiler_posix.cc',
499 'profiler/stack_sampling_profiler_win.cc',
500 'profiler/tracked_time.cc',
501 'profiler/tracked_time.h',
505 'rand_util_posix.cc',
509 'safe_strerror_posix.cc',
510 'safe_strerror_posix.h',
512 'scoped_native_library.cc',
513 'scoped_native_library.h',
515 'sequence_checker.h',
516 'sequence_checker_impl.cc',
517 'sequence_checker_impl.h',
518 'sequenced_task_runner.cc',
519 'sequenced_task_runner.h',
520 'sequenced_task_runner_helpers.h',
524 'single_thread_task_runner.h',
526 'strings/latin1_string_conversions.cc',
527 'strings/latin1_string_conversions.h',
528 'strings/nullable_string16.cc',
529 'strings/nullable_string16.h',
530 'strings/safe_sprintf.cc',
531 'strings/safe_sprintf.h',
532 'strings/string16.cc',
533 'strings/string16.h',
534 'strings/string_number_conversions.cc',
535 'strings/string_number_conversions.h',
536 'strings/string_piece.cc',
537 'strings/string_piece.h',
538 'strings/string_split.cc',
539 'strings/string_split.h',
540 'strings/string_tokenizer.h',
541 'strings/string_util.cc',
542 'strings/string_util.h',
543 'strings/string_util_constants.cc',
544 'strings/string_util_posix.h',
545 'strings/string_util_win.h',
546 'strings/stringize_macros.h',
547 'strings/stringprintf.cc',
548 'strings/stringprintf.h',
549 'strings/sys_string_conversions.h',
550 'strings/sys_string_conversions_mac.mm',
551 'strings/sys_string_conversions_posix.cc',
552 'strings/sys_string_conversions_win.cc',
553 'strings/utf_offset_string_conversions.cc',
554 'strings/utf_offset_string_conversions.h',
555 'strings/utf_string_conversion_utils.cc',
556 'strings/utf_string_conversion_utils.h',
557 'strings/utf_string_conversions.cc',
558 'strings/utf_string_conversions.h',
559 'supports_user_data.cc',
560 'supports_user_data.h',
561 'synchronization/cancellation_flag.cc',
562 'synchronization/cancellation_flag.h',
563 'synchronization/condition_variable.h',
564 'synchronization/condition_variable_posix.cc',
565 'synchronization/condition_variable_win.cc',
566 'synchronization/lock.cc',
567 'synchronization/lock.h',
568 'synchronization/lock_impl.h',
569 'synchronization/lock_impl_posix.cc',
570 'synchronization/lock_impl_win.cc',
571 'synchronization/spin_wait.h',
572 'synchronization/waitable_event.h',
573 'synchronization/waitable_event_posix.cc',
574 'synchronization/waitable_event_watcher.h',
575 'synchronization/waitable_event_watcher_posix.cc',
576 'synchronization/waitable_event_watcher_win.cc',
577 'synchronization/waitable_event_win.cc',
581 'sys_info_android.cc',
582 'sys_info_chromeos.cc',
583 'sys_info_freebsd.cc',
584 'sys_info_internal.h',
588 'sys_info_openbsd.cc',
591 'system_monitor/system_monitor.cc',
592 'system_monitor/system_monitor.h',
593 'task/cancelable_task_tracker.cc',
594 'task/cancelable_task_tracker.h',
597 'task_runner_util.h',
599 'third_party/dmg_fp/dmg_fp.h',
600 'third_party/dmg_fp/dtoa_wrapper.cc',
601 'third_party/dmg_fp/g_fmt.cc',
602 'third_party/icu/icu_utf.cc',
603 'third_party/icu/icu_utf.h',
604 'third_party/nspr/prtime.cc',
605 'third_party/nspr/prtime.h',
606 'third_party/superfasthash/superfasthash.c',
607 'third_party/xdg_mime/xdgmime.h',
608 'thread_task_runner_handle.cc',
609 'thread_task_runner_handle.h',
610 'threading/non_thread_safe.h',
611 'threading/non_thread_safe_impl.cc',
612 'threading/non_thread_safe_impl.h',
613 'threading/platform_thread.h',
614 'threading/platform_thread_android.cc',
615 'threading/platform_thread_internal_posix.cc',
616 'threading/platform_thread_internal_posix.h',
617 'threading/platform_thread_linux.cc',
618 'threading/platform_thread_mac.mm',
619 'threading/platform_thread_posix.cc',
620 'threading/platform_thread_win.cc',
621 'threading/post_task_and_reply_impl.cc',
622 'threading/post_task_and_reply_impl.h',
623 'threading/sequenced_worker_pool.cc',
624 'threading/sequenced_worker_pool.h',
625 'threading/simple_thread.cc',
626 'threading/simple_thread.h',
627 'threading/thread.cc',
628 'threading/thread.h',
629 'threading/thread_checker.h',
630 'threading/thread_checker_impl.cc',
631 'threading/thread_checker_impl.h',
632 'threading/thread_collision_warner.cc',
633 'threading/thread_collision_warner.h',
634 'threading/thread_id_name_manager.cc',
635 'threading/thread_id_name_manager.h',
636 'threading/thread_local.h',
637 'threading/thread_local_android.cc',
638 'threading/thread_local_posix.cc',
639 'threading/thread_local_storage.cc',
640 'threading/thread_local_storage.h',
641 'threading/thread_local_storage_posix.cc',
642 'threading/thread_local_storage_win.cc',
643 'threading/thread_local_win.cc',
644 'threading/thread_restrictions.cc',
645 'threading/thread_restrictions.h',
646 'threading/watchdog.cc',
647 'threading/watchdog.h',
648 'threading/worker_pool.cc',
649 'threading/worker_pool.h',
650 'threading/worker_pool_posix.cc',
651 'threading/worker_pool_posix.h',
652 'threading/worker_pool_win.cc',
655 'time/default_clock.cc',
656 'time/default_clock.h',
657 'time/default_tick_clock.cc',
658 'time/default_tick_clock.h',
659 'time/tick_clock.cc',
664 'time/time_posix.cc',
666 'timer/elapsed_timer.cc',
667 'timer/elapsed_timer.h',
668 'timer/hi_res_timer_manager.h',
669 'timer/hi_res_timer_manager_posix.cc',
670 'timer/hi_res_timer_manager_win.cc',
671 'timer/mock_timer.cc',
672 'timer/mock_timer.h',
675 'tracked_objects.cc',
680 'value_conversions.cc',
681 'value_conversions.h',
688 'win/enum_variant.cc',
689 'win/enum_variant.h',
690 'win/event_trace_consumer.h',
691 'win/event_trace_controller.cc',
692 'win/event_trace_controller.h',
693 'win/event_trace_provider.cc',
694 'win/event_trace_provider.h',
697 'win/iat_patch_function.cc',
698 'win/iat_patch_function.h',
699 'win/iunknown_impl.cc',
700 'win/iunknown_impl.h',
701 'win/message_window.cc',
702 'win/message_window.h',
705 'win/object_watcher.cc',
706 'win/object_watcher.h',
709 'win/resource_util.cc',
710 'win/resource_util.h',
711 'win/scoped_bstr.cc',
713 'win/scoped_co_mem.h',
714 'win/scoped_com_initializer.h',
715 'win/scoped_comptr.h',
716 'win/scoped_gdi_object.h',
717 'win/scoped_handle.cc',
718 'win/scoped_handle.h',
720 'win/scoped_hglobal.h',
721 'win/scoped_process_information.cc',
722 'win/scoped_process_information.h',
723 'win/scoped_propvariant.h',
724 'win/scoped_select_object.h',
725 'win/scoped_variant.cc',
726 'win/scoped_variant.h',
729 'win/startup_information.cc',
730 'win/startup_information.h',
733 'win/windows_version.cc',
734 'win/windows_version.h',
735 'win/wrapped_window_proc.cc',
736 'win/wrapped_window_proc.h',
737 '<@(trace_event_sources)',
740 'BASE_IMPLEMENTATION',
745 'msvs_disabled_warnings': [
748 'target_conditions': [
749 ['(<(desktop_linux) == 0 and <(chromeos) == 0) or >(nacl_untrusted_build)==1', {
751 ['exclude', '^nix/'],
754 'atomicops_internals_x86_gcc.cc',
757 ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
759 'message_loop/message_pump_glib.cc',
762 ['(OS != "linux" and <(os_bsd) != 1 and OS != "android") or >(nacl_untrusted_build)==1', {
764 # Not automatically excluded by the *linux.cc rules.
769 ['>(nacl_untrusted_build)==1', {
771 'allocator/type_profiler_control.cc',
772 'allocator/type_profiler_control.h',
775 'debug/stack_trace.cc',
776 'debug/stack_trace_posix.cc',
777 'files/file_enumerator_posix.cc',
778 'files/file_path_watcher_fsevents.cc',
779 'files/file_path_watcher_fsevents.h',
780 'files/file_path_watcher_kqueue.cc',
781 'files/file_path_watcher_kqueue.h',
782 'files/file_proxy.cc',
783 'files/file_util.cc',
784 'files/file_util_posix.cc',
785 'files/file_util_proxy.cc',
786 'files/important_file_writer.cc',
787 'files/scoped_temp_dir.cc',
788 'memory/shared_memory_posix.cc',
789 'native_library_posix.cc',
791 'posix/unix_domain_socket_linux.cc',
793 'process/kill_posix.cc',
795 'process/launch_posix.cc',
796 'process/process_metrics.cc',
797 'process/process_metrics_posix.cc',
798 'process/process_posix.cc',
799 'rand_util_posix.cc',
800 'scoped_native_library.cc',
803 'third_party/dynamic_annotations/dynamic_annotations.c',
806 ['include', '^threading/platform_thread_linux\\.cc$'],
809 ['OS == "android" and >(nacl_untrusted_build)==0', {
811 'base_paths_posix.cc',
812 'files/file_path_watcher_fsevents.cc',
813 'files/file_path_watcher_fsevents.h',
814 'files/file_path_watcher_kqueue.cc',
815 'files/file_path_watcher_kqueue.h',
816 'files/file_path_watcher_stub.cc',
817 'power_monitor/power_monitor_device_source_posix.cc',
820 ['include', '^debug/proc_maps_linux\\.cc$'],
821 ['include', '^files/file_path_watcher_linux\\.cc$'],
822 ['include', '^process/memory_linux\\.cc$'],
823 ['include', '^process/internal_linux\\.cc$'],
824 ['include', '^process/process_handle_linux\\.cc$'],
825 ['include', '^process/process_iterator\\.cc$'],
826 ['include', '^process/process_iterator_linux\\.cc$'],
827 ['include', '^process/process_metrics_linux\\.cc$'],
828 ['include', '^posix/unix_domain_socket_linux\\.cc$'],
829 ['include', '^strings/sys_string_conversions_posix\\.cc$'],
830 ['include', '^sys_info_linux\\.cc$'],
831 ['include', '^worker_pool_linux\\.cc$'],
834 ['OS == "android" and _toolset == "host" and host_os == "linux"', {
836 'OS_ANDROID_HOST=Linux',
839 # Pull in specific files for host builds.
840 ['include', '^atomicops_internals_x86_gcc\\.cc$'],
841 ['include', '^threading/platform_thread_linux\\.cc$'],
844 ['<(chromeos) == 1', {
846 'power_monitor/power_monitor_device_source_posix.cc',
849 ['OS == "ios" and _toolset != "host"', {
851 # Pull in specific Mac files for iOS (which have been filtered out
852 # by file name rules).
853 ['include', '^atomicops_internals_mac\\.'],
854 ['include', '^base_paths_mac\\.'],
855 ['include', '^files/file_util_mac\\.'],
856 ['include', '^file_version_info_mac\\.'],
857 ['include', '^mac/bundle_locations\\.'],
858 ['include', '^mac/foundation_util\\.'],
859 ['include', '^mac/mac_logging\\.'],
860 ['include', '^mac/mach_logging\\.'],
861 ['include', '^mac/objc_property_releaser\\.'],
862 ['include', '^mac/scoped_mach_port\\.'],
863 ['include', '^mac/scoped_mach_vm\\.'],
864 ['include', '^mac/scoped_nsautorelease_pool\\.'],
865 ['include', '^mac/scoped_nsobject\\.'],
866 ['include', '^message_loop/message_pump_mac\\.'],
867 ['include', '^strings/sys_string_conversions_mac\\.'],
868 ['include', '^threading/platform_thread_mac\\.'],
869 ['include', '^time/time_mac\\.'],
870 ['include', '^worker_pool_mac\\.'],
871 # Exclude all process/ except the minimal implementation
872 # needed on iOS (mostly for unit tests).
873 ['exclude', '^process/.*'],
874 ['include', '^process/.*_ios\.(cc|mm)$'],
875 ['include', '^process/memory_stubs\.cc$'],
876 ['include', '^process/process_handle_posix\.cc$'],
877 ['include', '^process/process_metrics\\.cc$'],
878 ['exclude', '^threading/platform_thread_internal_posix\\.(h|cc)'],
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 'process/memory_stubs.cc',
887 'message_loop/message_pump_libevent.cc'
890 ['OS == "ios" and _toolset == "host"', {
892 # Copied filename_rules to switch from iOS to Mac inclusions.
893 ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
894 ['include', '(^|/)(cocoa|mac)/'],
895 ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
896 ['exclude', '(^|/)ios/'],
897 ['exclude', 'files/file_path_watcher_fsevents.cc'],
898 ['exclude', 'files/file_path_watcher_fsevents.h'],
899 ['include', 'files/file_path_watcher_mac.cc'],
902 # For now, just test the *BSD platforms enough to exclude them.
903 # Subsequent changes will include them further.
904 ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
905 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
908 ['OS != "openbsd" or >(nacl_untrusted_build)==1', {
909 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
912 ['OS == "win" and >(nacl_untrusted_build)==0', {
914 '<(DEPTH)/third_party/wtl/include',
917 'files/file_path_watcher_fsevents.cc',
918 'files/file_path_watcher_fsevents.h',
919 'files/file_path_watcher_kqueue.cc',
920 'files/file_path_watcher_kqueue.h',
921 'files/file_path_watcher_stub.cc',
922 'message_loop/message_pump_libevent.cc',
923 'posix/file_descriptor_shuffle.cc',
924 # Not using sha1_win.cc because it may have caused a
925 # regression to page cycler moz.
927 'strings/string16.cc',
930 ['<(use_ozone) == 1', {
932 'message_loop/message_pump_glib.cc',
935 ['OS == "linux" and >(nacl_untrusted_build)==0', {
937 'files/file_path_watcher_fsevents.cc',
938 'files/file_path_watcher_fsevents.h',
939 'files/file_path_watcher_kqueue.cc',
940 'files/file_path_watcher_kqueue.h',
941 'files/file_path_watcher_stub.cc',
944 ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', {
946 ['exclude', '^base_paths_posix\\.cc$'],
947 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
948 ['exclude', '^native_library_posix\\.cc$'],
949 ['exclude', '^strings/sys_string_conversions_posix\\.cc$'],
950 ['exclude', '^threading/platform_thread_internal_posix\\.cc$'],
953 ['<(os_bsd)==1 and >(nacl_untrusted_build)==0', {
955 'process/memory_stubs.cc',
958 ['exclude', '^files/file_path_watcher_linux\\.cc$'],
959 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
960 ['exclude', '^files/file_util_linux\\.cc$'],
961 ['exclude', '^process/process_linux\\.cc$'],
962 ['exclude', '^sys_info_linux\\.cc$'],
965 # Remove all unnecessary files for build_nexe.py to avoid exceeding
966 # command-line-string limitation when building NaCl on Windows.
967 ['OS == "win" and >(nacl_untrusted_build)==1', {
968 'sources/': [ ['exclude', '\\.h$'] ],
970 # Enable more direct string conversions on platforms with native utf8
972 ['OS=="mac" or OS=="ios" or <(chromeos)==1 or <(chromecast)==1', {
973 'defines': ['SYSTEM_NATIVE_UTF8'],
977 ['base_i18n_target==1', {
979 'BASE_I18N_IMPLEMENTATION',
982 'i18n/base_i18n_export.h',
983 'i18n/bidi_line_iterator.cc',
984 'i18n/bidi_line_iterator.h',
985 'i18n/break_iterator.cc',
986 'i18n/break_iterator.h',
987 'i18n/case_conversion.cc',
988 'i18n/case_conversion.h',
989 'i18n/char_iterator.cc',
990 'i18n/char_iterator.h',
991 'i18n/file_util_icu.cc',
992 'i18n/file_util_icu.h',
993 'i18n/i18n_constants.cc',
994 'i18n/i18n_constants.h',
995 'i18n/icu_encoding_detection.cc',
996 'i18n/icu_encoding_detection.h',
997 'i18n/icu_string_conversions.cc',
998 'i18n/icu_string_conversions.h',
1001 'i18n/number_formatting.cc',
1002 'i18n/number_formatting.h',
1005 'i18n/streaming_utf8_validator.cc',
1006 'i18n/streaming_utf8_validator.h',
1007 'i18n/string_compare.cc',
1008 'i18n/string_compare.h',
1009 'i18n/string_search.cc',
1010 'i18n/string_search.h',
1011 'i18n/time_formatting.cc',
1012 'i18n/time_formatting.h',
1015 'i18n/utf8_validator_tables.cc',
1016 'i18n/utf8_validator_tables.h',