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.cc',
287 'memory/discardable_memory.h',
288 'memory/discardable_memory_android.cc',
289 'memory/discardable_memory_mac.cc',
290 'memory/linked_ptr.h',
291 'memory/manual_constructor.h',
292 'memory/memory_pressure_listener.cc',
293 'memory/memory_pressure_listener.h',
294 'memory/raw_scoped_refptr_mismatch_checker.h',
295 'memory/ref_counted.cc',
296 'memory/ref_counted.h',
297 'memory/ref_counted_delete_on_message_loop.h',
298 'memory/ref_counted_memory.cc',
299 'memory/ref_counted_memory.h',
300 'memory/scoped_handle.h',
301 'memory/scoped_open_process.h',
302 'memory/scoped_policy.h',
303 'memory/scoped_ptr.h',
304 'memory/scoped_vector.h',
305 'memory/shared_memory.h',
306 'memory/shared_memory_android.cc',
307 'memory/shared_memory_nacl.cc',
308 'memory/shared_memory_posix.cc',
309 'memory/shared_memory_win.cc',
310 'memory/singleton.cc',
311 'memory/singleton.h',
312 'memory/weak_ptr.cc',
314 'message_loop/incoming_task_queue.cc',
315 'message_loop/incoming_task_queue.h',
316 'message_loop/message_loop.cc',
317 'message_loop/message_loop.h',
318 'message_loop/message_loop_proxy.cc',
319 'message_loop/message_loop_proxy.h',
320 'message_loop/message_loop_proxy_impl.cc',
321 'message_loop/message_loop_proxy_impl.h',
322 'message_loop/message_pump.cc',
323 'message_loop/message_pump.h',
324 'message_loop/message_pump_android.cc',
325 'message_loop/message_pump_android.h',
326 'message_loop/message_pump_default.cc',
327 'message_loop/message_pump_default.h',
328 'message_loop/message_pump_ozone.cc',
329 'message_loop/message_pump_ozone.h',
330 'message_loop/message_pump_win.cc',
331 'message_loop/message_pump_win.h',
332 'metrics/sample_map.cc',
333 'metrics/sample_map.h',
334 'metrics/sample_vector.cc',
335 'metrics/sample_vector.h',
336 'metrics/bucket_ranges.cc',
337 'metrics/bucket_ranges.h',
338 'metrics/histogram.cc',
339 'metrics/histogram.h',
340 'metrics/histogram_base.cc',
341 'metrics/histogram_base.h',
342 'metrics/histogram_delta_serialization.cc',
343 'metrics/histogram_delta_serialization.h',
344 'metrics/histogram_flattener.h',
345 'metrics/histogram_samples.cc',
346 'metrics/histogram_samples.h',
347 'metrics/histogram_snapshot_manager.cc',
348 'metrics/histogram_snapshot_manager.h',
349 'metrics/sparse_histogram.cc',
350 'metrics/sparse_histogram.h',
351 'metrics/statistics_recorder.cc',
352 'metrics/statistics_recorder.h',
353 'metrics/stats_counters.cc',
354 'metrics/stats_counters.h',
355 'metrics/stats_table.cc',
356 'metrics/stats_table.h',
359 'native_library_mac.mm',
360 'native_library_posix.cc',
361 'native_library_win.cc',
362 'nix/mime_util_xdg.cc',
363 'nix/mime_util_xdg.h',
367 'observer_list_threadsafe.h',
368 'os_compat_android.cc',
369 'os_compat_android.h',
380 'platform_file_posix.cc',
381 'platform_file_win.cc',
383 'posix/eintr_wrapper.h',
384 'posix/global_descriptors.cc',
385 'posix/global_descriptors.h',
386 'posix/unix_domain_socket_linux.cc',
387 'posix/unix_domain_socket_linux.h',
388 'power_monitor/power_monitor.cc',
389 'power_monitor/power_monitor.h',
390 'power_monitor/power_monitor_device_source_android.cc',
391 'power_monitor/power_monitor_device_source_android.h',
392 'power_monitor/power_monitor_device_source.cc',
393 'power_monitor/power_monitor_device_source.h',
394 'power_monitor/power_monitor_device_source_ios.mm',
395 'power_monitor/power_monitor_device_source_mac.mm',
396 'power_monitor/power_monitor_device_source_posix.cc',
397 'power_monitor/power_monitor_device_source_win.cc',
398 'power_monitor/power_monitor_source.cc',
399 'power_monitor/power_monitor_source.h',
400 'power_monitor/power_observer.h',
401 'process/internal_linux.cc',
402 'process/internal_linux.h',
405 'process/kill_mac.cc',
406 'process/kill_posix.cc',
407 'process/kill_win.cc',
410 'process/launch_ios.cc',
411 'process/launch_mac.cc',
412 'process/launch_posix.cc',
413 'process/launch_win.cc',
415 'process/memory_linux.cc',
416 'process/memory_mac.mm',
417 'process/memory_win.cc',
419 'process/process_handle_freebsd.cc',
420 'process/process_handle_linux.cc',
421 'process/process_handle_mac.cc',
422 'process/process_handle_openbsd.cc',
423 'process/process_handle_posix.cc',
424 'process/process_handle_win.cc',
425 'process/process_info.h',
426 'process/process_info_linux.cc',
427 'process/process_info_mac.cc',
428 'process/process_info_win.cc',
429 'process/process_iterator.cc',
430 'process/process_iterator.h',
431 'process/process_iterator_freebsd.cc',
432 'process/process_iterator_linux.cc',
433 'process/process_iterator_mac.cc',
434 'process/process_iterator_openbsd.cc',
435 'process/process_iterator_win.cc',
436 'process/process_linux.cc',
437 'process/process_metrics.h',
438 'process/process_metrics.cc',
439 'process/process_metrics_freebsd.cc',
440 'process/process_metrics_ios.cc',
441 'process/process_metrics_linux.cc',
442 'process/process_metrics_mac.cc',
443 'process/process_metrics_openbsd.cc',
444 'process/process_metrics_posix.cc',
445 'process/process_metrics_win.cc',
446 'process/process_posix.cc',
447 'process/process_win.cc',
448 'profiler/scoped_profile.cc',
449 'profiler/scoped_profile.h',
450 'profiler/alternate_timer.cc',
451 'profiler/alternate_timer.h',
452 'profiler/tracked_time.cc',
453 'profiler/tracked_time.h',
457 'rand_util_posix.cc',
462 'safe_strerror_posix.cc',
463 'safe_strerror_posix.h',
464 'scoped_native_library.cc',
465 'scoped_native_library.h',
466 'sequence_checker.h',
467 'sequence_checker_impl.cc',
468 'sequence_checker_impl.h',
469 'sequenced_task_runner.cc',
470 'sequenced_task_runner.h',
471 'sequenced_task_runner_helpers.h',
475 'single_thread_task_runner.h',
477 'strings/latin1_string_conversions.cc',
478 'strings/latin1_string_conversions.h',
479 'strings/nullable_string16.cc',
480 'strings/nullable_string16.h',
481 'strings/safe_sprintf.cc',
482 'strings/safe_sprintf.h',
483 'strings/string16.cc',
484 'strings/string16.h',
485 'strings/string_number_conversions.cc',
486 'strings/string_split.cc',
487 'strings/string_split.h',
488 'strings/string_number_conversions.h',
489 'strings/string_piece.cc',
490 'strings/string_piece.h',
491 'strings/string_tokenizer.h',
492 'strings/string_util.cc',
493 'strings/string_util.h',
494 'strings/string_util_constants.cc',
495 'strings/string_util_posix.h',
496 'strings/string_util_win.h',
497 'strings/stringize_macros.h',
498 'strings/stringprintf.cc',
499 'strings/stringprintf.h',
500 'strings/sys_string_conversions.h',
501 'strings/sys_string_conversions_mac.mm',
502 'strings/sys_string_conversions_posix.cc',
503 'strings/sys_string_conversions_win.cc',
504 'strings/utf_offset_string_conversions.cc',
505 'strings/utf_offset_string_conversions.h',
506 'strings/utf_string_conversion_utils.cc',
507 'strings/utf_string_conversion_utils.h',
508 'strings/utf_string_conversions.cc',
509 'strings/utf_string_conversions.h',
510 'supports_user_data.cc',
511 'supports_user_data.h',
512 'synchronization/cancellation_flag.cc',
513 'synchronization/cancellation_flag.h',
514 'synchronization/condition_variable.h',
515 'synchronization/condition_variable_posix.cc',
516 'synchronization/condition_variable_win.cc',
517 'synchronization/lock.cc',
518 'synchronization/lock.h',
519 'synchronization/lock_impl.h',
520 'synchronization/lock_impl_posix.cc',
521 'synchronization/lock_impl_win.cc',
522 'synchronization/spin_wait.h',
523 'synchronization/waitable_event.h',
524 'synchronization/waitable_event_posix.cc',
525 'synchronization/waitable_event_watcher.h',
526 'synchronization/waitable_event_watcher_posix.cc',
527 'synchronization/waitable_event_watcher_win.cc',
528 'synchronization/waitable_event_win.cc',
529 'system_monitor/system_monitor.cc',
530 'system_monitor/system_monitor.h',
534 'sys_info_android.cc',
535 'sys_info_chromeos.cc',
536 'sys_info_freebsd.cc',
540 'sys_info_openbsd.cc',
545 'task_runner_util.h',
547 'thread_task_runner_handle.cc',
548 'thread_task_runner_handle.h',
549 'threading/non_thread_safe.h',
550 'threading/non_thread_safe_impl.cc',
551 'threading/non_thread_safe_impl.h',
552 'threading/platform_thread.h',
553 'threading/platform_thread_android.cc',
554 'threading/platform_thread_linux.cc',
555 'threading/platform_thread_mac.mm',
556 'threading/platform_thread_posix.cc',
557 'threading/platform_thread_win.cc',
558 'threading/post_task_and_reply_impl.cc',
559 'threading/post_task_and_reply_impl.h',
560 'threading/sequenced_worker_pool.cc',
561 'threading/sequenced_worker_pool.h',
562 'threading/simple_thread.cc',
563 'threading/simple_thread.h',
564 'threading/thread.cc',
565 'threading/thread.h',
566 'threading/thread_checker.h',
567 'threading/thread_checker_impl.cc',
568 'threading/thread_checker_impl.h',
569 'threading/thread_collision_warner.cc',
570 'threading/thread_collision_warner.h',
571 'threading/thread_id_name_manager.cc',
572 'threading/thread_id_name_manager.h',
573 'threading/thread_local.h',
574 'threading/thread_local_posix.cc',
575 'threading/thread_local_storage.h',
576 'threading/thread_local_storage_posix.cc',
577 'threading/thread_local_storage_win.cc',
578 'threading/thread_local_win.cc',
579 'threading/thread_restrictions.h',
580 'threading/thread_restrictions.cc',
581 'threading/watchdog.cc',
582 'threading/watchdog.h',
583 'threading/worker_pool.h',
584 'threading/worker_pool.cc',
585 'threading/worker_pool_posix.cc',
586 'threading/worker_pool_posix.h',
587 'threading/worker_pool_win.cc',
590 'time/default_clock.cc',
591 'time/default_clock.h',
592 'time/default_tick_clock.cc',
593 'time/default_tick_clock.h',
594 'time/tick_clock.cc',
599 'time/time_posix.cc',
601 'timer/elapsed_timer.cc',
602 'timer/elapsed_timer.h',
603 'timer/hi_res_timer_manager.h',
604 'timer/hi_res_timer_manager_posix.cc',
605 'timer/hi_res_timer_manager_win.cc',
608 'tracked_objects.cc',
615 'value_conversions.cc',
616 'value_conversions.h',
621 'win/enum_variant.cc',
622 'win/enum_variant.h',
623 'win/event_trace_consumer.h',
624 'win/event_trace_controller.cc',
625 'win/event_trace_controller.h',
626 'win/event_trace_provider.cc',
627 'win/event_trace_provider.h',
630 'win/iat_patch_function.cc',
631 'win/iat_patch_function.h',
632 'win/iunknown_impl.cc',
633 'win/iunknown_impl.h',
634 'win/message_window.cc',
635 'win/message_window.h',
638 'win/object_watcher.cc',
639 'win/object_watcher.h',
642 'win/resource_util.cc',
643 'win/resource_util.h',
644 'win/scoped_bstr.cc',
646 'win/scoped_co_mem.h',
647 'win/scoped_com_initializer.h',
648 'win/scoped_comptr.h',
649 'win/scoped_gdi_object.h',
650 'win/scoped_handle.cc',
651 'win/scoped_handle.h',
653 'win/scoped_hglobal.h',
654 'win/scoped_process_information.cc',
655 'win/scoped_process_information.h',
656 'win/scoped_propvariant.h',
657 'win/scoped_select_object.h',
658 'win/scoped_variant.cc',
659 'win/scoped_variant.h',
662 'win/startup_information.cc',
663 'win/startup_information.h',
664 'win/text_services_message_filter.cc',
665 'win/text_services_message_filter.h',
668 'win/windows_version.cc',
669 'win/windows_version.h',
670 'win/wrapped_window_proc.cc',
671 'win/wrapped_window_proc.h',
672 'x11/x11_error_tracker.cc',
673 'x11/x11_error_tracker.h',
674 'x11/x11_error_tracker_gtk.cc',
677 ['use_aura==1 and use_x11==1', {
679 'x11/edid_parser_x11.cc',
680 'x11/edid_parser_x11.h',
685 'android/context_types.cc',
686 'android/context_types.h',
691 'BASE_IMPLEMENTATION',
696 'msvs_disabled_warnings': [
699 'target_conditions': [
700 ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
702 ['exclude', '^nix/'],
705 'atomicops_internals_x86_gcc.cc',
706 'message_loop/message_pump_glib.cc',
707 'message_loop/message_pump_x11.cc',
710 ['<(toolkit_uses_gtk)==0 or >(nacl_untrusted_build)==1', {
711 'sources!': ['message_loop/message_pump_gtk.cc'],
713 ['(OS != "linux" and <(os_bsd) != 1 and OS != "android") or >(nacl_untrusted_build)==1', {
715 # Not automatically excluded by the *linux.cc rules.
720 ['>(nacl_untrusted_build)==1', {
722 'allocator/type_profiler_control.cc',
723 'allocator/type_profiler_control.h',
726 'debug/stack_trace_posix.cc',
728 'file_util_posix.cc',
729 'files/file_enumerator_posix.cc',
730 'files/file_path_watcher_kqueue.cc',
731 'files/file_util_proxy.cc',
732 'memory/shared_memory_posix.cc',
733 'native_library_posix.cc',
735 'posix/unix_domain_socket_linux.cc',
736 'process/kill_posix.cc',
737 'process/launch_posix.cc',
738 'process/process_metrics_posix.cc',
739 'process/process_posix.cc',
740 'rand_util_posix.cc',
741 'scoped_native_library.cc',
742 'files/scoped_temp_dir.cc',
744 'third_party/dynamic_annotations/dynamic_annotations.c',
747 # Metrics won't work in the NaCl sandbox.
748 ['exclude', '^metrics/'],
749 ['include', '^threading/platform_thread_linux\\.cc$'],
752 ['OS == "android" and >(nacl_untrusted_build)==0', {
754 'base_paths_posix.cc',
755 'files/file_path_watcher_kqueue.cc',
756 'files/file_path_watcher_stub.cc',
757 'power_monitor/power_monitor_device_source_posix.cc',
760 ['include', '^debug/proc_maps_linux\\.cc$'],
761 ['include', '^files/file_path_watcher_linux\\.cc$'],
762 ['include', '^process/memory_linux\\.cc$'],
763 ['include', '^process/internal_linux\\.cc$'],
764 ['include', '^process/process_handle_linux\\.cc$'],
765 ['include', '^process/process_iterator\\.cc$'],
766 ['include', '^process/process_iterator_linux\\.cc$'],
767 ['include', '^process/process_metrics_linux\\.cc$'],
768 ['include', '^posix/unix_domain_socket_linux\\.cc$'],
769 ['include', '^strings/sys_string_conversions_posix\\.cc$'],
770 ['include', '^sys_info_linux\\.cc$'],
771 ['include', '^worker_pool_linux\\.cc$'],
774 ['OS == "android" and _toolset == "host" and host_os == "linux"', {
776 # Pull in specific files for host builds.
777 ['include', '^threading/platform_thread_linux\\.cc$'],
780 ['OS == "android" and <(android_webview_build)==1', {
782 # WebView builds as part of the system which already has sincos;
783 # avoid defining it again as it causes a linker warning.
784 'ANDROID_SINCOS_PROVIDED',
787 ['OS == "ios" and _toolset != "host"', {
789 # Pull in specific Mac files for iOS (which have been filtered out
790 # by file name rules).
791 ['include', '^atomicops_internals_mac\\.'],
792 ['include', '^base_paths_mac\\.'],
793 ['include', '^file_util_mac\\.'],
794 ['include', '^file_version_info_mac\\.'],
795 ['include', '^mac/bundle_locations\\.'],
796 ['include', '^mac/foundation_util\\.'],
797 ['include', '^mac/mac_logging\\.'],
798 ['include', '^mac/objc_property_releaser\\.'],
799 ['include', '^mac/scoped_mach_port\\.'],
800 ['include', '^mac/scoped_nsautorelease_pool\\.'],
801 ['include', '^mac/scoped_nsobject\\.'],
802 ['include', '^memory/discardable_memory_mac\\.'],
803 ['include', '^message_loop/message_pump_mac\\.'],
804 ['include', '^strings/sys_string_conversions_mac\\.'],
805 ['include', '^threading/platform_thread_mac\\.'],
806 ['include', '^time/time_mac\\.'],
807 ['include', '^worker_pool_mac\\.'],
808 # Exclude all process/ except the minimal implementation
809 # needed on iOS (mostly for unit tests).
810 ['exclude', '^process/.*'],
811 ['include', '^process/.*_ios\.(cc|mm)$'],
812 ['include', '^process/memory_stubs\.cc$'],
813 ['include', '^process/process_handle_posix\.cc$'],
816 'process/memory_stubs.cc',
819 'message_loop/message_pump_libevent.cc'
822 ['OS == "ios" and _toolset == "host"', {
824 # Copied filename_rules to switch from iOS to Mac inclusions.
825 ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
826 ['include', '(^|/)(cocoa|mac)/'],
827 ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
828 ['exclude', '(^|/)ios/'],
831 ['OS != "mac" or >(nacl_untrusted_build)==1', {
833 'mac/scoped_aedesc.h'
836 # For now, just test the *BSD platforms enough to exclude them.
837 # Subsequent changes will include them further.
838 ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
839 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
842 ['OS != "openbsd" or >(nacl_untrusted_build)==1', {
843 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
846 ['OS != "win" or >(nacl_untrusted_build)==1', {
847 'sources/': [ ['exclude', '^win/'] ],
850 ['OS != "android" or >(nacl_untrusted_build)==1', {
851 'sources/': [ ['exclude', '^android/'] ],
854 ['OS == "win" and >(nacl_untrusted_build)==0', {
856 '<(DEPTH)/third_party/wtl/include',
859 'event_recorder_stubs.cc',
860 'files/file_path_watcher_kqueue.cc',
861 'files/file_path_watcher_stub.cc',
862 'message_loop/message_pump_libevent.cc',
863 'posix/file_descriptor_shuffle.cc',
864 # Not using sha1_win.cc because it may have caused a
865 # regression to page cycler moz.
867 'strings/string16.cc',
870 ['<(use_ozone) == 1', {
872 'message_loop/message_pump_glib.cc',
873 'message_loop/message_pump_x11.cc',
876 ['OS == "linux" and >(nacl_untrusted_build)==0', {
878 'files/file_path_watcher_kqueue.cc',
879 'files/file_path_watcher_stub.cc',
882 ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', {
884 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
885 ['exclude', '^base_paths_posix\\.cc$'],
886 ['exclude', '^native_library_posix\\.cc$'],
887 ['exclude', '^strings/sys_string_conversions_posix\\.cc$'],
890 ['<(os_bsd)==1 and >(nacl_untrusted_build)==0', {
892 'process/memory_stubs.cc',
895 ['exclude', '^files/file_path_watcher_linux\\.cc$'],
896 ['exclude', '^files/file_path_watcher_stub\\.cc$'],
897 ['exclude', '^file_util_linux\\.cc$'],
898 ['exclude', '^process/process_linux\\.cc$'],
899 ['exclude', '^sys_info_linux\\.cc$'],
902 ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', {
904 ['exclude', '^chromeos/'],
907 # Remove all unnecessary files for build_nexe.py to avoid exceeding
908 # command-line-string limitation when building NaCl on Windows.
909 ['OS == "win" and >(nacl_untrusted_build)==1', {
910 'sources/': [ ['exclude', '\\.h$'] ],
912 ['<(use_system_nspr)==1 and >(nacl_untrusted_build)==0', {
914 ['exclude', '^third_party/nspr/'],
917 ['<(toolkit_uses_gtk) == 1', {
919 'x11/x11_error_tracker.cc',