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',
111 'callback_registry.h',
112 'cancelable_callback.h',
113 'chromeos/chromeos_version.cc',
114 'chromeos/chromeos_version.h',
117 'compiler_specific.h',
118 'containers/hash_tables.h',
119 'containers/linked_list.h',
120 'containers/mru_cache.h',
121 'containers/scoped_ptr_hash_map.h',
122 'containers/small_map.h',
123 'containers/stack_container.h',
126 'critical_closure.h',
127 'critical_closure_ios.mm',
130 'debug/crash_logging.cc',
131 'debug/crash_logging.h',
132 'debug/debug_on_start_win.cc',
133 'debug/debug_on_start_win.h',
136 'debug/debugger_posix.cc',
137 'debug/debugger_win.cc',
138 # This file depends on files from the 'allocator' target,
139 # but this target does not depend on 'allocator' (see
140 # allocator.gyp for details).
141 'debug/leak_annotations.h',
142 'debug/leak_tracker.h',
143 'debug/proc_maps_linux.cc',
144 'debug/proc_maps_linux.h',
147 'debug/stack_trace.cc',
148 'debug/stack_trace.h',
149 'debug/stack_trace_android.cc',
150 'debug/stack_trace_ios.mm',
151 'debug/stack_trace_posix.cc',
152 'debug/stack_trace_win.cc',
153 'debug/trace_event.h',
154 'debug/trace_event_android.cc',
155 'debug/trace_event_impl.cc',
156 'debug/trace_event_impl.h',
157 'debug/trace_event_impl_constants.cc',
158 'debug/trace_event_memory.cc',
159 'debug/trace_event_memory.h',
160 'debug/trace_event_win.cc',
161 'deferred_sequenced_task_runner.cc',
162 'deferred_sequenced_task_runner.h',
165 'file_descriptor_posix.h',
168 'file_util_android.cc',
169 'file_util_linux.cc',
171 'file_util_posix.cc',
173 'file_version_info.h',
174 'file_version_info_mac.h',
175 'file_version_info_mac.mm',
176 'file_version_info_win.cc',
177 'file_version_info_win.h',
178 'files/dir_reader_fallback.h',
179 'files/dir_reader_linux.h',
180 'files/dir_reader_posix.h',
181 'files/file_enumerator.cc',
182 'files/file_enumerator.h',
183 'files/file_enumerator_posix.cc',
184 'files/file_enumerator_win.cc',
185 'files/file_path.cc',
187 'files/file_path_constants.cc',
188 'files/file_path_watcher.cc',
189 'files/file_path_watcher.h',
190 'files/file_path_watcher_kqueue.cc',
191 'files/file_path_watcher_linux.cc',
192 'files/file_path_watcher_stub.cc',
193 'files/file_path_watcher_win.cc',
194 'files/file_util_proxy.cc',
195 'files/file_util_proxy.h',
196 'files/important_file_writer.h',
197 'files/important_file_writer.cc',
198 'files/memory_mapped_file.cc',
199 'files/memory_mapped_file.h',
200 'files/memory_mapped_file_posix.cc',
201 'files/memory_mapped_file_win.cc',
202 'files/scoped_platform_file_closer.cc',
203 'files/scoped_platform_file_closer.h',
204 'files/scoped_temp_dir.cc',
205 'files/scoped_temp_dir.h',
219 'ios/device_util.mm',
222 'ios/scoped_critical_action.h',
223 'ios/scoped_critical_action.mm',
224 'json/json_file_value_serializer.cc',
225 'json/json_file_value_serializer.h',
226 'json/json_parser.cc',
227 'json/json_parser.h',
228 'json/json_reader.cc',
229 'json/json_reader.h',
230 'json/json_string_value_serializer.cc',
231 'json/json_string_value_serializer.h',
232 'json/json_value_converter.h',
233 'json/json_writer.cc',
234 'json/json_writer.h',
235 'json/string_escape.cc',
236 'json/string_escape.h',
245 'mac/authorization_util.h',
246 'mac/authorization_util.mm',
247 'mac/bind_objc_block.h',
248 'mac/bundle_locations.h',
249 'mac/bundle_locations.mm',
250 'mac/close_nocancel.cc',
251 'mac/cocoa_protocols.h',
252 'mac/foundation_util.h',
253 'mac/foundation_util.mm',
254 'mac/launch_services_util.cc',
255 'mac/launch_services_util.h',
258 'mac/libdispatch_task_runner.cc',
259 'mac/libdispatch_task_runner.h',
261 'mac/mac_logging.cc',
264 'mac/objc_property_releaser.h',
265 'mac/objc_property_releaser.mm',
266 'mac/os_crash_dumps.cc',
267 'mac/os_crash_dumps.h',
268 'mac/scoped_aedesc.h',
269 'mac/scoped_authorizationref.h',
270 'mac/scoped_block.h',
271 'mac/scoped_cftyperef.h',
272 'mac/scoped_ioobject.h',
273 'mac/scoped_ioplugininterface.h',
274 'mac/scoped_launch_data.h',
275 'mac/scoped_mach_port.cc',
276 'mac/scoped_mach_port.h',
277 'mac/scoped_nsautorelease_pool.h',
278 'mac/scoped_nsautorelease_pool.mm',
279 'mac/scoped_nsexception_enabler.h',
280 'mac/scoped_nsexception_enabler.mm',
281 'mac/scoped_nsobject.h',
282 'mac/scoped_sending_event.h',
283 'mac/scoped_sending_event.mm',
284 'mac/sdk_forward_declarations.h',
285 'memory/aligned_memory.cc',
286 'memory/aligned_memory.h',
287 'memory/discardable_memory.cc',
288 'memory/discardable_memory.h',
289 'memory/discardable_memory_android.cc',
290 'memory/discardable_memory_mac.cc',
291 'memory/linked_ptr.h',
292 'memory/manual_constructor.h',
293 'memory/memory_pressure_listener.cc',
294 'memory/memory_pressure_listener.h',
295 'memory/raw_scoped_refptr_mismatch_checker.h',
296 'memory/ref_counted.cc',
297 'memory/ref_counted.h',
298 'memory/ref_counted_delete_on_message_loop.h',
299 'memory/ref_counted_memory.cc',
300 'memory/ref_counted_memory.h',
301 'memory/scoped_handle.h',
302 'memory/scoped_open_process.h',
303 'memory/scoped_policy.h',
304 'memory/scoped_ptr.h',
305 'memory/scoped_vector.h',
306 'memory/shared_memory.h',
307 'memory/shared_memory_android.cc',
308 'memory/shared_memory_nacl.cc',
309 'memory/shared_memory_posix.cc',
310 'memory/shared_memory_win.cc',
311 'memory/singleton.cc',
312 'memory/singleton.h',
313 'memory/weak_ptr.cc',
315 'message_loop/incoming_task_queue.cc',
316 'message_loop/incoming_task_queue.h',
317 'message_loop/message_loop.cc',
318 'message_loop/message_loop.h',
319 'message_loop/message_loop_proxy.cc',
320 'message_loop/message_loop_proxy.h',
321 'message_loop/message_loop_proxy_impl.cc',
322 'message_loop/message_loop_proxy_impl.h',
323 'message_loop/message_pump.cc',
324 'message_loop/message_pump.h',
325 'message_loop/message_pump_android.cc',
326 'message_loop/message_pump_android.h',
327 'message_loop/message_pump_default.cc',
328 'message_loop/message_pump_default.h',
329 'message_loop/message_pump_ozone.cc',
330 'message_loop/message_pump_ozone.h',
331 'message_loop/message_pump_win.cc',
332 'message_loop/message_pump_win.h',
333 'metrics/sample_map.cc',
334 'metrics/sample_map.h',
335 'metrics/sample_vector.cc',
336 'metrics/sample_vector.h',
337 'metrics/bucket_ranges.cc',
338 'metrics/bucket_ranges.h',
339 'metrics/histogram.cc',
340 'metrics/histogram.h',
341 'metrics/histogram_base.cc',
342 'metrics/histogram_base.h',
343 'metrics/histogram_flattener.h',
344 'metrics/histogram_samples.cc',
345 'metrics/histogram_samples.h',
346 'metrics/histogram_snapshot_manager.cc',
347 'metrics/histogram_snapshot_manager.h',
348 'metrics/sparse_histogram.cc',
349 'metrics/sparse_histogram.h',
350 'metrics/statistics_recorder.cc',
351 'metrics/statistics_recorder.h',
352 'metrics/stats_counters.cc',
353 'metrics/stats_counters.h',
354 'metrics/stats_table.cc',
355 'metrics/stats_table.h',
358 'native_library_mac.mm',
359 'native_library_posix.cc',
360 'native_library_win.cc',
361 'nix/mime_util_xdg.cc',
362 'nix/mime_util_xdg.h',
366 'observer_list_threadsafe.h',
367 'os_compat_android.cc',
368 'os_compat_android.h',
379 'platform_file_posix.cc',
380 'platform_file_win.cc',
382 'posix/eintr_wrapper.h',
383 'posix/global_descriptors.cc',
384 'posix/global_descriptors.h',
385 'posix/unix_domain_socket_linux.cc',
386 'posix/unix_domain_socket_linux.h',
387 'power_monitor/power_monitor.cc',
388 'power_monitor/power_monitor.h',
389 'power_monitor/power_monitor_device_source_android.cc',
390 'power_monitor/power_monitor_device_source_android.h',
391 'power_monitor/power_monitor_device_source.cc',
392 'power_monitor/power_monitor_device_source.h',
393 'power_monitor/power_monitor_device_source_ios.mm',
394 'power_monitor/power_monitor_device_source_mac.mm',
395 'power_monitor/power_monitor_device_source_posix.cc',
396 'power_monitor/power_monitor_device_source_win.cc',
397 'power_monitor/power_monitor_source.cc',
398 'power_monitor/power_monitor_source.h',
399 'power_monitor/power_observer.h',
400 'process/internal_linux.cc',
401 'process/internal_linux.h',
404 'process/kill_mac.cc',
405 'process/kill_posix.cc',
406 'process/kill_win.cc',
409 'process/launch_ios.cc',
410 'process/launch_mac.cc',
411 'process/launch_posix.cc',
412 'process/launch_win.cc',
414 'process/memory_linux.cc',
415 'process/memory_mac.mm',
416 'process/memory_win.cc',
418 'process/process_handle_freebsd.cc',
419 'process/process_handle_linux.cc',
420 'process/process_handle_mac.cc',
421 'process/process_handle_openbsd.cc',
422 'process/process_handle_posix.cc',
423 'process/process_handle_win.cc',
424 'process/process_info.h',
425 'process/process_info_linux.cc',
426 'process/process_info_mac.cc',
427 'process/process_info_win.cc',
428 'process/process_iterator.cc',
429 'process/process_iterator.h',
430 'process/process_iterator_freebsd.cc',
431 'process/process_iterator_linux.cc',
432 'process/process_iterator_mac.cc',
433 'process/process_iterator_openbsd.cc',
434 'process/process_iterator_win.cc',
435 'process/process_linux.cc',
436 'process/process_metrics.h',
437 'process/process_metrics.cc',
438 'process/process_metrics_freebsd.cc',
439 'process/process_metrics_ios.cc',
440 'process/process_metrics_linux.cc',
441 'process/process_metrics_mac.cc',
442 'process/process_metrics_openbsd.cc',
443 'process/process_metrics_posix.cc',
444 'process/process_metrics_win.cc',
445 'process/process_posix.cc',
446 'process/process_win.cc',
447 'profiler/scoped_profile.cc',
448 'profiler/scoped_profile.h',
449 'profiler/alternate_timer.cc',
450 'profiler/alternate_timer.h',
451 'profiler/tracked_time.cc',
452 'profiler/tracked_time.h',
456 'rand_util_posix.cc',
461 'safe_strerror_posix.cc',
462 'safe_strerror_posix.h',
463 'scoped_native_library.cc',
464 'scoped_native_library.h',
465 'sequence_checker.h',
466 'sequence_checker_impl.cc',
467 'sequence_checker_impl.h',
468 'sequenced_task_runner.cc',
469 'sequenced_task_runner.h',
470 'sequenced_task_runner_helpers.h',
474 'single_thread_task_runner.h',
476 'strings/latin1_string_conversions.cc',
477 'strings/latin1_string_conversions.h',
478 'strings/nullable_string16.cc',
479 'strings/nullable_string16.h',
480 'strings/safe_sprintf.cc',
481 'strings/safe_sprintf.h',
482 'strings/string16.cc',
483 'strings/string16.h',
484 'strings/string_number_conversions.cc',
485 'strings/string_split.cc',
486 'strings/string_split.h',
487 'strings/string_number_conversions.h',
488 'strings/string_piece.cc',
489 'strings/string_piece.h',
490 'strings/string_tokenizer.h',
491 'strings/string_util.cc',
492 'strings/string_util.h',
493 'strings/string_util_constants.cc',
494 'strings/string_util_posix.h',
495 'strings/string_util_win.h',
496 'strings/stringize_macros.h',
497 'strings/stringprintf.cc',
498 'strings/stringprintf.h',
499 'strings/sys_string_conversions.h',
500 'strings/sys_string_conversions_mac.mm',
501 'strings/sys_string_conversions_posix.cc',
502 'strings/sys_string_conversions_win.cc',
503 'strings/utf_offset_string_conversions.cc',
504 'strings/utf_offset_string_conversions.h',
505 'strings/utf_string_conversion_utils.cc',
506 'strings/utf_string_conversion_utils.h',
507 'strings/utf_string_conversions.cc',
508 'strings/utf_string_conversions.h',
509 'supports_user_data.cc',
510 'supports_user_data.h',
511 'synchronization/cancellation_flag.cc',
512 'synchronization/cancellation_flag.h',
513 'synchronization/condition_variable.h',
514 'synchronization/condition_variable_posix.cc',
515 'synchronization/condition_variable_win.cc',
516 'synchronization/lock.cc',
517 'synchronization/lock.h',
518 'synchronization/lock_impl.h',
519 'synchronization/lock_impl_posix.cc',
520 'synchronization/lock_impl_win.cc',
521 'synchronization/spin_wait.h',
522 'synchronization/waitable_event.h',
523 'synchronization/waitable_event_posix.cc',
524 'synchronization/waitable_event_watcher.h',
525 'synchronization/waitable_event_watcher_posix.cc',
526 'synchronization/waitable_event_watcher_win.cc',
527 'synchronization/waitable_event_win.cc',
528 'system_monitor/system_monitor.cc',
529 'system_monitor/system_monitor.h',
533 'sys_info_android.cc',
534 'sys_info_chromeos.cc',
535 'sys_info_freebsd.cc',
539 'sys_info_openbsd.cc',
544 'task_runner_util.h',
546 'thread_task_runner_handle.cc',
547 'thread_task_runner_handle.h',
548 'threading/non_thread_safe.h',
549 'threading/non_thread_safe_impl.cc',
550 'threading/non_thread_safe_impl.h',
551 'threading/platform_thread.h',
552 'threading/platform_thread_android.cc',
553 'threading/platform_thread_linux.cc',
554 'threading/platform_thread_mac.mm',
555 'threading/platform_thread_posix.cc',
556 'threading/platform_thread_win.cc',
557 'threading/post_task_and_reply_impl.cc',
558 'threading/post_task_and_reply_impl.h',
559 'threading/sequenced_worker_pool.cc',
560 'threading/sequenced_worker_pool.h',
561 'threading/simple_thread.cc',
562 'threading/simple_thread.h',
563 'threading/thread.cc',
564 'threading/thread.h',
565 'threading/thread_checker.h',
566 'threading/thread_checker_impl.cc',
567 'threading/thread_checker_impl.h',
568 'threading/thread_collision_warner.cc',
569 'threading/thread_collision_warner.h',
570 'threading/thread_id_name_manager.cc',
571 'threading/thread_id_name_manager.h',
572 'threading/thread_local.h',
573 'threading/thread_local_posix.cc',
574 'threading/thread_local_storage.h',
575 'threading/thread_local_storage_posix.cc',
576 'threading/thread_local_storage_win.cc',
577 'threading/thread_local_win.cc',
578 'threading/thread_restrictions.h',
579 'threading/thread_restrictions.cc',
580 'threading/watchdog.cc',
581 'threading/watchdog.h',
582 'threading/worker_pool.h',
583 'threading/worker_pool.cc',
584 'threading/worker_pool_posix.cc',
585 'threading/worker_pool_posix.h',
586 'threading/worker_pool_win.cc',
589 'time/default_clock.cc',
590 'time/default_clock.h',
591 'time/default_tick_clock.cc',
592 'time/default_tick_clock.h',
593 'time/tick_clock.cc',
598 'time/time_posix.cc',
600 'timer/hi_res_timer_manager_posix.cc',
601 'timer/hi_res_timer_manager_win.cc',
602 'timer/hi_res_timer_manager.h',
605 'tracked_objects.cc',
612 'value_conversions.cc',
613 'value_conversions.h',
618 'win/enum_variant.cc',
619 'win/enum_variant.h',
620 'win/event_trace_consumer.h',
621 'win/event_trace_controller.cc',
622 'win/event_trace_controller.h',
623 'win/event_trace_provider.cc',
624 'win/event_trace_provider.h',
627 'win/iat_patch_function.cc',
628 'win/iat_patch_function.h',
629 'win/iunknown_impl.cc',
630 'win/iunknown_impl.h',
631 'win/message_window.cc',
632 'win/message_window.h',
635 'win/object_watcher.cc',
636 'win/object_watcher.h',
639 'win/resource_util.cc',
640 'win/resource_util.h',
641 'win/scoped_bstr.cc',
643 'win/scoped_co_mem.h',
644 'win/scoped_com_initializer.h',
645 'win/scoped_comptr.h',
646 'win/scoped_gdi_object.h',
647 'win/scoped_handle.cc',
648 'win/scoped_handle.h',
650 'win/scoped_hglobal.h',
651 'win/scoped_process_information.cc',
652 'win/scoped_process_information.h',
653 'win/scoped_propvariant.h',
654 'win/scoped_select_object.h',
655 'win/scoped_variant.cc',
656 'win/scoped_variant.h',
659 'win/startup_information.cc',
660 'win/startup_information.h',
661 'win/text_services_message_filter.cc',
662 'win/text_services_message_filter.h',
665 'win/windows_version.cc',
666 'win/windows_version.h',
667 'win/wrapped_window_proc.cc',
668 'win/wrapped_window_proc.h',
673 'android/context_types.cc',
674 'android/context_types.h',
679 'BASE_IMPLEMENTATION',
684 'msvs_disabled_warnings': [
687 'target_conditions': [
688 ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
690 ['exclude', '^nix/'],
693 'atomicops_internals_x86_gcc.cc',
694 'message_loop/message_pump_glib.cc',
695 'message_loop/message_pump_x11.cc',
698 ['<(toolkit_uses_gtk)==0 or >(nacl_untrusted_build)==1', {
699 'sources!': ['message_loop/message_pump_gtk.cc'],
701 ['(OS != "linux" and <(os_bsd) != 1 and OS != "android") or >(nacl_untrusted_build)==1', {
703 # Not automatically excluded by the *linux.cc rules.
708 ['>(nacl_untrusted_build)==1', {
710 'allocator/type_profiler_control.cc',
711 'allocator/type_profiler_control.h',
714 'debug/stack_trace_posix.cc',
716 'file_util_posix.cc',
717 'files/file_enumerator_posix.cc',
718 'files/file_path_watcher_kqueue.cc',
719 'files/file_util_proxy.cc',
720 'memory/shared_memory_posix.cc',
721 'native_library_posix.cc',
723 'posix/unix_domain_socket_linux.cc',
724 'process/kill_posix.cc',
725 'process/launch_posix.cc',
726 'process/process_metrics_posix.cc',
727 'process/process_posix.cc',
728 'rand_util_posix.cc',
729 'scoped_native_library.cc',
730 'files/scoped_temp_dir.cc',
732 'third_party/dynamic_annotations/dynamic_annotations.c',
735 # Metrics won't work in the NaCl sandbox.
736 ['exclude', '^metrics/'],
737 ['include', '^threading/platform_thread_linux\\.cc$'],
740 ['OS == "android" and >(nacl_untrusted_build)==0', {
742 'base_paths_posix.cc',
743 'files/file_path_watcher_kqueue.cc',
744 'files/file_path_watcher_stub.cc',
745 'power_monitor/power_monitor_device_source_posix.cc',
748 ['include', '^debug/proc_maps_linux\\.cc$'],
749 ['include', '^files/file_path_watcher_linux\\.cc$'],
750 ['include', '^process/memory_linux\\.cc$'],
751 ['include', '^process/internal_linux\\.cc$'],
752 ['include', '^process/process_handle_linux\\.cc$'],
753 ['include', '^process/process_iterator\\.cc$'],
754 ['include', '^process/process_iterator_linux\\.cc$'],
755 ['include', '^process/process_metrics_linux\\.cc$'],
756 ['include', '^posix/unix_domain_socket_linux\\.cc$'],
757 ['include', '^strings/sys_string_conversions_posix\\.cc$'],
758 ['include', '^sys_info_linux\\.cc$'],
759 ['include', '^worker_pool_linux\\.cc$'],
762 ['OS == "android" and _toolset == "host" and host_os == "linux"', {
764 # Pull in specific files for host builds.
765 ['include', '^threading/platform_thread_linux\\.cc$'],
768 ['OS == "android" and <(android_webview_build)==1', {
770 # WebView builds as part of the system which already has sincos;
771 # avoid defining it again as it causes a linker warning.
772 'ANDROID_SINCOS_PROVIDED',
775 ['OS == "ios" and _toolset != "host"', {
777 # Pull in specific Mac files for iOS (which have been filtered out
778 # by file name rules).
779 ['include', '^atomicops_internals_mac\\.'],
780 ['include', '^base_paths_mac\\.'],
781 ['include', '^file_util_mac\\.'],
782 ['include', '^file_version_info_mac\\.'],
783 ['include', '^mac/bundle_locations\\.'],
784 ['include', '^mac/foundation_util\\.'],
785 ['include', '^mac/mac_logging\\.'],
786 ['include', '^mac/objc_property_releaser\\.'],
787 ['include', '^mac/scoped_mach_port\\.'],
788 ['include', '^mac/scoped_nsautorelease_pool\\.'],
789 ['include', '^mac/scoped_nsobject\\.'],
790 ['include', '^memory/discardable_memory_mac\\.'],
791 ['include', '^message_loop/message_pump_mac\\.'],
792 ['include', '^strings/sys_string_conversions_mac\\.'],
793 ['include', '^threading/platform_thread_mac\\.'],
794 ['include', '^time/time_mac\\.'],
795 ['include', '^worker_pool_mac\\.'],
796 # Exclude all process/ except the minimal implementation
797 # needed on iOS (mostly for unit tests).
798 ['exclude', '^process/.*'],
799 ['include', '^process/.*_ios\.(cc|mm)$'],
800 ['include', '^process/memory_stubs\.cc$'],
801 ['include', '^process/process_handle_posix\.cc$'],
804 'process/memory_stubs.cc',
807 'message_loop/message_pump_libevent.cc'
810 ['OS == "ios" and _toolset == "host"', {
812 # Copied filename_rules to switch from iOS to Mac inclusions.
813 ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
814 ['include', '(^|/)(cocoa|mac)/'],
815 ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
816 ['exclude', '(^|/)ios/'],
819 ['OS != "mac" or >(nacl_untrusted_build)==1', {
821 'mac/scoped_aedesc.h'
824 # For now, just test the *BSD platforms enough to exclude them.
825 # Subsequent changes will include them further.
826 ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
827 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
830 ['OS != "openbsd" or >(nacl_untrusted_build)==1', {
831 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
834 ['OS != "win" or >(nacl_untrusted_build)==1', {
835 'sources/': [ ['exclude', '^win/'] ],
838 ['OS != "android" or >(nacl_untrusted_build)==1', {
839 'sources/': [ ['exclude', '^android/'] ],
842 ['OS == "win" and >(nacl_untrusted_build)==0', {
844 '<(DEPTH)/third_party/wtl/include',
847 'event_recorder_stubs.cc',
848 'files/file_path_watcher_kqueue.cc',
849 'files/file_path_watcher_stub.cc',
850 'message_loop/message_pump_libevent.cc',
851 'posix/file_descriptor_shuffle.cc',
852 # Not using sha1_win.cc because it may have caused a
853 # regression to page cycler moz.
855 'strings/string16.cc',
858 ['<(use_ozone) == 1', {
860 'message_loop/message_pump_glib.cc',
861 'message_loop/message_pump_x11.cc',
864 ['OS == "linux" and >(nacl_untrusted_build)==0', {
866 'files/file_path_watcher_kqueue.cc',
867 'files/file_path_watcher_stub.cc',
870 ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', {
872 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
873 ['exclude', '^base_paths_posix\\.cc$'],
874 ['exclude', '^native_library_posix\\.cc$'],
875 ['exclude', '^strings/sys_string_conversions_posix\\.cc$'],
878 ['<(os_bsd)==1 and >(nacl_untrusted_build)==0', {
880 'process/memory_stubs.cc',
883 ['exclude', '^files/file_path_watcher_linux\\.cc$'],
884 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
885 ['exclude', '^file_util_linux\\.cc$'],
886 ['exclude', '^process/process_linux\\.cc$'],
887 ['exclude', '^sys_info_linux\\.cc$'],
890 ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', {
892 ['exclude', '^chromeos/'],
895 # Remove all unnecessary files for build_nexe.py to avoid exceeding
896 # command-line-string limitation when building NaCl on Windows.
897 ['OS == "win" and >(nacl_untrusted_build)==1', {
898 'sources/': [ ['exclude', '\\.h$'] ],
900 ['<(use_system_nspr)==1 and >(nacl_untrusted_build)==0', {
902 ['exclude', '^third_party/nspr/'],