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/cpu_features.cc',
43 'android/fifo_utils.cc',
44 'android/fifo_utils.h',
45 'android/important_file_writer_android.cc',
46 'android/important_file_writer_android.h',
47 'android/scoped_java_ref.cc',
48 'android/scoped_java_ref.h',
49 'android/jni_android.cc',
50 'android/jni_android.h',
51 'android/jni_array.cc',
52 'android/jni_array.h',
53 'android/jni_helper.cc',
54 'android/jni_helper.h',
55 'android/jni_registrar.cc',
56 'android/jni_registrar.h',
57 'android/jni_string.cc',
58 'android/jni_string.h',
59 'android/memory_pressure_listener_android.cc',
60 'android/memory_pressure_listener_android.h',
61 'android/java_handler_thread.cc',
62 'android/java_handler_thread.h',
63 'android/path_service_android.cc',
64 'android/path_service_android.h',
65 'android/path_utils.cc',
66 'android/path_utils.h',
67 'android/sys_utils.cc',
68 'android/sys_utils.h',
69 'android/thread_utils.h',
73 'atomic_sequence_num.h',
75 'atomicops_internals_gcc.h',
76 'atomicops_internals_mac.h',
77 'atomicops_internals_tsan.h',
78 'atomicops_internals_x86_gcc.cc',
79 'atomicops_internals_x86_gcc.h',
80 'atomicops_internals_x86_msvc.h',
86 'base_paths_android.cc',
87 'base_paths_android.h',
90 'base_paths_posix.cc',
102 'bind_internal_win.h',
107 'callback_helpers.cc',
108 'callback_helpers.h',
109 'callback_internal.cc',
110 'callback_internal.h',
112 'cancelable_callback.h',
115 'compiler_specific.h',
116 'containers/hash_tables.h',
117 'containers/linked_list.h',
118 'containers/mru_cache.h',
119 'containers/scoped_ptr_hash_map.h',
120 'containers/small_map.h',
121 'containers/stack_container.h',
124 'critical_closure.h',
125 'critical_closure_ios.mm',
128 'debug/crash_logging.cc',
129 'debug/crash_logging.h',
130 'debug/debug_on_start_win.cc',
131 'debug/debug_on_start_win.h',
134 'debug/debugger_posix.cc',
135 'debug/debugger_win.cc',
136 # This file depends on files from the 'allocator' target,
137 # but this target does not depend on 'allocator' (see
138 # allocator.gyp for details).
139 'debug/leak_annotations.h',
140 'debug/leak_tracker.h',
141 'debug/proc_maps_linux.cc',
142 'debug/proc_maps_linux.h',
145 'debug/stack_trace.cc',
146 'debug/stack_trace.h',
147 'debug/stack_trace_android.cc',
148 'debug/stack_trace_ios.mm',
149 'debug/stack_trace_posix.cc',
150 'debug/stack_trace_win.cc',
151 'debug/trace_event.h',
152 'debug/trace_event_android.cc',
153 'debug/trace_event_impl.cc',
154 'debug/trace_event_impl.h',
155 'debug/trace_event_impl_constants.cc',
156 'debug/trace_event_system_stats_monitor.cc',
157 'debug/trace_event_memory.cc',
158 'debug/trace_event_memory.h',
159 'debug/trace_event_win.cc',
160 'deferred_sequenced_task_runner.cc',
161 'deferred_sequenced_task_runner.h',
164 'file_descriptor_posix.h',
167 'file_util_android.cc',
168 'file_util_linux.cc',
170 'file_util_posix.cc',
172 'file_version_info.h',
173 'file_version_info_mac.h',
174 'file_version_info_mac.mm',
175 'file_version_info_win.cc',
176 'file_version_info_win.h',
177 'files/dir_reader_fallback.h',
178 'files/dir_reader_linux.h',
179 'files/dir_reader_posix.h',
180 'files/file_enumerator.cc',
181 'files/file_enumerator.h',
182 'files/file_enumerator_posix.cc',
183 'files/file_enumerator_win.cc',
184 'files/file_path.cc',
186 'files/file_path_constants.cc',
187 'files/file_path_watcher.cc',
188 'files/file_path_watcher.h',
189 'files/file_path_watcher_kqueue.cc',
190 'files/file_path_watcher_linux.cc',
191 'files/file_path_watcher_stub.cc',
192 'files/file_path_watcher_win.cc',
193 'files/file_util_proxy.cc',
194 'files/file_util_proxy.h',
195 'files/important_file_writer.h',
196 'files/important_file_writer.cc',
197 'files/memory_mapped_file.cc',
198 'files/memory_mapped_file.h',
199 'files/memory_mapped_file_posix.cc',
200 'files/memory_mapped_file_win.cc',
201 'files/scoped_platform_file_closer.cc',
202 'files/scoped_platform_file_closer.h',
203 'files/scoped_temp_dir.cc',
204 'files/scoped_temp_dir.h',
218 'ios/device_util.mm',
221 'ios/scoped_critical_action.h',
222 'ios/scoped_critical_action.mm',
223 'json/json_file_value_serializer.cc',
224 'json/json_file_value_serializer.h',
225 'json/json_parser.cc',
226 'json/json_parser.h',
227 'json/json_reader.cc',
228 'json/json_reader.h',
229 'json/json_string_value_serializer.cc',
230 'json/json_string_value_serializer.h',
231 'json/json_value_converter.h',
232 'json/json_writer.cc',
233 'json/json_writer.h',
234 'json/string_escape.cc',
235 'json/string_escape.h',
244 'mac/authorization_util.h',
245 'mac/authorization_util.mm',
246 'mac/bind_objc_block.h',
247 'mac/bundle_locations.h',
248 'mac/bundle_locations.mm',
249 'mac/close_nocancel.cc',
250 'mac/cocoa_protocols.h',
251 'mac/foundation_util.h',
252 'mac/foundation_util.mm',
253 'mac/launch_services_util.cc',
254 'mac/launch_services_util.h',
257 'mac/libdispatch_task_runner.cc',
258 'mac/libdispatch_task_runner.h',
260 'mac/mac_logging.cc',
263 'mac/objc_property_releaser.h',
264 'mac/objc_property_releaser.mm',
265 'mac/os_crash_dumps.cc',
266 'mac/os_crash_dumps.h',
267 'mac/scoped_aedesc.h',
268 'mac/scoped_authorizationref.h',
269 'mac/scoped_block.h',
270 'mac/scoped_cftyperef.h',
271 'mac/scoped_ioobject.h',
272 'mac/scoped_ioplugininterface.h',
273 'mac/scoped_launch_data.h',
274 'mac/scoped_mach_port.cc',
275 'mac/scoped_mach_port.h',
276 'mac/scoped_nsautorelease_pool.h',
277 'mac/scoped_nsautorelease_pool.mm',
278 'mac/scoped_nsexception_enabler.h',
279 'mac/scoped_nsexception_enabler.mm',
280 'mac/scoped_nsobject.h',
281 'mac/scoped_sending_event.h',
282 'mac/scoped_sending_event.mm',
283 'mac/sdk_forward_declarations.h',
284 'memory/aligned_memory.cc',
285 'memory/aligned_memory.h',
286 'memory/discardable_memory.h',
287 'memory/discardable_memory_android.cc',
288 'memory/discardable_memory_emulated.cc',
289 'memory/discardable_memory_mac.cc',
290 'memory/discardable_memory_provider.cc',
291 'memory/discardable_memory_provider.h',
292 'memory/linked_ptr.h',
293 'memory/manual_constructor.h',
294 'memory/memory_pressure_listener.cc',
295 'memory/memory_pressure_listener.h',
296 'memory/raw_scoped_refptr_mismatch_checker.h',
297 'memory/ref_counted.cc',
298 'memory/ref_counted.h',
299 'memory/ref_counted_delete_on_message_loop.h',
300 'memory/ref_counted_memory.cc',
301 'memory/ref_counted_memory.h',
302 'memory/scoped_handle.h',
303 'memory/scoped_open_process.h',
304 'memory/scoped_policy.h',
305 'memory/scoped_ptr.h',
306 'memory/scoped_vector.h',
307 'memory/shared_memory.h',
308 'memory/shared_memory_android.cc',
309 'memory/shared_memory_nacl.cc',
310 'memory/shared_memory_posix.cc',
311 'memory/shared_memory_win.cc',
312 'memory/singleton.cc',
313 'memory/singleton.h',
314 'memory/weak_ptr.cc',
316 'message_loop/incoming_task_queue.cc',
317 'message_loop/incoming_task_queue.h',
318 'message_loop/message_loop.cc',
319 'message_loop/message_loop.h',
320 'message_loop/message_loop_proxy.cc',
321 'message_loop/message_loop_proxy.h',
322 'message_loop/message_loop_proxy_impl.cc',
323 'message_loop/message_loop_proxy_impl.h',
324 'message_loop/message_pump.cc',
325 'message_loop/message_pump.h',
326 'message_loop/message_pump_android.cc',
327 'message_loop/message_pump_android.h',
328 'message_loop/message_pump_default.cc',
329 'message_loop/message_pump_default.h',
330 'message_loop/message_pump_ozone.cc',
331 'message_loop/message_pump_ozone.h',
332 'message_loop/message_pump_win.cc',
333 'message_loop/message_pump_win.h',
334 'metrics/sample_map.cc',
335 'metrics/sample_map.h',
336 'metrics/sample_vector.cc',
337 'metrics/sample_vector.h',
338 'metrics/bucket_ranges.cc',
339 'metrics/bucket_ranges.h',
340 'metrics/histogram.cc',
341 'metrics/histogram.h',
342 'metrics/histogram_base.cc',
343 'metrics/histogram_base.h',
344 'metrics/histogram_delta_serialization.cc',
345 'metrics/histogram_delta_serialization.h',
346 'metrics/histogram_flattener.h',
347 'metrics/histogram_samples.cc',
348 'metrics/histogram_samples.h',
349 'metrics/histogram_snapshot_manager.cc',
350 'metrics/histogram_snapshot_manager.h',
351 'metrics/sparse_histogram.cc',
352 'metrics/sparse_histogram.h',
353 'metrics/statistics_recorder.cc',
354 'metrics/statistics_recorder.h',
355 'metrics/stats_counters.cc',
356 'metrics/stats_counters.h',
357 'metrics/stats_table.cc',
358 'metrics/stats_table.h',
361 'native_library_mac.mm',
362 'native_library_posix.cc',
363 'native_library_win.cc',
364 'nix/mime_util_xdg.cc',
365 'nix/mime_util_xdg.h',
369 'observer_list_threadsafe.h',
370 'os_compat_android.cc',
371 'os_compat_android.h',
382 'platform_file_posix.cc',
383 'platform_file_win.cc',
385 'posix/eintr_wrapper.h',
386 'posix/global_descriptors.cc',
387 'posix/global_descriptors.h',
388 'posix/unix_domain_socket_linux.cc',
389 'posix/unix_domain_socket_linux.h',
390 'power_monitor/power_monitor.cc',
391 'power_monitor/power_monitor.h',
392 'power_monitor/power_monitor_device_source_android.cc',
393 'power_monitor/power_monitor_device_source_android.h',
394 'power_monitor/power_monitor_device_source.cc',
395 'power_monitor/power_monitor_device_source.h',
396 'power_monitor/power_monitor_device_source_ios.mm',
397 'power_monitor/power_monitor_device_source_mac.mm',
398 'power_monitor/power_monitor_device_source_posix.cc',
399 'power_monitor/power_monitor_device_source_win.cc',
400 'power_monitor/power_monitor_source.cc',
401 'power_monitor/power_monitor_source.h',
402 'power_monitor/power_observer.h',
403 'process/internal_linux.cc',
404 'process/internal_linux.h',
407 'process/kill_mac.cc',
408 'process/kill_posix.cc',
409 'process/kill_win.cc',
412 'process/launch_ios.cc',
413 'process/launch_mac.cc',
414 'process/launch_posix.cc',
415 'process/launch_win.cc',
417 'process/memory_linux.cc',
418 'process/memory_mac.mm',
419 'process/memory_win.cc',
421 'process/process_handle_freebsd.cc',
422 'process/process_handle_linux.cc',
423 'process/process_handle_mac.cc',
424 'process/process_handle_openbsd.cc',
425 'process/process_handle_posix.cc',
426 'process/process_handle_win.cc',
427 'process/process_info.h',
428 'process/process_info_linux.cc',
429 'process/process_info_mac.cc',
430 'process/process_info_win.cc',
431 'process/process_iterator.cc',
432 'process/process_iterator.h',
433 'process/process_iterator_freebsd.cc',
434 'process/process_iterator_linux.cc',
435 'process/process_iterator_mac.cc',
436 'process/process_iterator_openbsd.cc',
437 'process/process_iterator_win.cc',
438 'process/process_linux.cc',
439 'process/process_metrics.h',
440 'process/process_metrics.cc',
441 'process/process_metrics_freebsd.cc',
442 'process/process_metrics_ios.cc',
443 'process/process_metrics_linux.cc',
444 'process/process_metrics_mac.cc',
445 'process/process_metrics_openbsd.cc',
446 'process/process_metrics_posix.cc',
447 'process/process_metrics_win.cc',
448 'process/process_posix.cc',
449 'process/process_win.cc',
450 'profiler/scoped_profile.cc',
451 'profiler/scoped_profile.h',
452 'profiler/alternate_timer.cc',
453 'profiler/alternate_timer.h',
454 'profiler/tracked_time.cc',
455 'profiler/tracked_time.h',
459 'rand_util_posix.cc',
464 'safe_strerror_posix.cc',
465 'safe_strerror_posix.h',
466 'scoped_native_library.cc',
467 'scoped_native_library.h',
468 'sequence_checker.h',
469 'sequence_checker_impl.cc',
470 'sequence_checker_impl.h',
471 'sequenced_task_runner.cc',
472 'sequenced_task_runner.h',
473 'sequenced_task_runner_helpers.h',
477 'single_thread_task_runner.h',
479 'strings/latin1_string_conversions.cc',
480 'strings/latin1_string_conversions.h',
481 'strings/nullable_string16.cc',
482 'strings/nullable_string16.h',
483 'strings/safe_sprintf.cc',
484 'strings/safe_sprintf.h',
485 'strings/string16.cc',
486 'strings/string16.h',
487 'strings/string_number_conversions.cc',
488 'strings/string_split.cc',
489 'strings/string_split.h',
490 'strings/string_number_conversions.h',
491 'strings/string_piece.cc',
492 'strings/string_piece.h',
493 'strings/string_tokenizer.h',
494 'strings/string_util.cc',
495 'strings/string_util.h',
496 'strings/string_util_constants.cc',
497 'strings/string_util_posix.h',
498 'strings/string_util_win.h',
499 'strings/stringize_macros.h',
500 'strings/stringprintf.cc',
501 'strings/stringprintf.h',
502 'strings/sys_string_conversions.h',
503 'strings/sys_string_conversions_mac.mm',
504 'strings/sys_string_conversions_posix.cc',
505 'strings/sys_string_conversions_win.cc',
506 'strings/utf_offset_string_conversions.cc',
507 'strings/utf_offset_string_conversions.h',
508 'strings/utf_string_conversion_utils.cc',
509 'strings/utf_string_conversion_utils.h',
510 'strings/utf_string_conversions.cc',
511 'strings/utf_string_conversions.h',
512 'supports_user_data.cc',
513 'supports_user_data.h',
514 'synchronization/cancellation_flag.cc',
515 'synchronization/cancellation_flag.h',
516 'synchronization/condition_variable.h',
517 'synchronization/condition_variable_posix.cc',
518 'synchronization/condition_variable_win.cc',
519 'synchronization/lock.cc',
520 'synchronization/lock.h',
521 'synchronization/lock_impl.h',
522 'synchronization/lock_impl_posix.cc',
523 'synchronization/lock_impl_win.cc',
524 'synchronization/spin_wait.h',
525 'synchronization/waitable_event.h',
526 'synchronization/waitable_event_posix.cc',
527 'synchronization/waitable_event_watcher.h',
528 'synchronization/waitable_event_watcher_posix.cc',
529 'synchronization/waitable_event_watcher_win.cc',
530 'synchronization/waitable_event_win.cc',
531 'system_monitor/system_monitor.cc',
532 'system_monitor/system_monitor.h',
536 'sys_info_android.cc',
537 'sys_info_chromeos.cc',
538 'sys_info_freebsd.cc',
542 'sys_info_openbsd.cc',
547 'task_runner_util.h',
549 'thread_task_runner_handle.cc',
550 'thread_task_runner_handle.h',
551 'threading/non_thread_safe.h',
552 'threading/non_thread_safe_impl.cc',
553 'threading/non_thread_safe_impl.h',
554 'threading/platform_thread.h',
555 'threading/platform_thread_android.cc',
556 'threading/platform_thread_linux.cc',
557 'threading/platform_thread_mac.mm',
558 'threading/platform_thread_posix.cc',
559 'threading/platform_thread_win.cc',
560 'threading/post_task_and_reply_impl.cc',
561 'threading/post_task_and_reply_impl.h',
562 'threading/sequenced_worker_pool.cc',
563 'threading/sequenced_worker_pool.h',
564 'threading/simple_thread.cc',
565 'threading/simple_thread.h',
566 'threading/thread.cc',
567 'threading/thread.h',
568 'threading/thread_checker.h',
569 'threading/thread_checker_impl.cc',
570 'threading/thread_checker_impl.h',
571 'threading/thread_collision_warner.cc',
572 'threading/thread_collision_warner.h',
573 'threading/thread_id_name_manager.cc',
574 'threading/thread_id_name_manager.h',
575 'threading/thread_local.h',
576 'threading/thread_local_posix.cc',
577 'threading/thread_local_storage.h',
578 'threading/thread_local_storage_posix.cc',
579 'threading/thread_local_storage_win.cc',
580 'threading/thread_local_win.cc',
581 'threading/thread_restrictions.h',
582 'threading/thread_restrictions.cc',
583 'threading/watchdog.cc',
584 'threading/watchdog.h',
585 'threading/worker_pool.h',
586 'threading/worker_pool.cc',
587 'threading/worker_pool_posix.cc',
588 'threading/worker_pool_posix.h',
589 'threading/worker_pool_win.cc',
592 'time/default_clock.cc',
593 'time/default_clock.h',
594 'time/default_tick_clock.cc',
595 'time/default_tick_clock.h',
596 'time/tick_clock.cc',
601 'time/time_posix.cc',
603 'timer/elapsed_timer.cc',
604 'timer/elapsed_timer.h',
605 'timer/hi_res_timer_manager.h',
606 'timer/hi_res_timer_manager_posix.cc',
607 'timer/hi_res_timer_manager_win.cc',
610 'tracked_objects.cc',
617 'value_conversions.cc',
618 'value_conversions.h',
623 'win/enum_variant.cc',
624 'win/enum_variant.h',
625 'win/event_trace_consumer.h',
626 'win/event_trace_controller.cc',
627 'win/event_trace_controller.h',
628 'win/event_trace_provider.cc',
629 'win/event_trace_provider.h',
632 'win/iat_patch_function.cc',
633 'win/iat_patch_function.h',
634 'win/iunknown_impl.cc',
635 'win/iunknown_impl.h',
636 'win/message_window.cc',
637 'win/message_window.h',
640 'win/object_watcher.cc',
641 'win/object_watcher.h',
644 'win/resource_util.cc',
645 'win/resource_util.h',
646 'win/scoped_bstr.cc',
648 'win/scoped_co_mem.h',
649 'win/scoped_com_initializer.h',
650 'win/scoped_comptr.h',
651 'win/scoped_gdi_object.h',
652 'win/scoped_handle.cc',
653 'win/scoped_handle.h',
655 'win/scoped_hglobal.h',
656 'win/scoped_process_information.cc',
657 'win/scoped_process_information.h',
658 'win/scoped_propvariant.h',
659 'win/scoped_select_object.h',
660 'win/scoped_variant.cc',
661 'win/scoped_variant.h',
664 'win/startup_information.cc',
665 'win/startup_information.h',
666 'win/text_services_message_filter.cc',
667 'win/text_services_message_filter.h',
670 'win/windows_version.cc',
671 'win/windows_version.h',
672 'win/wrapped_window_proc.cc',
673 'win/wrapped_window_proc.h',
674 'x11/x11_error_tracker.cc',
675 'x11/x11_error_tracker.h',
676 'x11/x11_error_tracker_gtk.cc',
679 ['use_aura==1 and use_x11==1', {
681 'x11/edid_parser_x11.cc',
682 'x11/edid_parser_x11.h',
687 'android/context_types.cc',
688 'android/context_types.h',
693 'BASE_IMPLEMENTATION',
698 'msvs_disabled_warnings': [
701 'target_conditions': [
702 ['(<(desktop_linux) == 0 and <(chromeos) == 0) or >(nacl_untrusted_build)==1', {
704 ['exclude', '^nix/'],
707 'atomicops_internals_x86_gcc.cc',
710 ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
712 'message_loop/message_pump_glib.cc',
715 ['<(use_x11)==0 or >(nacl_untrusted_build)==1', {
717 'message_loop/message_pump_x11.cc',
720 ['<(toolkit_uses_gtk)==0 or >(nacl_untrusted_build)==1', {
721 'sources!': ['message_loop/message_pump_gtk.cc'],
723 ['(OS != "linux" and <(os_bsd) != 1 and OS != "android") or >(nacl_untrusted_build)==1', {
725 # Not automatically excluded by the *linux.cc rules.
730 ['>(nacl_untrusted_build)==1', {
732 'allocator/type_profiler_control.cc',
733 'allocator/type_profiler_control.h',
736 'debug/stack_trace_posix.cc',
738 'file_util_posix.cc',
739 'files/file_enumerator_posix.cc',
740 'files/file_path_watcher_kqueue.cc',
741 'files/file_util_proxy.cc',
742 'memory/shared_memory_posix.cc',
743 'native_library_posix.cc',
745 'posix/unix_domain_socket_linux.cc',
746 'process/kill_posix.cc',
747 'process/launch_posix.cc',
748 'process/process_metrics_posix.cc',
749 'process/process_posix.cc',
750 'rand_util_posix.cc',
751 'scoped_native_library.cc',
752 'files/scoped_temp_dir.cc',
754 'third_party/dynamic_annotations/dynamic_annotations.c',
757 # Metrics won't work in the NaCl sandbox.
758 ['exclude', '^metrics/'],
759 ['include', '^threading/platform_thread_linux\\.cc$'],
762 ['OS == "android" and >(nacl_untrusted_build)==0', {
764 'base_paths_posix.cc',
765 'files/file_path_watcher_kqueue.cc',
766 'files/file_path_watcher_stub.cc',
767 'power_monitor/power_monitor_device_source_posix.cc',
770 ['include', '^debug/proc_maps_linux\\.cc$'],
771 ['include', '^files/file_path_watcher_linux\\.cc$'],
772 ['include', '^process/memory_linux\\.cc$'],
773 ['include', '^process/internal_linux\\.cc$'],
774 ['include', '^process/process_handle_linux\\.cc$'],
775 ['include', '^process/process_iterator\\.cc$'],
776 ['include', '^process/process_iterator_linux\\.cc$'],
777 ['include', '^process/process_metrics_linux\\.cc$'],
778 ['include', '^posix/unix_domain_socket_linux\\.cc$'],
779 ['include', '^strings/sys_string_conversions_posix\\.cc$'],
780 ['include', '^sys_info_linux\\.cc$'],
781 ['include', '^worker_pool_linux\\.cc$'],
784 ['OS == "android" and _toolset == "host" and host_os == "linux"', {
786 # Pull in specific files for host builds.
787 ['include', '^threading/platform_thread_linux\\.cc$'],
790 ['OS == "android" and <(android_webview_build)==1', {
792 # WebView builds as part of the system which already has sincos;
793 # avoid defining it again as it causes a linker warning.
794 'ANDROID_SINCOS_PROVIDED',
797 ['OS == "ios" and _toolset != "host"', {
799 # Pull in specific Mac files for iOS (which have been filtered out
800 # by file name rules).
801 ['include', '^atomicops_internals_mac\\.'],
802 ['include', '^base_paths_mac\\.'],
803 ['include', '^file_util_mac\\.'],
804 ['include', '^file_version_info_mac\\.'],
805 ['include', '^mac/bundle_locations\\.'],
806 ['include', '^mac/foundation_util\\.'],
807 ['include', '^mac/mac_logging\\.'],
808 ['include', '^mac/objc_property_releaser\\.'],
809 ['include', '^mac/scoped_mach_port\\.'],
810 ['include', '^mac/scoped_nsautorelease_pool\\.'],
811 ['include', '^mac/scoped_nsobject\\.'],
812 ['include', '^memory/discardable_memory_mac\\.'],
813 ['include', '^message_loop/message_pump_mac\\.'],
814 ['include', '^strings/sys_string_conversions_mac\\.'],
815 ['include', '^threading/platform_thread_mac\\.'],
816 ['include', '^time/time_mac\\.'],
817 ['include', '^worker_pool_mac\\.'],
818 # Exclude all process/ except the minimal implementation
819 # needed on iOS (mostly for unit tests).
820 ['exclude', '^process/.*'],
821 ['include', '^process/.*_ios\.(cc|mm)$'],
822 ['include', '^process/memory_stubs\.cc$'],
823 ['include', '^process/process_handle_posix\.cc$'],
826 'process/memory_stubs.cc',
829 'message_loop/message_pump_libevent.cc'
832 ['OS == "ios" and _toolset == "host"', {
834 # Copied filename_rules to switch from iOS to Mac inclusions.
835 ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
836 ['include', '(^|/)(cocoa|mac)/'],
837 ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
838 ['exclude', '(^|/)ios/'],
841 ['OS != "mac" or >(nacl_untrusted_build)==1', {
843 'mac/scoped_aedesc.h'
846 # For now, just test the *BSD platforms enough to exclude them.
847 # Subsequent changes will include them further.
848 ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
849 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
852 ['OS != "openbsd" or >(nacl_untrusted_build)==1', {
853 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
856 ['OS != "win" or >(nacl_untrusted_build)==1', {
857 'sources/': [ ['exclude', '^win/'] ],
860 ['<(native_discardable_memory)==1', {
862 'memory/discardable_memory_emulated.cc',
863 'memory/discardable_memory_provider.cc',
864 'memory/discardable_memory_provider.h',
868 ['OS != "android" or >(nacl_untrusted_build)==1', {
869 'sources/': [ ['exclude', '^android/'] ],
872 ['OS == "win" and >(nacl_untrusted_build)==0', {
874 '<(DEPTH)/third_party/wtl/include',
877 'event_recorder_stubs.cc',
878 'files/file_path_watcher_kqueue.cc',
879 'files/file_path_watcher_stub.cc',
880 'message_loop/message_pump_libevent.cc',
881 'posix/file_descriptor_shuffle.cc',
882 # Not using sha1_win.cc because it may have caused a
883 # regression to page cycler moz.
885 'strings/string16.cc',
888 ['<(use_ozone) == 1', {
890 'message_loop/message_pump_glib.cc',
891 'message_loop/message_pump_x11.cc',
894 ['OS == "linux" and >(nacl_untrusted_build)==0', {
896 'files/file_path_watcher_kqueue.cc',
897 'files/file_path_watcher_stub.cc',
900 ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', {
902 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
903 ['exclude', '^base_paths_posix\\.cc$'],
904 ['exclude', '^native_library_posix\\.cc$'],
905 ['exclude', '^strings/sys_string_conversions_posix\\.cc$'],
908 ['<(os_bsd)==1 and >(nacl_untrusted_build)==0', {
910 'process/memory_stubs.cc',
913 ['exclude', '^files/file_path_watcher_linux\\.cc$'],
914 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
915 ['exclude', '^file_util_linux\\.cc$'],
916 ['exclude', '^process/process_linux\\.cc$'],
917 ['exclude', '^sys_info_linux\\.cc$'],
920 ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', {
922 ['exclude', '^chromeos/'],
925 # Remove all unnecessary files for build_nexe.py to avoid exceeding
926 # command-line-string limitation when building NaCl on Windows.
927 ['OS == "win" and >(nacl_untrusted_build)==1', {
928 'sources/': [ ['exclude', '\\.h$'] ],
930 ['<(use_system_nspr)==1 and >(nacl_untrusted_build)==0', {
932 ['exclude', '^third_party/nspr/'],
935 ['<(toolkit_uses_gtk) == 1', {
937 'x11/x11_error_tracker.cc',