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.
10 'target_conditions': [
11 # This part is shared between the targets defined below.
14 '../build/build_config.h',
15 'third_party/dmg_fp/dmg_fp.h',
16 'third_party/dmg_fp/g_fmt.cc',
17 'third_party/dmg_fp/dtoa_wrapper.cc',
18 'third_party/icu/icu_utf.cc',
19 'third_party/icu/icu_utf.h',
20 'third_party/nspr/prcpucfg.h',
21 'third_party/nspr/prcpucfg_freebsd.h',
22 'third_party/nspr/prcpucfg_linux.h',
23 'third_party/nspr/prcpucfg_mac.h',
24 'third_party/nspr/prcpucfg_nacl.h',
25 'third_party/nspr/prcpucfg_openbsd.h',
26 'third_party/nspr/prcpucfg_solaris.h',
27 'third_party/nspr/prcpucfg_win.h',
28 'third_party/nspr/prtime.cc',
29 'third_party/nspr/prtime.h',
30 'third_party/nspr/prtypes.h',
31 'third_party/xdg_mime/xdgmime.h',
32 'allocator/allocator_extension.cc',
33 'allocator/allocator_extension.h',
34 'allocator/type_profiler_control.cc',
35 'allocator/type_profiler_control.h',
36 'android/activity_status.cc',
37 'android/activity_status.h',
38 'android/base_jni_registrar.cc',
39 'android/base_jni_registrar.h',
40 'android/build_info.cc',
41 'android/build_info.h',
42 'android/command_line_android.cc',
43 'android/command_line_android.h',
44 'android/content_uri_utils.cc',
45 'android/content_uri_utils.h',
46 'android/cpu_features.cc',
47 'android/fifo_utils.cc',
48 'android/fifo_utils.h',
49 'android/important_file_writer_android.cc',
50 'android/important_file_writer_android.h',
51 'android/scoped_java_ref.cc',
52 'android/scoped_java_ref.h',
53 'android/jni_android.cc',
54 'android/jni_android.h',
55 'android/jni_array.cc',
56 'android/jni_array.h',
57 'android/jni_helper.cc',
58 'android/jni_helper.h',
59 'android/jni_registrar.cc',
60 'android/jni_registrar.h',
61 'android/jni_string.cc',
62 'android/jni_string.h',
63 'android/memory_pressure_listener_android.cc',
64 'android/memory_pressure_listener_android.h',
65 'android/java_handler_thread.cc',
66 'android/java_handler_thread.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/sys_utils.cc',
72 'android/sys_utils.h',
73 'android/thread_utils.h',
77 'atomic_sequence_num.h',
79 'atomicops_internals_gcc.h',
80 'atomicops_internals_mac.h',
81 'atomicops_internals_tsan.h',
82 'atomicops_internals_x86_gcc.cc',
83 'atomicops_internals_x86_gcc.h',
84 'atomicops_internals_x86_msvc.h',
90 'base_paths_android.cc',
91 'base_paths_android.h',
94 'base_paths_posix.cc',
106 'bind_internal_win.h',
111 'callback_helpers.cc',
112 'callback_helpers.h',
113 'callback_internal.cc',
114 'callback_internal.h',
116 'cancelable_callback.h',
119 'compiler_specific.h',
120 'containers/hash_tables.h',
121 'containers/linked_list.h',
122 'containers/mru_cache.h',
123 'containers/scoped_ptr_hash_map.h',
124 'containers/small_map.h',
125 'containers/stack_container.h',
128 'critical_closure.h',
129 'critical_closure_ios.mm',
132 'debug/crash_logging.cc',
133 'debug/crash_logging.h',
134 'debug/debug_on_start_win.cc',
135 'debug/debug_on_start_win.h',
138 'debug/debugger_posix.cc',
139 'debug/debugger_win.cc',
140 'debug/dump_without_crashing.cc',
141 'debug/dump_without_crashing.h',
142 # This file depends on files from the 'allocator' target,
143 # but this target does not depend on 'allocator' (see
144 # allocator.gyp for details).
145 'debug/leak_annotations.h',
146 'debug/leak_tracker.h',
147 'debug/proc_maps_linux.cc',
148 'debug/proc_maps_linux.h',
151 'debug/stack_trace.cc',
152 'debug/stack_trace.h',
153 'debug/stack_trace_android.cc',
154 'debug/stack_trace_ios.mm',
155 'debug/stack_trace_posix.cc',
156 'debug/stack_trace_win.cc',
157 'debug/trace_event.h',
158 'debug/trace_event_android.cc',
159 'debug/trace_event_impl.cc',
160 'debug/trace_event_impl.h',
161 'debug/trace_event_impl_constants.cc',
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_kqueue.cc',
198 'files/file_path_watcher_linux.cc',
199 'files/file_path_watcher_stub.cc',
200 'files/file_path_watcher_win.cc',
201 'files/file_posix.cc',
202 'files/file_util_proxy.cc',
203 'files/file_util_proxy.h',
205 'files/important_file_writer.h',
206 'files/important_file_writer.cc',
207 'files/memory_mapped_file.cc',
208 'files/memory_mapped_file.h',
209 'files/memory_mapped_file_posix.cc',
210 'files/memory_mapped_file_win.cc',
211 'files/scoped_platform_file_closer.cc',
212 'files/scoped_platform_file_closer.h',
213 'files/scoped_temp_dir.cc',
214 'files/scoped_temp_dir.h',
228 'ios/device_util.mm',
231 'ios/scoped_critical_action.h',
232 'ios/scoped_critical_action.mm',
233 'json/json_file_value_serializer.cc',
234 'json/json_file_value_serializer.h',
235 'json/json_parser.cc',
236 'json/json_parser.h',
237 'json/json_reader.cc',
238 'json/json_reader.h',
239 'json/json_string_value_serializer.cc',
240 'json/json_string_value_serializer.h',
241 'json/json_value_converter.h',
242 'json/json_writer.cc',
243 'json/json_writer.h',
244 'json/string_escape.cc',
245 'json/string_escape.h',
254 'mac/authorization_util.h',
255 'mac/authorization_util.mm',
256 'mac/bind_objc_block.h',
257 'mac/bundle_locations.h',
258 'mac/bundle_locations.mm',
259 'mac/close_nocancel.cc',
260 'mac/cocoa_protocols.h',
261 'mac/foundation_util.h',
262 'mac/foundation_util.mm',
263 'mac/launch_services_util.cc',
264 'mac/launch_services_util.h',
267 'mac/libdispatch_task_runner.cc',
268 'mac/libdispatch_task_runner.h',
270 'mac/mac_logging.cc',
273 'mac/objc_property_releaser.h',
274 'mac/objc_property_releaser.mm',
275 'mac/os_crash_dumps.cc',
276 'mac/os_crash_dumps.h',
277 'mac/scoped_aedesc.h',
278 'mac/scoped_authorizationref.h',
279 'mac/scoped_block.h',
280 'mac/scoped_cftyperef.h',
281 'mac/scoped_ioobject.h',
282 'mac/scoped_ioplugininterface.h',
283 'mac/scoped_launch_data.h',
284 'mac/scoped_mach_port.cc',
285 'mac/scoped_mach_port.h',
286 'mac/scoped_nsautorelease_pool.h',
287 'mac/scoped_nsautorelease_pool.mm',
288 'mac/scoped_nsexception_enabler.h',
289 'mac/scoped_nsexception_enabler.mm',
290 'mac/scoped_nsobject.h',
291 'mac/scoped_sending_event.h',
292 'mac/scoped_sending_event.mm',
293 'mac/sdk_forward_declarations.h',
294 'memory/aligned_memory.cc',
295 'memory/aligned_memory.h',
296 'memory/discardable_memory.h',
297 'memory/discardable_memory_allocator_android.cc',
298 'memory/discardable_memory_allocator_android.h',
299 'memory/discardable_memory_android.cc',
300 'memory/discardable_memory_android.h',
301 'memory/discardable_memory_emulated.cc',
302 'memory/discardable_memory_emulated.h',
303 'memory/discardable_memory_linux.cc',
304 'memory/discardable_memory_mac.cc',
305 'memory/discardable_memory_provider.cc',
306 'memory/discardable_memory_provider.h',
307 'memory/discardable_memory_win.cc',
308 'memory/linked_ptr.h',
309 'memory/manual_constructor.h',
310 'memory/memory_pressure_listener.cc',
311 'memory/memory_pressure_listener.h',
312 'memory/raw_scoped_refptr_mismatch_checker.h',
313 'memory/ref_counted.cc',
314 'memory/ref_counted.h',
315 'memory/ref_counted_delete_on_message_loop.h',
316 'memory/ref_counted_memory.cc',
317 'memory/ref_counted_memory.h',
318 'memory/scoped_handle.h',
319 'memory/scoped_open_process.h',
320 'memory/scoped_policy.h',
321 'memory/scoped_ptr.h',
322 'memory/scoped_vector.h',
323 'memory/shared_memory.h',
324 'memory/shared_memory_android.cc',
325 'memory/shared_memory_nacl.cc',
326 'memory/shared_memory_posix.cc',
327 'memory/shared_memory_win.cc',
328 'memory/singleton.cc',
329 'memory/singleton.h',
330 'memory/weak_ptr.cc',
332 'message_loop/incoming_task_queue.cc',
333 'message_loop/incoming_task_queue.h',
334 'message_loop/message_loop.cc',
335 'message_loop/message_loop.h',
336 'message_loop/message_loop_proxy.cc',
337 'message_loop/message_loop_proxy.h',
338 'message_loop/message_loop_proxy_impl.cc',
339 'message_loop/message_loop_proxy_impl.h',
340 'message_loop/message_pump.cc',
341 'message_loop/message_pump.h',
342 'message_loop/message_pump_android.cc',
343 'message_loop/message_pump_android.h',
344 'message_loop/message_pump_default.cc',
345 'message_loop/message_pump_default.h',
346 'message_loop/message_pump_ozone.cc',
347 'message_loop/message_pump_ozone.h',
348 'message_loop/message_pump_win.cc',
349 'message_loop/message_pump_win.h',
350 'metrics/sample_map.cc',
351 'metrics/sample_map.h',
352 'metrics/sample_vector.cc',
353 'metrics/sample_vector.h',
354 'metrics/bucket_ranges.cc',
355 'metrics/bucket_ranges.h',
356 'metrics/histogram.cc',
357 'metrics/histogram.h',
358 'metrics/histogram_base.cc',
359 'metrics/histogram_base.h',
360 'metrics/histogram_delta_serialization.cc',
361 'metrics/histogram_delta_serialization.h',
362 'metrics/histogram_flattener.h',
363 'metrics/histogram_samples.cc',
364 'metrics/histogram_samples.h',
365 'metrics/histogram_snapshot_manager.cc',
366 'metrics/histogram_snapshot_manager.h',
367 'metrics/sparse_histogram.cc',
368 'metrics/sparse_histogram.h',
369 'metrics/statistics_recorder.cc',
370 'metrics/statistics_recorder.h',
371 'metrics/stats_counters.cc',
372 'metrics/stats_counters.h',
373 'metrics/stats_table.cc',
374 'metrics/stats_table.h',
377 'native_library_mac.mm',
378 'native_library_posix.cc',
379 'native_library_win.cc',
380 'nix/mime_util_xdg.cc',
381 'nix/mime_util_xdg.h',
385 'observer_list_threadsafe.h',
386 'os_compat_android.cc',
387 'os_compat_android.h',
398 'platform_file_posix.cc',
399 'platform_file_win.cc',
401 'posix/eintr_wrapper.h',
402 'posix/global_descriptors.cc',
403 'posix/global_descriptors.h',
404 'posix/unix_domain_socket_linux.cc',
405 'posix/unix_domain_socket_linux.h',
406 'power_monitor/power_monitor.cc',
407 'power_monitor/power_monitor.h',
408 'power_monitor/power_monitor_device_source_android.cc',
409 'power_monitor/power_monitor_device_source_android.h',
410 'power_monitor/power_monitor_device_source.cc',
411 'power_monitor/power_monitor_device_source.h',
412 'power_monitor/power_monitor_device_source_ios.mm',
413 'power_monitor/power_monitor_device_source_mac.mm',
414 'power_monitor/power_monitor_device_source_posix.cc',
415 'power_monitor/power_monitor_device_source_win.cc',
416 'power_monitor/power_monitor_source.cc',
417 'power_monitor/power_monitor_source.h',
418 'power_monitor/power_observer.h',
419 'process/internal_linux.cc',
420 'process/internal_linux.h',
423 'process/kill_mac.cc',
424 'process/kill_posix.cc',
425 'process/kill_win.cc',
428 'process/launch_ios.cc',
429 'process/launch_mac.cc',
430 'process/launch_posix.cc',
431 'process/launch_win.cc',
433 'process/memory_linux.cc',
434 'process/memory_mac.mm',
435 'process/memory_win.cc',
437 'process/process_handle_freebsd.cc',
438 'process/process_handle_linux.cc',
439 'process/process_handle_mac.cc',
440 'process/process_handle_openbsd.cc',
441 'process/process_handle_posix.cc',
442 'process/process_handle_win.cc',
443 'process/process_info.h',
444 'process/process_info_linux.cc',
445 'process/process_info_mac.cc',
446 'process/process_info_win.cc',
447 'process/process_iterator.cc',
448 'process/process_iterator.h',
449 'process/process_iterator_freebsd.cc',
450 'process/process_iterator_linux.cc',
451 'process/process_iterator_mac.cc',
452 'process/process_iterator_openbsd.cc',
453 'process/process_iterator_win.cc',
454 'process/process_linux.cc',
455 'process/process_metrics.h',
456 'process/process_metrics.cc',
457 'process/process_metrics_freebsd.cc',
458 'process/process_metrics_ios.cc',
459 'process/process_metrics_linux.cc',
460 'process/process_metrics_mac.cc',
461 'process/process_metrics_openbsd.cc',
462 'process/process_metrics_posix.cc',
463 'process/process_metrics_win.cc',
464 'process/process_posix.cc',
465 'process/process_win.cc',
466 'profiler/scoped_profile.cc',
467 'profiler/scoped_profile.h',
468 'profiler/alternate_timer.cc',
469 'profiler/alternate_timer.h',
470 'profiler/tracked_time.cc',
471 'profiler/tracked_time.h',
475 'rand_util_posix.cc',
480 'safe_strerror_posix.cc',
481 'safe_strerror_posix.h',
482 'scoped_native_library.cc',
483 'scoped_native_library.h',
484 'sequence_checker.h',
485 'sequence_checker_impl.cc',
486 'sequence_checker_impl.h',
487 'sequenced_task_runner.cc',
488 'sequenced_task_runner.h',
489 'sequenced_task_runner_helpers.h',
493 'single_thread_task_runner.h',
495 'strings/latin1_string_conversions.cc',
496 'strings/latin1_string_conversions.h',
497 'strings/nullable_string16.cc',
498 'strings/nullable_string16.h',
499 'strings/safe_sprintf.cc',
500 'strings/safe_sprintf.h',
501 'strings/string16.cc',
502 'strings/string16.h',
503 'strings/string_number_conversions.cc',
504 'strings/string_split.cc',
505 'strings/string_split.h',
506 'strings/string_number_conversions.h',
507 'strings/string_piece.cc',
508 'strings/string_piece.h',
509 'strings/string_tokenizer.h',
510 'strings/string_util.cc',
511 'strings/string_util.h',
512 'strings/string_util_constants.cc',
513 'strings/string_util_posix.h',
514 'strings/string_util_win.h',
515 'strings/stringize_macros.h',
516 'strings/stringprintf.cc',
517 'strings/stringprintf.h',
518 'strings/sys_string_conversions.h',
519 'strings/sys_string_conversions_mac.mm',
520 'strings/sys_string_conversions_posix.cc',
521 'strings/sys_string_conversions_win.cc',
522 'strings/utf_offset_string_conversions.cc',
523 'strings/utf_offset_string_conversions.h',
524 'strings/utf_string_conversion_utils.cc',
525 'strings/utf_string_conversion_utils.h',
526 'strings/utf_string_conversions.cc',
527 'strings/utf_string_conversions.h',
528 'supports_user_data.cc',
529 'supports_user_data.h',
530 'synchronization/cancellation_flag.cc',
531 'synchronization/cancellation_flag.h',
532 'synchronization/condition_variable.h',
533 'synchronization/condition_variable_posix.cc',
534 'synchronization/condition_variable_win.cc',
535 'synchronization/lock.cc',
536 'synchronization/lock.h',
537 'synchronization/lock_impl.h',
538 'synchronization/lock_impl_posix.cc',
539 'synchronization/lock_impl_win.cc',
540 'synchronization/spin_wait.h',
541 'synchronization/waitable_event.h',
542 'synchronization/waitable_event_posix.cc',
543 'synchronization/waitable_event_watcher.h',
544 'synchronization/waitable_event_watcher_posix.cc',
545 'synchronization/waitable_event_watcher_win.cc',
546 'synchronization/waitable_event_win.cc',
547 'system_monitor/system_monitor.cc',
548 'system_monitor/system_monitor.h',
552 'sys_info_android.cc',
553 'sys_info_chromeos.cc',
554 'sys_info_freebsd.cc',
555 'sys_info_internal.h',
559 'sys_info_openbsd.cc',
564 'task_runner_util.h',
566 'thread_task_runner_handle.cc',
567 'thread_task_runner_handle.h',
568 'threading/non_thread_safe.h',
569 'threading/non_thread_safe_impl.cc',
570 'threading/non_thread_safe_impl.h',
571 'threading/platform_thread.h',
572 'threading/platform_thread_android.cc',
573 'threading/platform_thread_linux.cc',
574 'threading/platform_thread_mac.mm',
575 'threading/platform_thread_posix.cc',
576 'threading/platform_thread_win.cc',
577 'threading/post_task_and_reply_impl.cc',
578 'threading/post_task_and_reply_impl.h',
579 'threading/sequenced_worker_pool.cc',
580 'threading/sequenced_worker_pool.h',
581 'threading/simple_thread.cc',
582 'threading/simple_thread.h',
583 'threading/thread.cc',
584 'threading/thread.h',
585 'threading/thread_checker.h',
586 'threading/thread_checker_impl.cc',
587 'threading/thread_checker_impl.h',
588 'threading/thread_collision_warner.cc',
589 'threading/thread_collision_warner.h',
590 'threading/thread_id_name_manager.cc',
591 'threading/thread_id_name_manager.h',
592 'threading/thread_local.h',
593 'threading/thread_local_posix.cc',
594 'threading/thread_local_storage.cc',
595 'threading/thread_local_storage.h',
596 'threading/thread_local_storage_posix.cc',
597 'threading/thread_local_storage_win.cc',
598 'threading/thread_local_win.cc',
599 'threading/thread_restrictions.h',
600 'threading/thread_restrictions.cc',
601 'threading/watchdog.cc',
602 'threading/watchdog.h',
603 'threading/worker_pool.h',
604 'threading/worker_pool.cc',
605 'threading/worker_pool_posix.cc',
606 'threading/worker_pool_posix.h',
607 'threading/worker_pool_win.cc',
610 'time/default_clock.cc',
611 'time/default_clock.h',
612 'time/default_tick_clock.cc',
613 'time/default_tick_clock.h',
614 'time/tick_clock.cc',
619 'time/time_posix.cc',
621 'timer/elapsed_timer.cc',
622 'timer/elapsed_timer.h',
623 'timer/hi_res_timer_manager.h',
624 'timer/hi_res_timer_manager_posix.cc',
625 'timer/hi_res_timer_manager_win.cc',
628 'tracked_objects.cc',
635 'value_conversions.cc',
636 'value_conversions.h',
641 'win/enum_variant.cc',
642 'win/enum_variant.h',
643 'win/event_trace_consumer.h',
644 'win/event_trace_controller.cc',
645 'win/event_trace_controller.h',
646 'win/event_trace_provider.cc',
647 'win/event_trace_provider.h',
650 'win/iat_patch_function.cc',
651 'win/iat_patch_function.h',
652 'win/iunknown_impl.cc',
653 'win/iunknown_impl.h',
654 'win/message_window.cc',
655 'win/message_window.h',
658 'win/object_watcher.cc',
659 'win/object_watcher.h',
662 'win/resource_util.cc',
663 'win/resource_util.h',
664 'win/scoped_bstr.cc',
666 'win/scoped_co_mem.h',
667 'win/scoped_com_initializer.h',
668 'win/scoped_comptr.h',
669 'win/scoped_gdi_object.h',
670 'win/scoped_handle.cc',
671 'win/scoped_handle.h',
673 'win/scoped_hglobal.h',
674 'win/scoped_process_information.cc',
675 'win/scoped_process_information.h',
676 'win/scoped_propvariant.h',
677 'win/scoped_select_object.h',
678 'win/scoped_variant.cc',
679 'win/scoped_variant.h',
682 'win/startup_information.cc',
683 'win/startup_information.h',
684 'win/text_services_message_filter.cc',
685 'win/text_services_message_filter.h',
688 'win/windows_version.cc',
689 'win/windows_version.h',
690 'win/wrapped_window_proc.cc',
691 'win/wrapped_window_proc.h',
692 'x11/x11_error_tracker.cc',
693 'x11/x11_error_tracker.h',
694 'x11/x11_error_tracker_gtk.cc',
697 ['use_aura==1 and use_x11==1', {
699 'x11/edid_parser_x11.cc',
700 'x11/edid_parser_x11.h',
705 'android/context_types.cc',
706 'android/context_types.h',
711 'BASE_IMPLEMENTATION',
716 'msvs_disabled_warnings': [
719 'target_conditions': [
720 ['(<(desktop_linux) == 0 and <(chromeos) == 0) or >(nacl_untrusted_build)==1', {
722 ['exclude', '^nix/'],
725 'atomicops_internals_x86_gcc.cc',
728 ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
730 'message_loop/message_pump_glib.cc',
733 ['<(use_x11)==0 or >(nacl_untrusted_build)==1', {
735 'message_loop/message_pump_x11.cc',
738 ['<(toolkit_uses_gtk)==0 or >(nacl_untrusted_build)==1', {
739 'sources!': ['message_loop/message_pump_gtk.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_kqueue.cc',
759 'files/file_util_proxy.cc',
760 'memory/shared_memory_posix.cc',
761 'native_library_posix.cc',
763 'posix/unix_domain_socket_linux.cc',
764 'process/kill_posix.cc',
765 'process/launch_posix.cc',
766 'process/process_metrics_posix.cc',
767 'process/process_posix.cc',
768 'rand_util_posix.cc',
769 'scoped_native_library.cc',
770 'files/scoped_temp_dir.cc',
772 'third_party/dynamic_annotations/dynamic_annotations.c',
775 # Metrics won't work in the NaCl sandbox.
776 ['exclude', '^metrics/'],
777 ['include', '^threading/platform_thread_linux\\.cc$'],
780 ['OS == "android" and >(nacl_untrusted_build)==0', {
782 'base_paths_posix.cc',
783 'files/file_path_watcher_kqueue.cc',
784 'files/file_path_watcher_stub.cc',
785 'power_monitor/power_monitor_device_source_posix.cc',
788 ['include', '^debug/proc_maps_linux\\.cc$'],
789 ['include', '^files/file_path_watcher_linux\\.cc$'],
790 ['include', '^process/memory_linux\\.cc$'],
791 ['include', '^process/internal_linux\\.cc$'],
792 ['include', '^process/process_handle_linux\\.cc$'],
793 ['include', '^process/process_iterator\\.cc$'],
794 ['include', '^process/process_iterator_linux\\.cc$'],
795 ['include', '^process/process_metrics_linux\\.cc$'],
796 ['include', '^posix/unix_domain_socket_linux\\.cc$'],
797 ['include', '^strings/sys_string_conversions_posix\\.cc$'],
798 ['include', '^sys_info_linux\\.cc$'],
799 ['include', '^worker_pool_linux\\.cc$'],
802 ['OS == "android" and _toolset == "host" and host_os == "linux"', {
804 # Pull in specific files for host builds.
805 ['include', '^threading/platform_thread_linux\\.cc$'],
808 ['OS == "android" and <(android_webview_build)==1', {
810 # WebView builds as part of the system which already has sincos;
811 # avoid defining it again as it causes a linker warning.
812 'ANDROID_SINCOS_PROVIDED',
815 ['OS == "ios" and _toolset != "host"', {
817 # Pull in specific Mac files for iOS (which have been filtered out
818 # by file name rules).
819 ['include', '^atomicops_internals_mac\\.'],
820 ['include', '^base_paths_mac\\.'],
821 ['include', '^file_util_mac\\.'],
822 ['include', '^file_version_info_mac\\.'],
823 ['include', '^mac/bundle_locations\\.'],
824 ['include', '^mac/foundation_util\\.'],
825 ['include', '^mac/mac_logging\\.'],
826 ['include', '^mac/objc_property_releaser\\.'],
827 ['include', '^mac/scoped_mach_port\\.'],
828 ['include', '^mac/scoped_nsautorelease_pool\\.'],
829 ['include', '^mac/scoped_nsobject\\.'],
830 ['include', '^memory/discardable_memory_mac\\.'],
831 ['include', '^message_loop/message_pump_mac\\.'],
832 ['include', '^strings/sys_string_conversions_mac\\.'],
833 ['include', '^threading/platform_thread_mac\\.'],
834 ['include', '^time/time_mac\\.'],
835 ['include', '^worker_pool_mac\\.'],
836 # Exclude all process/ except the minimal implementation
837 # needed on iOS (mostly for unit tests).
838 ['exclude', '^process/.*'],
839 ['include', '^process/.*_ios\.(cc|mm)$'],
840 ['include', '^process/memory_stubs\.cc$'],
841 ['include', '^process/process_handle_posix\.cc$'],
844 'process/memory_stubs.cc',
847 'message_loop/message_pump_libevent.cc'
850 ['OS == "ios" and _toolset == "host"', {
852 # Copied filename_rules to switch from iOS to Mac inclusions.
853 ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
854 ['include', '(^|/)(cocoa|mac)/'],
855 ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
856 ['exclude', '(^|/)ios/'],
859 ['OS != "mac" or >(nacl_untrusted_build)==1', {
861 'mac/scoped_aedesc.h'
864 # For now, just test the *BSD platforms enough to exclude them.
865 # Subsequent changes will include them further.
866 ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
867 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
870 ['OS != "openbsd" or >(nacl_untrusted_build)==1', {
871 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
874 ['OS != "win" or >(nacl_untrusted_build)==1', {
875 'sources/': [ ['exclude', '^win/'] ],
878 ['OS != "android" or >(nacl_untrusted_build)==1', {
879 'sources/': [ ['exclude', '^android/'] ],
882 ['OS == "win" and >(nacl_untrusted_build)==0', {
884 '<(DEPTH)/third_party/wtl/include',
887 'event_recorder_stubs.cc',
888 'files/file_path_watcher_kqueue.cc',
889 'files/file_path_watcher_stub.cc',
890 'message_loop/message_pump_libevent.cc',
891 'posix/file_descriptor_shuffle.cc',
892 # Not using sha1_win.cc because it may have caused a
893 # regression to page cycler moz.
895 'strings/string16.cc',
898 ['<(use_ozone) == 1', {
900 'message_loop/message_pump_glib.cc',
901 'message_loop/message_pump_x11.cc',
904 ['OS == "linux" and >(nacl_untrusted_build)==0', {
906 'files/file_path_watcher_kqueue.cc',
907 'files/file_path_watcher_stub.cc',
910 ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', {
912 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
913 ['exclude', '^base_paths_posix\\.cc$'],
914 ['exclude', '^native_library_posix\\.cc$'],
915 ['exclude', '^strings/sys_string_conversions_posix\\.cc$'],
918 ['<(os_bsd)==1 and >(nacl_untrusted_build)==0', {
920 'process/memory_stubs.cc',
923 ['exclude', '^files/file_path_watcher_linux\\.cc$'],
924 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
925 ['exclude', '^file_util_linux\\.cc$'],
926 ['exclude', '^process/process_linux\\.cc$'],
927 ['exclude', '^sys_info_linux\\.cc$'],
930 ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', {
932 ['exclude', '^chromeos/'],
935 # Remove all unnecessary files for build_nexe.py to avoid exceeding
936 # command-line-string limitation when building NaCl on Windows.
937 ['OS == "win" and >(nacl_untrusted_build)==1', {
938 'sources/': [ ['exclude', '\\.h$'] ],
940 ['<(use_system_nspr)==1 and >(nacl_untrusted_build)==0', {
942 ['exclude', '^third_party/nspr/'],
945 ['<(toolkit_uses_gtk) == 1', {
947 'x11/x11_error_tracker.cc',