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 # This file depends on files from the 'allocator' target,
141 # but this target does not depend on 'allocator' (see
142 # allocator.gyp for details).
143 'debug/leak_annotations.h',
144 'debug/leak_tracker.h',
145 'debug/proc_maps_linux.cc',
146 'debug/proc_maps_linux.h',
149 'debug/stack_trace.cc',
150 'debug/stack_trace.h',
151 'debug/stack_trace_android.cc',
152 'debug/stack_trace_ios.mm',
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_system_stats_monitor.cc',
161 'debug/trace_event_memory.cc',
162 'debug/trace_event_memory.h',
163 'debug/trace_event_win.cc',
164 'deferred_sequenced_task_runner.cc',
165 'deferred_sequenced_task_runner.h',
168 'file_descriptor_posix.h',
171 'file_util_android.cc',
172 'file_util_linux.cc',
174 'file_util_posix.cc',
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_kqueue.cc',
196 'files/file_path_watcher_linux.cc',
197 'files/file_path_watcher_stub.cc',
198 'files/file_path_watcher_win.cc',
199 'files/file_posix.cc',
200 'files/file_util_proxy.cc',
201 'files/file_util_proxy.h',
203 'files/important_file_writer.h',
204 'files/important_file_writer.cc',
205 'files/memory_mapped_file.cc',
206 'files/memory_mapped_file.h',
207 'files/memory_mapped_file_posix.cc',
208 'files/memory_mapped_file_win.cc',
209 'files/scoped_platform_file_closer.cc',
210 'files/scoped_platform_file_closer.h',
211 'files/scoped_temp_dir.cc',
212 'files/scoped_temp_dir.h',
226 'ios/device_util.mm',
229 'ios/scoped_critical_action.h',
230 'ios/scoped_critical_action.mm',
231 'json/json_file_value_serializer.cc',
232 'json/json_file_value_serializer.h',
233 'json/json_parser.cc',
234 'json/json_parser.h',
235 'json/json_reader.cc',
236 'json/json_reader.h',
237 'json/json_string_value_serializer.cc',
238 'json/json_string_value_serializer.h',
239 'json/json_value_converter.h',
240 'json/json_writer.cc',
241 'json/json_writer.h',
242 'json/string_escape.cc',
243 'json/string_escape.h',
252 'mac/authorization_util.h',
253 'mac/authorization_util.mm',
254 'mac/bind_objc_block.h',
255 'mac/bundle_locations.h',
256 'mac/bundle_locations.mm',
257 'mac/close_nocancel.cc',
258 'mac/cocoa_protocols.h',
259 'mac/foundation_util.h',
260 'mac/foundation_util.mm',
261 'mac/launch_services_util.cc',
262 'mac/launch_services_util.h',
265 'mac/libdispatch_task_runner.cc',
266 'mac/libdispatch_task_runner.h',
268 'mac/mac_logging.cc',
271 'mac/objc_property_releaser.h',
272 'mac/objc_property_releaser.mm',
273 'mac/os_crash_dumps.cc',
274 'mac/os_crash_dumps.h',
275 'mac/scoped_aedesc.h',
276 'mac/scoped_authorizationref.h',
277 'mac/scoped_block.h',
278 'mac/scoped_cftyperef.h',
279 'mac/scoped_ioobject.h',
280 'mac/scoped_ioplugininterface.h',
281 'mac/scoped_launch_data.h',
282 'mac/scoped_mach_port.cc',
283 'mac/scoped_mach_port.h',
284 'mac/scoped_nsautorelease_pool.h',
285 'mac/scoped_nsautorelease_pool.mm',
286 'mac/scoped_nsexception_enabler.h',
287 'mac/scoped_nsexception_enabler.mm',
288 'mac/scoped_nsobject.h',
289 'mac/scoped_sending_event.h',
290 'mac/scoped_sending_event.mm',
291 'mac/sdk_forward_declarations.h',
292 'memory/aligned_memory.cc',
293 'memory/aligned_memory.h',
294 'memory/discardable_memory.h',
295 'memory/discardable_memory_allocator_android.cc',
296 'memory/discardable_memory_allocator_android.h',
297 'memory/discardable_memory_android.cc',
298 'memory/discardable_memory_android.h',
299 'memory/discardable_memory_emulated.cc',
300 'memory/discardable_memory_emulated.h',
301 'memory/discardable_memory_linux.cc',
302 'memory/discardable_memory_mac.cc',
303 'memory/discardable_memory_provider.cc',
304 'memory/discardable_memory_provider.h',
305 'memory/discardable_memory_win.cc',
306 'memory/linked_ptr.h',
307 'memory/manual_constructor.h',
308 'memory/memory_pressure_listener.cc',
309 'memory/memory_pressure_listener.h',
310 'memory/raw_scoped_refptr_mismatch_checker.h',
311 'memory/ref_counted.cc',
312 'memory/ref_counted.h',
313 'memory/ref_counted_delete_on_message_loop.h',
314 'memory/ref_counted_memory.cc',
315 'memory/ref_counted_memory.h',
316 'memory/scoped_handle.h',
317 'memory/scoped_open_process.h',
318 'memory/scoped_policy.h',
319 'memory/scoped_ptr.h',
320 'memory/scoped_vector.h',
321 'memory/shared_memory.h',
322 'memory/shared_memory_android.cc',
323 'memory/shared_memory_nacl.cc',
324 'memory/shared_memory_posix.cc',
325 'memory/shared_memory_win.cc',
326 'memory/singleton.cc',
327 'memory/singleton.h',
328 'memory/weak_ptr.cc',
330 'message_loop/incoming_task_queue.cc',
331 'message_loop/incoming_task_queue.h',
332 'message_loop/message_loop.cc',
333 'message_loop/message_loop.h',
334 'message_loop/message_loop_proxy.cc',
335 'message_loop/message_loop_proxy.h',
336 'message_loop/message_loop_proxy_impl.cc',
337 'message_loop/message_loop_proxy_impl.h',
338 'message_loop/message_pump.cc',
339 'message_loop/message_pump.h',
340 'message_loop/message_pump_android.cc',
341 'message_loop/message_pump_android.h',
342 'message_loop/message_pump_default.cc',
343 'message_loop/message_pump_default.h',
344 'message_loop/message_pump_ozone.cc',
345 'message_loop/message_pump_ozone.h',
346 'message_loop/message_pump_win.cc',
347 'message_loop/message_pump_win.h',
348 'metrics/sample_map.cc',
349 'metrics/sample_map.h',
350 'metrics/sample_vector.cc',
351 'metrics/sample_vector.h',
352 'metrics/bucket_ranges.cc',
353 'metrics/bucket_ranges.h',
354 'metrics/histogram.cc',
355 'metrics/histogram.h',
356 'metrics/histogram_base.cc',
357 'metrics/histogram_base.h',
358 'metrics/histogram_delta_serialization.cc',
359 'metrics/histogram_delta_serialization.h',
360 'metrics/histogram_flattener.h',
361 'metrics/histogram_samples.cc',
362 'metrics/histogram_samples.h',
363 'metrics/histogram_snapshot_manager.cc',
364 'metrics/histogram_snapshot_manager.h',
365 'metrics/sparse_histogram.cc',
366 'metrics/sparse_histogram.h',
367 'metrics/statistics_recorder.cc',
368 'metrics/statistics_recorder.h',
369 'metrics/stats_counters.cc',
370 'metrics/stats_counters.h',
371 'metrics/stats_table.cc',
372 'metrics/stats_table.h',
375 'native_library_mac.mm',
376 'native_library_posix.cc',
377 'native_library_win.cc',
378 'nix/mime_util_xdg.cc',
379 'nix/mime_util_xdg.h',
383 'observer_list_threadsafe.h',
384 'os_compat_android.cc',
385 'os_compat_android.h',
396 'platform_file_posix.cc',
397 'platform_file_win.cc',
399 'posix/eintr_wrapper.h',
400 'posix/global_descriptors.cc',
401 'posix/global_descriptors.h',
402 'posix/unix_domain_socket_linux.cc',
403 'posix/unix_domain_socket_linux.h',
404 'power_monitor/power_monitor.cc',
405 'power_monitor/power_monitor.h',
406 'power_monitor/power_monitor_device_source_android.cc',
407 'power_monitor/power_monitor_device_source_android.h',
408 'power_monitor/power_monitor_device_source.cc',
409 'power_monitor/power_monitor_device_source.h',
410 'power_monitor/power_monitor_device_source_ios.mm',
411 'power_monitor/power_monitor_device_source_mac.mm',
412 'power_monitor/power_monitor_device_source_posix.cc',
413 'power_monitor/power_monitor_device_source_win.cc',
414 'power_monitor/power_monitor_source.cc',
415 'power_monitor/power_monitor_source.h',
416 'power_monitor/power_observer.h',
417 'process/internal_linux.cc',
418 'process/internal_linux.h',
421 'process/kill_mac.cc',
422 'process/kill_posix.cc',
423 'process/kill_win.cc',
426 'process/launch_ios.cc',
427 'process/launch_mac.cc',
428 'process/launch_posix.cc',
429 'process/launch_win.cc',
431 'process/memory_linux.cc',
432 'process/memory_mac.mm',
433 'process/memory_win.cc',
435 'process/process_handle_freebsd.cc',
436 'process/process_handle_linux.cc',
437 'process/process_handle_mac.cc',
438 'process/process_handle_openbsd.cc',
439 'process/process_handle_posix.cc',
440 'process/process_handle_win.cc',
441 'process/process_info.h',
442 'process/process_info_linux.cc',
443 'process/process_info_mac.cc',
444 'process/process_info_win.cc',
445 'process/process_iterator.cc',
446 'process/process_iterator.h',
447 'process/process_iterator_freebsd.cc',
448 'process/process_iterator_linux.cc',
449 'process/process_iterator_mac.cc',
450 'process/process_iterator_openbsd.cc',
451 'process/process_iterator_win.cc',
452 'process/process_linux.cc',
453 'process/process_metrics.h',
454 'process/process_metrics.cc',
455 'process/process_metrics_freebsd.cc',
456 'process/process_metrics_ios.cc',
457 'process/process_metrics_linux.cc',
458 'process/process_metrics_mac.cc',
459 'process/process_metrics_openbsd.cc',
460 'process/process_metrics_posix.cc',
461 'process/process_metrics_win.cc',
462 'process/process_posix.cc',
463 'process/process_win.cc',
464 'profiler/scoped_profile.cc',
465 'profiler/scoped_profile.h',
466 'profiler/alternate_timer.cc',
467 'profiler/alternate_timer.h',
468 'profiler/tracked_time.cc',
469 'profiler/tracked_time.h',
473 'rand_util_posix.cc',
478 'safe_strerror_posix.cc',
479 'safe_strerror_posix.h',
480 'scoped_native_library.cc',
481 'scoped_native_library.h',
482 'sequence_checker.h',
483 'sequence_checker_impl.cc',
484 'sequence_checker_impl.h',
485 'sequenced_task_runner.cc',
486 'sequenced_task_runner.h',
487 'sequenced_task_runner_helpers.h',
491 'single_thread_task_runner.h',
493 'strings/latin1_string_conversions.cc',
494 'strings/latin1_string_conversions.h',
495 'strings/nullable_string16.cc',
496 'strings/nullable_string16.h',
497 'strings/safe_sprintf.cc',
498 'strings/safe_sprintf.h',
499 'strings/string16.cc',
500 'strings/string16.h',
501 'strings/string_number_conversions.cc',
502 'strings/string_split.cc',
503 'strings/string_split.h',
504 'strings/string_number_conversions.h',
505 'strings/string_piece.cc',
506 'strings/string_piece.h',
507 'strings/string_tokenizer.h',
508 'strings/string_util.cc',
509 'strings/string_util.h',
510 'strings/string_util_constants.cc',
511 'strings/string_util_posix.h',
512 'strings/string_util_win.h',
513 'strings/stringize_macros.h',
514 'strings/stringprintf.cc',
515 'strings/stringprintf.h',
516 'strings/sys_string_conversions.h',
517 'strings/sys_string_conversions_mac.mm',
518 'strings/sys_string_conversions_posix.cc',
519 'strings/sys_string_conversions_win.cc',
520 'strings/utf_offset_string_conversions.cc',
521 'strings/utf_offset_string_conversions.h',
522 'strings/utf_string_conversion_utils.cc',
523 'strings/utf_string_conversion_utils.h',
524 'strings/utf_string_conversions.cc',
525 'strings/utf_string_conversions.h',
526 'supports_user_data.cc',
527 'supports_user_data.h',
528 'synchronization/cancellation_flag.cc',
529 'synchronization/cancellation_flag.h',
530 'synchronization/condition_variable.h',
531 'synchronization/condition_variable_posix.cc',
532 'synchronization/condition_variable_win.cc',
533 'synchronization/lock.cc',
534 'synchronization/lock.h',
535 'synchronization/lock_impl.h',
536 'synchronization/lock_impl_posix.cc',
537 'synchronization/lock_impl_win.cc',
538 'synchronization/spin_wait.h',
539 'synchronization/waitable_event.h',
540 'synchronization/waitable_event_posix.cc',
541 'synchronization/waitable_event_watcher.h',
542 'synchronization/waitable_event_watcher_posix.cc',
543 'synchronization/waitable_event_watcher_win.cc',
544 'synchronization/waitable_event_win.cc',
545 'system_monitor/system_monitor.cc',
546 'system_monitor/system_monitor.h',
550 'sys_info_android.cc',
551 'sys_info_chromeos.cc',
552 'sys_info_freebsd.cc',
553 'sys_info_internal.h',
557 'sys_info_openbsd.cc',
562 'task_runner_util.h',
564 'thread_task_runner_handle.cc',
565 'thread_task_runner_handle.h',
566 'threading/non_thread_safe.h',
567 'threading/non_thread_safe_impl.cc',
568 'threading/non_thread_safe_impl.h',
569 'threading/platform_thread.h',
570 'threading/platform_thread_android.cc',
571 'threading/platform_thread_linux.cc',
572 'threading/platform_thread_mac.mm',
573 'threading/platform_thread_posix.cc',
574 'threading/platform_thread_win.cc',
575 'threading/post_task_and_reply_impl.cc',
576 'threading/post_task_and_reply_impl.h',
577 'threading/sequenced_worker_pool.cc',
578 'threading/sequenced_worker_pool.h',
579 'threading/simple_thread.cc',
580 'threading/simple_thread.h',
581 'threading/thread.cc',
582 'threading/thread.h',
583 'threading/thread_checker.h',
584 'threading/thread_checker_impl.cc',
585 'threading/thread_checker_impl.h',
586 'threading/thread_collision_warner.cc',
587 'threading/thread_collision_warner.h',
588 'threading/thread_id_name_manager.cc',
589 'threading/thread_id_name_manager.h',
590 'threading/thread_local.h',
591 'threading/thread_local_posix.cc',
592 'threading/thread_local_storage.h',
593 'threading/thread_local_storage_posix.cc',
594 'threading/thread_local_storage_win.cc',
595 'threading/thread_local_win.cc',
596 'threading/thread_restrictions.h',
597 'threading/thread_restrictions.cc',
598 'threading/watchdog.cc',
599 'threading/watchdog.h',
600 'threading/worker_pool.h',
601 'threading/worker_pool.cc',
602 'threading/worker_pool_posix.cc',
603 'threading/worker_pool_posix.h',
604 'threading/worker_pool_win.cc',
607 'time/default_clock.cc',
608 'time/default_clock.h',
609 'time/default_tick_clock.cc',
610 'time/default_tick_clock.h',
611 'time/tick_clock.cc',
616 'time/time_posix.cc',
618 'timer/elapsed_timer.cc',
619 'timer/elapsed_timer.h',
620 'timer/hi_res_timer_manager.h',
621 'timer/hi_res_timer_manager_posix.cc',
622 'timer/hi_res_timer_manager_win.cc',
625 'tracked_objects.cc',
632 'value_conversions.cc',
633 'value_conversions.h',
638 'win/enum_variant.cc',
639 'win/enum_variant.h',
640 'win/event_trace_consumer.h',
641 'win/event_trace_controller.cc',
642 'win/event_trace_controller.h',
643 'win/event_trace_provider.cc',
644 'win/event_trace_provider.h',
647 'win/iat_patch_function.cc',
648 'win/iat_patch_function.h',
649 'win/iunknown_impl.cc',
650 'win/iunknown_impl.h',
651 'win/message_window.cc',
652 'win/message_window.h',
655 'win/object_watcher.cc',
656 'win/object_watcher.h',
659 'win/resource_util.cc',
660 'win/resource_util.h',
661 'win/scoped_bstr.cc',
663 'win/scoped_co_mem.h',
664 'win/scoped_com_initializer.h',
665 'win/scoped_comptr.h',
666 'win/scoped_gdi_object.h',
667 'win/scoped_handle.cc',
668 'win/scoped_handle.h',
670 'win/scoped_hglobal.h',
671 'win/scoped_process_information.cc',
672 'win/scoped_process_information.h',
673 'win/scoped_propvariant.h',
674 'win/scoped_select_object.h',
675 'win/scoped_variant.cc',
676 'win/scoped_variant.h',
679 'win/startup_information.cc',
680 'win/startup_information.h',
681 'win/text_services_message_filter.cc',
682 'win/text_services_message_filter.h',
685 'win/windows_version.cc',
686 'win/windows_version.h',
687 'win/wrapped_window_proc.cc',
688 'win/wrapped_window_proc.h',
689 'x11/x11_error_tracker.cc',
690 'x11/x11_error_tracker.h',
691 'x11/x11_error_tracker_gtk.cc',
694 ['use_aura==1 and use_x11==1', {
696 'x11/edid_parser_x11.cc',
697 'x11/edid_parser_x11.h',
702 'android/context_types.cc',
703 'android/context_types.h',
708 'BASE_IMPLEMENTATION',
713 'msvs_disabled_warnings': [
716 'target_conditions': [
717 ['(<(desktop_linux) == 0 and <(chromeos) == 0) or >(nacl_untrusted_build)==1', {
719 ['exclude', '^nix/'],
722 'atomicops_internals_x86_gcc.cc',
725 ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
727 'message_loop/message_pump_glib.cc',
730 ['<(use_x11)==0 or >(nacl_untrusted_build)==1', {
732 'message_loop/message_pump_x11.cc',
735 ['<(toolkit_uses_gtk)==0 or >(nacl_untrusted_build)==1', {
736 'sources!': ['message_loop/message_pump_gtk.cc'],
738 ['(OS != "linux" and <(os_bsd) != 1 and OS != "android") or >(nacl_untrusted_build)==1', {
740 # Not automatically excluded by the *linux.cc rules.
745 ['>(nacl_untrusted_build)==1', {
747 'allocator/type_profiler_control.cc',
748 'allocator/type_profiler_control.h',
751 'debug/stack_trace_posix.cc',
753 'file_util_posix.cc',
754 'files/file_enumerator_posix.cc',
755 'files/file_path_watcher_kqueue.cc',
756 'files/file_util_proxy.cc',
757 'memory/shared_memory_posix.cc',
758 'native_library_posix.cc',
760 'posix/unix_domain_socket_linux.cc',
761 'process/kill_posix.cc',
762 'process/launch_posix.cc',
763 'process/process_metrics_posix.cc',
764 'process/process_posix.cc',
765 'rand_util_posix.cc',
766 'scoped_native_library.cc',
767 'files/scoped_temp_dir.cc',
769 'third_party/dynamic_annotations/dynamic_annotations.c',
772 # Metrics won't work in the NaCl sandbox.
773 ['exclude', '^metrics/'],
774 ['include', '^threading/platform_thread_linux\\.cc$'],
777 ['OS == "android" and >(nacl_untrusted_build)==0', {
779 'base_paths_posix.cc',
780 'files/file_path_watcher_kqueue.cc',
781 'files/file_path_watcher_stub.cc',
782 'power_monitor/power_monitor_device_source_posix.cc',
785 ['include', '^debug/proc_maps_linux\\.cc$'],
786 ['include', '^files/file_path_watcher_linux\\.cc$'],
787 ['include', '^process/memory_linux\\.cc$'],
788 ['include', '^process/internal_linux\\.cc$'],
789 ['include', '^process/process_handle_linux\\.cc$'],
790 ['include', '^process/process_iterator\\.cc$'],
791 ['include', '^process/process_iterator_linux\\.cc$'],
792 ['include', '^process/process_metrics_linux\\.cc$'],
793 ['include', '^posix/unix_domain_socket_linux\\.cc$'],
794 ['include', '^strings/sys_string_conversions_posix\\.cc$'],
795 ['include', '^sys_info_linux\\.cc$'],
796 ['include', '^worker_pool_linux\\.cc$'],
799 ['OS == "android" and _toolset == "host" and host_os == "linux"', {
801 # Pull in specific files for host builds.
802 ['include', '^threading/platform_thread_linux\\.cc$'],
805 ['OS == "android" and <(android_webview_build)==1', {
807 # WebView builds as part of the system which already has sincos;
808 # avoid defining it again as it causes a linker warning.
809 'ANDROID_SINCOS_PROVIDED',
812 ['OS == "ios" and _toolset != "host"', {
814 # Pull in specific Mac files for iOS (which have been filtered out
815 # by file name rules).
816 ['include', '^atomicops_internals_mac\\.'],
817 ['include', '^base_paths_mac\\.'],
818 ['include', '^file_util_mac\\.'],
819 ['include', '^file_version_info_mac\\.'],
820 ['include', '^mac/bundle_locations\\.'],
821 ['include', '^mac/foundation_util\\.'],
822 ['include', '^mac/mac_logging\\.'],
823 ['include', '^mac/objc_property_releaser\\.'],
824 ['include', '^mac/scoped_mach_port\\.'],
825 ['include', '^mac/scoped_nsautorelease_pool\\.'],
826 ['include', '^mac/scoped_nsobject\\.'],
827 ['include', '^memory/discardable_memory_mac\\.'],
828 ['include', '^message_loop/message_pump_mac\\.'],
829 ['include', '^strings/sys_string_conversions_mac\\.'],
830 ['include', '^threading/platform_thread_mac\\.'],
831 ['include', '^time/time_mac\\.'],
832 ['include', '^worker_pool_mac\\.'],
833 # Exclude all process/ except the minimal implementation
834 # needed on iOS (mostly for unit tests).
835 ['exclude', '^process/.*'],
836 ['include', '^process/.*_ios\.(cc|mm)$'],
837 ['include', '^process/memory_stubs\.cc$'],
838 ['include', '^process/process_handle_posix\.cc$'],
841 'process/memory_stubs.cc',
844 'message_loop/message_pump_libevent.cc'
847 ['OS == "ios" and _toolset == "host"', {
849 # Copied filename_rules to switch from iOS to Mac inclusions.
850 ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
851 ['include', '(^|/)(cocoa|mac)/'],
852 ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
853 ['exclude', '(^|/)ios/'],
856 ['OS != "mac" or >(nacl_untrusted_build)==1', {
858 'mac/scoped_aedesc.h'
861 # For now, just test the *BSD platforms enough to exclude them.
862 # Subsequent changes will include them further.
863 ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
864 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
867 ['OS != "openbsd" or >(nacl_untrusted_build)==1', {
868 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
871 ['OS != "win" or >(nacl_untrusted_build)==1', {
872 'sources/': [ ['exclude', '^win/'] ],
875 ['OS != "android" or >(nacl_untrusted_build)==1', {
876 'sources/': [ ['exclude', '^android/'] ],
879 ['OS == "win" and >(nacl_untrusted_build)==0', {
881 '<(DEPTH)/third_party/wtl/include',
884 'event_recorder_stubs.cc',
885 'files/file_path_watcher_kqueue.cc',
886 'files/file_path_watcher_stub.cc',
887 'message_loop/message_pump_libevent.cc',
888 'posix/file_descriptor_shuffle.cc',
889 # Not using sha1_win.cc because it may have caused a
890 # regression to page cycler moz.
892 'strings/string16.cc',
895 ['<(use_ozone) == 1', {
897 'message_loop/message_pump_glib.cc',
898 'message_loop/message_pump_x11.cc',
901 ['OS == "linux" and >(nacl_untrusted_build)==0', {
903 'files/file_path_watcher_kqueue.cc',
904 'files/file_path_watcher_stub.cc',
907 ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', {
909 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
910 ['exclude', '^base_paths_posix\\.cc$'],
911 ['exclude', '^native_library_posix\\.cc$'],
912 ['exclude', '^strings/sys_string_conversions_posix\\.cc$'],
915 ['<(os_bsd)==1 and >(nacl_untrusted_build)==0', {
917 'process/memory_stubs.cc',
920 ['exclude', '^files/file_path_watcher_linux\\.cc$'],
921 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
922 ['exclude', '^file_util_linux\\.cc$'],
923 ['exclude', '^process/process_linux\\.cc$'],
924 ['exclude', '^sys_info_linux\\.cc$'],
927 ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', {
929 ['exclude', '^chromeos/'],
932 # Remove all unnecessary files for build_nexe.py to avoid exceeding
933 # command-line-string limitation when building NaCl on Windows.
934 ['OS == "win" and >(nacl_untrusted_build)==1', {
935 'sources/': [ ['exclude', '\\.h$'] ],
937 ['<(use_system_nspr)==1 and >(nacl_untrusted_build)==0', {
939 ['exclude', '^third_party/nspr/'],
942 ['<(toolkit_uses_gtk) == 1', {
944 'x11/x11_error_tracker.cc',