1 # Copyright (c) 2013 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.
5 import("//build/config/ui.gni")
8 import("//build/config/android/rules.gni")
13 "third_party/dmg_fp/dmg_fp.h",
14 "third_party/dmg_fp/g_fmt.cc",
15 "third_party/dmg_fp/dtoa_wrapper.cc",
16 "third_party/icu/icu_utf.cc",
17 "third_party/icu/icu_utf.h",
18 "third_party/superfasthash/superfasthash.c",
19 "allocator/allocator_extension.cc",
20 "allocator/allocator_extension.h",
21 "allocator/type_profiler_control.cc",
22 "allocator/type_profiler_control.h",
23 "android/application_status_listener.cc",
24 "android/application_status_listener.h",
25 "android/base_jni_registrar.cc",
26 "android/base_jni_registrar.h",
27 "android/build_info.cc",
28 "android/build_info.h",
29 "android/command_line_android.cc",
30 "android/command_line_android.h",
31 "android/content_uri_utils.cc",
32 "android/content_uri_utils.h",
33 "android/cpu_features.cc",
34 "android/event_log.cc",
35 "android/event_log.h",
36 "android/field_trial_list.cc",
37 "android/field_trial_list.h",
38 "android/fifo_utils.cc",
39 "android/fifo_utils.h",
40 "android/important_file_writer_android.cc",
41 "android/important_file_writer_android.h",
42 "android/scoped_java_ref.cc",
43 "android/scoped_java_ref.h",
44 "android/jni_android.cc",
45 "android/jni_android.h",
46 "android/jni_array.cc",
47 "android/jni_array.h",
48 "android/jni_registrar.cc",
49 "android/jni_registrar.h",
50 "android/jni_string.cc",
51 "android/jni_string.h",
52 "android/jni_weak_ref.cc",
53 "android/jni_weak_ref.h",
54 "android/library_loader/library_loader_hooks.cc",
55 "android/library_loader/library_loader_hooks.h",
56 "android/memory_pressure_listener_android.cc",
57 "android/memory_pressure_listener_android.h",
58 "android/java_handler_thread.cc",
59 "android/java_handler_thread.h",
60 "android/path_service_android.cc",
61 "android/path_service_android.h",
62 "android/path_utils.cc",
63 "android/path_utils.h",
64 "android/sys_utils.cc",
65 "android/sys_utils.h",
66 "android/thread_utils.h",
67 "android/trace_event_binding.cc",
68 "android/trace_event_binding.h",
69 "async_socket_io_handler.h",
70 "async_socket_io_handler_posix.cc",
71 "async_socket_io_handler_win.cc",
75 "atomic_sequence_num.h",
77 "atomicops_internals_gcc.h",
78 "atomicops_internals_mac.h",
79 "atomicops_internals_tsan.h",
80 "atomicops_internals_x86_gcc.cc",
81 "atomicops_internals_x86_gcc.h",
82 "atomicops_internals_x86_msvc.h",
89 "base_paths_android.cc",
90 "base_paths_android.h",
93 "base_paths_posix.cc",
107 "bind_internal_win.h",
112 "callback_helpers.cc",
113 "callback_helpers.h",
114 "callback_internal.cc",
115 "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/small_map.h",
124 "containers/stack_container.h",
127 "critical_closure.h",
128 "critical_closure_internal_ios.mm",
131 "debug/crash_logging.cc",
132 "debug/crash_logging.h",
135 "debug/debugger_posix.cc",
136 "debug/debugger_win.cc",
137 "debug/dump_without_crashing.cc",
138 "debug/dump_without_crashing.h",
139 "debug/gdi_debug_util_win.cc",
140 "debug/gdi_debug_util_win.h",
141 # This file depends on files from the "allocator" target,
142 # but this target does not depend on "allocator" (see
143 # allocator.gyp for details).
144 "debug/leak_annotations.h",
145 "debug/leak_tracker.h",
146 "debug/proc_maps_linux.cc",
147 "debug/proc_maps_linux.h",
150 "debug/stack_trace.cc",
151 "debug/stack_trace.h",
152 "debug/stack_trace_android.cc",
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_argument.cc",
158 "debug/trace_event_argument.h",
159 "debug/trace_event_impl.cc",
160 "debug/trace_event_impl.h",
161 "debug/trace_event_impl_constants.cc",
162 "debug/trace_event_memory.cc",
163 "debug/trace_event_memory.h",
164 "debug/trace_event_synthetic_delay.cc",
165 "debug/trace_event_synthetic_delay.h",
166 "debug/trace_event_system_stats_monitor.cc",
167 "debug/trace_event_system_stats_monitor.h",
168 "debug/trace_event_win.cc",
169 "deferred_sequenced_task_runner.cc",
170 "deferred_sequenced_task_runner.h",
174 "event_recorder_stubs.cc",
175 "event_recorder_win.cc",
176 "file_descriptor_posix.h",
179 "file_util_android.cc",
180 "file_util_linux.cc",
182 "file_util_posix.cc",
184 "file_version_info.h",
185 "file_version_info_mac.h",
186 "file_version_info_mac.mm",
187 "file_version_info_win.cc",
188 "file_version_info_win.h",
189 "files/dir_reader_fallback.h",
190 "files/dir_reader_linux.h",
191 "files/dir_reader_posix.h",
193 "files/file_posix.cc",
195 "files/file_enumerator.cc",
196 "files/file_enumerator.h",
197 "files/file_enumerator_posix.cc",
198 "files/file_enumerator_win.cc",
199 "files/file_path.cc",
201 "files/file_path_constants.cc",
202 "files/file_path_watcher.cc",
203 "files/file_path_watcher.h",
204 "files/file_path_watcher_fsevents.cc",
205 "files/file_path_watcher_fsevents.h",
206 "files/file_path_watcher_kqueue.cc",
207 "files/file_path_watcher_kqueue.h",
208 "files/file_path_watcher_linux.cc",
209 "files/file_path_watcher_mac.cc",
210 "files/file_path_watcher_win.cc",
211 "files/file_proxy.cc",
212 "files/file_proxy.h",
213 "files/file_util_proxy.cc",
214 "files/file_util_proxy.h",
215 "files/important_file_writer.cc",
216 "files/important_file_writer.h",
217 "files/memory_mapped_file.cc",
218 "files/memory_mapped_file.h",
219 "files/memory_mapped_file_posix.cc",
220 "files/memory_mapped_file_win.cc",
221 "files/scoped_file.cc",
222 "files/scoped_file.h",
223 "files/scoped_temp_dir.cc",
224 "files/scoped_temp_dir.h",
238 "ios/device_util.mm",
241 "ios/scoped_critical_action.h",
242 "ios/scoped_critical_action.mm",
243 "json/json_file_value_serializer.cc",
244 "json/json_file_value_serializer.h",
245 "json/json_parser.cc",
246 "json/json_parser.h",
247 "json/json_reader.cc",
248 "json/json_reader.h",
249 "json/json_string_value_serializer.cc",
250 "json/json_string_value_serializer.h",
251 "json/json_value_converter.h",
252 "json/json_writer.cc",
253 "json/json_writer.h",
254 "json/string_escape.cc",
255 "json/string_escape.h",
266 "mac/authorization_util.h",
267 "mac/authorization_util.mm",
268 "mac/bind_objc_block.h",
269 "mac/bundle_locations.h",
270 "mac/bundle_locations.mm",
271 "mac/cocoa_protocols.h",
272 "mac/foundation_util.h",
273 "mac/foundation_util.mm",
274 "mac/launch_services_util.cc",
275 "mac/launch_services_util.h",
278 "mac/libdispatch_task_runner.cc",
279 "mac/libdispatch_task_runner.h",
281 "mac/mac_logging.cc",
284 "mac/mach_logging.cc",
285 "mac/mach_logging.h",
286 "mac/objc_property_releaser.h",
287 "mac/objc_property_releaser.mm",
288 "mac/os_crash_dumps.cc",
289 "mac/os_crash_dumps.h",
290 "mac/scoped_aedesc.h",
291 "mac/scoped_authorizationref.h",
292 "mac/scoped_block.h",
293 "mac/scoped_cftyperef.h",
294 "mac/scoped_ioobject.h",
295 "mac/scoped_ioplugininterface.h",
296 "mac/scoped_launch_data.h",
297 "mac/scoped_mach_port.cc",
298 "mac/scoped_mach_port.h",
299 "mac/scoped_mach_vm.cc",
300 "mac/scoped_mach_vm.h",
301 "mac/scoped_nsautorelease_pool.h",
302 "mac/scoped_nsautorelease_pool.mm",
303 "mac/scoped_nsexception_enabler.h",
304 "mac/scoped_nsexception_enabler.mm",
305 "mac/scoped_nsobject.h",
306 "mac/scoped_sending_event.h",
307 "mac/scoped_sending_event.mm",
308 "mac/sdk_forward_declarations.h",
312 "memory/aligned_memory.cc",
313 "memory/aligned_memory.h",
314 "memory/discardable_memory.cc",
315 "memory/discardable_memory.h",
316 "memory/discardable_memory_android.cc",
317 "memory/discardable_memory_emulated.cc",
318 "memory/discardable_memory_emulated.h",
319 "memory/discardable_memory_linux.cc",
320 "memory/discardable_memory_mac.cc",
321 "memory/discardable_memory_malloc.cc",
322 "memory/discardable_memory_malloc.h",
323 "memory/discardable_memory_manager.cc",
324 "memory/discardable_memory_manager.h",
325 "memory/discardable_memory_win.cc",
326 "memory/linked_ptr.h",
327 "memory/manual_constructor.h",
328 "memory/memory_pressure_listener.cc",
329 "memory/memory_pressure_listener.h",
330 "memory/raw_scoped_refptr_mismatch_checker.h",
331 "memory/ref_counted.cc",
332 "memory/ref_counted.h",
333 "memory/ref_counted_delete_on_message_loop.h",
334 "memory/ref_counted_memory.cc",
335 "memory/ref_counted_memory.h",
336 "memory/scoped_open_process.h",
337 "memory/scoped_policy.h",
338 "memory/scoped_ptr.h",
339 "memory/scoped_vector.h",
340 "memory/shared_memory.h",
341 "memory/shared_memory_android.cc",
342 "memory/shared_memory_nacl.cc",
343 "memory/shared_memory_posix.cc",
344 "memory/shared_memory_win.cc",
345 "memory/singleton.cc",
346 "memory/singleton.h",
347 "memory/weak_ptr.cc",
349 "message_loop/incoming_task_queue.cc",
350 "message_loop/incoming_task_queue.h",
351 "message_loop/message_loop.cc",
352 "message_loop/message_loop.h",
353 "message_loop/message_loop_proxy.cc",
354 "message_loop/message_loop_proxy.h",
355 "message_loop/message_loop_proxy_impl.cc",
356 "message_loop/message_loop_proxy_impl.h",
357 "message_loop/message_pump.cc",
358 "message_loop/message_pump.h",
359 "message_loop/message_pump_android.cc",
360 "message_loop/message_pump_android.h",
361 "message_loop/message_pump_default.cc",
362 "message_loop/message_pump_default.h",
363 "message_loop/message_pump_glib.cc",
364 "message_loop/message_pump_glib.h",
365 "message_loop/message_pump_io_ios.cc",
366 "message_loop/message_pump_io_ios.h",
367 "message_loop/message_pump_libevent.cc",
368 "message_loop/message_pump_libevent.h",
369 "message_loop/message_pump_mac.h",
370 "message_loop/message_pump_mac.mm",
371 "message_loop/message_pump_observer.h",
372 "message_loop/message_pump_win.cc",
373 "message_loop/message_pump_win.h",
374 "metrics/field_trial.cc",
375 "metrics/field_trial.h",
376 "metrics/sample_map.cc",
377 "metrics/sample_map.h",
378 "metrics/sample_vector.cc",
379 "metrics/sample_vector.h",
380 "metrics/bucket_ranges.cc",
381 "metrics/bucket_ranges.h",
382 "metrics/histogram.cc",
383 "metrics/histogram.h",
384 "metrics/histogram_base.cc",
385 "metrics/histogram_base.h",
386 "metrics/histogram_delta_serialization.cc",
387 "metrics/histogram_delta_serialization.",
388 "metrics/histogram_flattener.h",
389 "metrics/histogram_samples.cc",
390 "metrics/histogram_samples.h",
391 "metrics/histogram_snapshot_manager.cc",
392 "metrics/histogram_snapshot_manager.h",
393 "metrics/sparse_histogram.cc",
394 "metrics/sparse_histogram.h",
395 "metrics/statistics_recorder.cc",
396 "metrics/statistics_recorder.h",
397 "metrics/stats_counters.cc",
398 "metrics/stats_counters.h",
399 "metrics/stats_table.cc",
400 "metrics/stats_table.h",
401 "metrics/user_metrics.cc",
402 "metrics/user_metrics.h",
403 "metrics/user_metrics_action.h",
406 "native_library_mac.mm",
407 "native_library_posix.cc",
408 "native_library_win.cc",
409 "numerics/safe_conversions.h",
410 "numerics/safe_conversions_impl.h",
411 "numerics/safe_math.h",
412 "numerics/safe_math_impl.h",
413 "nix/mime_util_xdg.cc",
414 "nix/mime_util_xdg.h",
418 "observer_list_threadsafe.h",
419 "os_compat_android.cc",
420 "os_compat_android.h",
430 "posix/eintr_wrapper.h",
431 "posix/file_descriptor_shuffle.cc",
432 "posix/global_descriptors.cc",
433 "posix/global_descriptors.h",
434 "posix/unix_domain_socket_linux.cc",
435 "posix/unix_domain_socket_linux.h",
436 "power_monitor/power_monitor.cc",
437 "power_monitor/power_monitor.h",
438 "power_monitor/power_monitor_device_source.cc",
439 "power_monitor/power_monitor_device_source.h",
440 "power_monitor/power_monitor_device_source_android.cc",
441 "power_monitor/power_monitor_device_source_android.h",
442 "power_monitor/power_monitor_device_source_ios.mm",
443 "power_monitor/power_monitor_device_source_mac.mm",
444 "power_monitor/power_monitor_device_source_posix.cc",
445 "power_monitor/power_monitor_device_source_win.cc",
446 "power_monitor/power_monitor_source.cc",
447 "power_monitor/power_monitor_source.h",
448 "power_monitor/power_observer.h",
449 "process/internal_linux.cc",
450 "process/internal_linux.h",
453 "process/kill_mac.cc",
454 "process/kill_posix.cc",
455 "process/kill_win.cc",
458 "process/launch_ios.cc",
459 "process/launch_mac.cc",
460 "process/launch_posix.cc",
461 "process/launch_win.cc",
464 "process/memory_linux.cc",
465 "process/memory_mac.mm",
466 "process/memory_win.cc",
468 "process/process_handle_freebsd.cc",
469 "process/process_handle_linux.cc",
470 "process/process_handle_mac.cc",
471 "process/process_handle_openbsd.cc",
472 "process/process_handle_posix.cc",
473 "process/process_handle_win.cc",
474 "process/process_info.h",
475 "process/process_info_mac.cc",
476 "process/process_info_win.cc",
477 "process/process_iterator.cc",
478 "process/process_iterator.h",
479 "process/process_iterator_freebsd.cc",
480 "process/process_iterator_linux.cc",
481 "process/process_iterator_mac.cc",
482 "process/process_iterator_openbsd.cc",
483 "process/process_iterator_win.cc",
484 "process/process_linux.cc",
485 "process/process_metrics.cc",
486 "process/process_metrics.h",
487 "process/process_metrics_freebsd.cc",
488 "process/process_metrics_ios.cc",
489 "process/process_metrics_linux.cc",
490 "process/process_metrics_mac.cc",
491 "process/process_metrics_openbsd.cc",
492 "process/process_metrics_posix.cc",
493 "process/process_metrics_win.cc",
494 "process/process_posix.cc",
495 "process/process_win.cc",
496 "profiler/scoped_profile.cc",
497 "profiler/scoped_profile.h",
498 "profiler/alternate_timer.cc",
499 "profiler/alternate_timer.h",
500 "profiler/tracked_time.cc",
501 "profiler/tracked_time.h",
505 "rand_util_posix.cc",
509 "safe_strerror_posix.cc",
510 "safe_strerror_posix.h",
512 "scoped_native_library.cc",
513 "scoped_native_library.h",
515 "sequence_checker.h",
516 "sequence_checker_impl.cc",
517 "sequence_checker_impl.h",
518 "sequenced_task_runner.cc",
519 "sequenced_task_runner.h",
520 "sequenced_task_runner_helpers.h",
524 "single_thread_task_runner.h",
526 "strings/latin1_string_conversions.cc",
527 "strings/latin1_string_conversions.h",
528 "strings/nullable_string16.cc",
529 "strings/nullable_string16.h",
530 "strings/safe_sprintf.cc",
531 "strings/safe_sprintf.h",
532 "strings/string16.cc",
533 "strings/string16.h",
534 "strings/string_number_conversions.cc",
535 "strings/string_split.cc",
536 "strings/string_split.h",
537 "strings/string_number_conversions.h",
538 "strings/string_piece.cc",
539 "strings/string_piece.h",
540 "strings/string_tokenizer.h",
541 "strings/string_util.cc",
542 "strings/string_util.h",
543 "strings/string_util_constants.cc",
544 "strings/string_util_posix.h",
545 "strings/string_util_win.h",
546 "strings/stringize_macros.h",
547 "strings/stringprintf.cc",
548 "strings/stringprintf.h",
549 "strings/sys_string_conversions.h",
550 "strings/sys_string_conversions_mac.mm",
551 "strings/sys_string_conversions_posix.cc",
552 "strings/sys_string_conversions_win.cc",
553 "strings/utf_offset_string_conversions.cc",
554 "strings/utf_offset_string_conversions.h",
555 "strings/utf_string_conversion_utils.cc",
556 "strings/utf_string_conversion_utils.h",
557 "strings/utf_string_conversions.cc",
558 "strings/utf_string_conversions.h",
559 "supports_user_data.cc",
560 "supports_user_data.h",
562 "sync_socket_posix.cc",
563 "sync_socket_win.cc",
564 "synchronization/cancellation_flag.cc",
565 "synchronization/cancellation_flag.h",
566 "synchronization/condition_variable.h",
567 "synchronization/condition_variable_posix.cc",
568 "synchronization/condition_variable_win.cc",
569 "synchronization/lock.cc",
570 "synchronization/lock.h",
571 "synchronization/lock_impl.h",
572 "synchronization/lock_impl_posix.cc",
573 "synchronization/lock_impl_win.cc",
574 "synchronization/spin_wait.h",
575 "synchronization/waitable_event.h",
576 "synchronization/waitable_event_posix.cc",
577 "synchronization/waitable_event_watcher.h",
578 "synchronization/waitable_event_watcher_posix.cc",
579 "synchronization/waitable_event_watcher_win.cc",
580 "synchronization/waitable_event_win.cc",
581 "system_monitor/system_monitor.cc",
582 "system_monitor/system_monitor.h",
586 "sys_info_android.cc",
587 "sys_info_chromeos.cc",
588 "sys_info_freebsd.cc",
592 "sys_info_openbsd.cc",
595 "task/cancelable_task_tracker.cc",
596 "task/cancelable_task_tracker.h",
599 "task_runner_util.h",
601 "thread_task_runner_handle.cc",
602 "thread_task_runner_handle.h",
603 "threading/non_thread_safe.h",
604 "threading/non_thread_safe_impl.cc",
605 "threading/non_thread_safe_impl.h",
606 "threading/platform_thread.h",
607 "threading/platform_thread_android.cc",
608 "threading/platform_thread_linux.cc",
609 "threading/platform_thread_mac.mm",
610 "threading/platform_thread_posix.cc",
611 "threading/platform_thread_win.cc",
612 "threading/post_task_and_reply_impl.cc",
613 "threading/post_task_and_reply_impl.h",
614 "threading/sequenced_worker_pool.cc",
615 "threading/sequenced_worker_pool.h",
616 "threading/simple_thread.cc",
617 "threading/simple_thread.h",
618 "threading/thread.cc",
619 "threading/thread.h",
620 "threading/thread_checker.h",
621 "threading/thread_checker_impl.cc",
622 "threading/thread_checker_impl.h",
623 "threading/thread_collision_warner.cc",
624 "threading/thread_collision_warner.h",
625 "threading/thread_id_name_manager.cc",
626 "threading/thread_id_name_manager.h",
627 "threading/thread_local.h",
628 "threading/thread_local_android.cc",
629 "threading/thread_local_posix.cc",
630 "threading/thread_local_storage.cc",
631 "threading/thread_local_storage.h",
632 "threading/thread_local_storage_posix.cc",
633 "threading/thread_local_storage_win.cc",
634 "threading/thread_local_win.cc",
635 "threading/thread_restrictions.h",
636 "threading/thread_restrictions.cc",
637 "threading/watchdog.cc",
638 "threading/watchdog.h",
639 "threading/worker_pool.h",
640 "threading/worker_pool.cc",
641 "threading/worker_pool_posix.cc",
642 "threading/worker_pool_posix.h",
643 "threading/worker_pool_win.cc",
646 "time/default_clock.cc",
647 "time/default_clock.h",
648 "time/default_tick_clock.cc",
649 "time/default_tick_clock.h",
650 "time/tick_clock.cc",
655 "time/time_posix.cc",
657 "timer/elapsed_timer.cc",
658 "timer/elapsed_timer.h",
659 "timer/hi_res_timer_manager.h",
660 "timer/hi_res_timer_manager_posix.cc",
661 "timer/hi_res_timer_manager_win.cc",
662 "timer/mock_timer.cc",
663 "timer/mock_timer.h",
666 "tracked_objects.cc",
673 "value_conversions.cc",
674 "value_conversions.h",
679 "win/enum_variant.cc",
680 "win/enum_variant.h",
681 "win/event_trace_consumer.h",
682 "win/event_trace_controller.cc",
683 "win/event_trace_controller.h",
684 "win/event_trace_provider.cc",
685 "win/event_trace_provider.h",
688 "win/iat_patch_function.cc",
689 "win/iat_patch_function.h",
690 "win/iunknown_impl.cc",
691 "win/iunknown_impl.h",
692 "win/message_window.cc",
693 "win/message_window.h",
696 "win/object_watcher.cc",
697 "win/object_watcher.h",
700 "win/resource_util.cc",
701 "win/resource_util.h",
702 "win/scoped_bstr.cc",
704 "win/scoped_co_mem.h",
705 "win/scoped_com_initializer.h",
706 "win/scoped_comptr.h",
707 "win/scoped_gdi_object.h",
708 "win/scoped_handle.cc",
709 "win/scoped_handle.h",
711 "win/scoped_hglobal.h",
712 "win/scoped_process_information.cc",
713 "win/scoped_process_information.h",
714 "win/scoped_propvariant.h",
715 "win/scoped_select_object.h",
716 "win/scoped_variant.cc",
717 "win/scoped_variant.h",
720 "win/startup_information.cc",
721 "win/startup_information.h",
724 "win/windows_version.cc",
725 "win/windows_version.h",
726 "win/wrapped_window_proc.cc",
727 "win/wrapped_window_proc.h",
731 sources += [ "files/file_path_watcher_stub.cc" ]
735 "process/process_handle_freebsd.cc",
736 "process/process_handle_openbsd.cc",
737 "process/process_iterator_freebsd.cc",
738 "process/process_iterator_openbsd.cc",
739 "process/process_metrics_freebsd.cc",
740 "process/process_metrics_openbsd.cc",
741 "sys_info_freebsd.cc",
742 "sys_info_openbsd.cc",
746 "BASE_IMPLEMENTATION",
751 "//base/allocator:allocator_extension_thunks",
752 "//base/third_party/dynamic_annotations",
753 "//base/third_party/nspr",
754 "//third_party/modp_b64",
759 "memory/discardable_memory_ashmem_allocator.cc",
760 "memory/discardable_memory_ashmem_allocator.h",
761 "memory/discardable_memory_ashmem.cc",
762 "memory/discardable_memory_ashmem.h",
765 "base_paths_posix.cc",
766 "power_monitor/power_monitor_device_source_posix.cc",
769 # Android uses some Linux sources, put those back.
770 set_sources_assignment_filter([])
772 "debug/proc_maps_linux.cc",
773 "files/file_path_watcher_linux.cc",
774 "process/memory_linux.cc",
775 "process/internal_linux.cc",
776 "process/process_handle_linux.cc",
777 "process/process_iterator_linux.cc",
778 "process/process_metrics_linux.cc",
779 "posix/unix_domain_socket_linux.cc",
782 set_sources_assignment_filter(sources_assignment_filter)
786 "//third_party/ashmem",
787 "//third_party/android_tools:cpu_features"
790 # logging.cc uses the Android logging library.
794 "debug/stack_trace_posix.cc",
799 # These things would otherwise be built on a Posix build but aren't
802 "debug/stack_trace_posix.cc",
803 "files/file_enumerator_posix.cc",
804 "file_util_posix.cc",
805 "message_loop/message_pump_libevent.cc",
806 "process/kill_posix.cc",
807 "process/launch_posix.cc",
808 "process/process_metrics_posix.cc",
809 "process/process_posix.cc",
810 "metrics/field_trial.cc",
811 "native_library_posix.cc",
812 "memory/shared_memory_posix.cc",
813 "sync_socket_posix.cc",
822 "memory/shared_memory_nacl.cc",
829 "message_loop/message_pump_libevent.cc",
830 "strings/string16.cc",
831 # Not using sha1_win.cc because it may have caused a
832 # regression to page cycler moz.
841 "/DELAYLOAD:powrprof.dll",
843 } else if (!is_nacl) {
845 deps += [ "//third_party/libevent" ]
851 "base_paths_posix.cc",
852 "native_library_posix.cc",
853 "strings/sys_string_conversions_posix.cc",
855 deps += [ "//third_party/mach_override" ]
859 "files/file_path_watcher_fsevents.cc",
860 "files/file_path_watcher_fsevents.h",
861 "files/file_path_watcher_kqueue.cc",
862 "files/file_path_watcher_kqueue.h",
868 # TODO(brettw) this will need to be parameterized at some point.
870 "//build/config/linux:glib",
873 configs += linux_configs
874 all_dependent_configs = linux_configs
876 # These dependencies are not required on Android, and in the case
877 # of xdg_mime must be excluded due to licensing restrictions.
879 "//base/third_party/symbolize",
880 "//base/third_party/xdg_mime",
881 "//base/third_party/xdg_user_dirs",
888 "nix/mime_util_xdg.cc",
889 "nix/mime_util_xdg.h",
897 "message_loop/message_pump_glib.cc",
898 "message_loop/message_pump_glib.h",
903 # This is the subset of files from base that should not be used with a dynamic
904 # library. Note that this library cannot depend on base because base depends on
906 source_set("base_static") {
916 output_name = "base_i18n"
918 "i18n/base_i18n_export.h",
919 "i18n/bidi_line_iterator.cc",
920 "i18n/bidi_line_iterator.h",
921 "i18n/break_iterator.cc",
922 "i18n/break_iterator.h",
923 "i18n/case_conversion.cc",
924 "i18n/case_conversion.h",
925 "i18n/char_iterator.cc",
926 "i18n/char_iterator.h",
927 "i18n/file_util_icu.cc",
928 "i18n/file_util_icu.h",
929 "i18n/i18n_constants.cc",
930 "i18n/i18n_constants.h",
931 "i18n/icu_encoding_detection.cc",
932 "i18n/icu_encoding_detection.h",
933 "i18n/icu_string_conversions.cc",
934 "i18n/icu_string_conversions.h",
937 "i18n/number_formatting.cc",
938 "i18n/number_formatting.h",
941 "i18n/streaming_utf8_validator.cc",
942 "i18n/streaming_utf8_validator.h",
943 "i18n/string_compare.cc",
944 "i18n/string_compare.h",
945 "i18n/string_search.cc",
946 "i18n/string_search.h",
947 "i18n/time_formatting.cc",
948 "i18n/time_formatting.h",
951 "i18n/utf8_validator_tables.cc",
952 "i18n/utf8_validator_tables.h",
954 defines = [ "BASE_I18N_IMPLEMENTATION" ]
955 configs += [ "//build/config/compiler:wexit_time_destructors" ]
958 "//base/third_party/dynamic_annotations",
963 source_set("prefs") {
965 "prefs/base_prefs_export.h",
966 "prefs/default_pref_store.cc",
967 "prefs/default_pref_store.h",
968 "prefs/json_pref_store.cc",
969 "prefs/json_pref_store.h",
970 "prefs/overlay_user_pref_store.cc",
971 "prefs/overlay_user_pref_store.h",
972 "prefs/persistent_pref_store.h",
973 "prefs/pref_change_registrar.cc",
974 "prefs/pref_change_registrar.h",
975 "prefs/pref_filter.h",
976 "prefs/pref_member.cc",
977 "prefs/pref_member.h",
978 "prefs/pref_notifier.h",
979 "prefs/pref_notifier_impl.cc",
980 "prefs/pref_notifier_impl.h",
981 "prefs/pref_observer.h",
982 "prefs/pref_registry.cc",
983 "prefs/pref_registry.h",
984 "prefs/pref_registry_simple.cc",
985 "prefs/pref_registry_simple.h",
986 "prefs/pref_service.cc",
987 "prefs/pref_service.h",
988 "prefs/pref_service_factory.cc",
989 "prefs/pref_service_factory.h",
990 "prefs/pref_store.cc",
991 "prefs/pref_store.h",
992 "prefs/pref_value_map.cc",
993 "prefs/pref_value_map.h",
994 "prefs/pref_value_store.cc",
995 "prefs/pref_value_store.h",
996 "prefs/scoped_user_pref_update.cc",
997 "prefs/scoped_user_pref_update.h",
998 "prefs/value_map_pref_store.cc",
999 "prefs/value_map_pref_store.h",
1000 "prefs/writeable_pref_store.h",
1003 defines = [ "BASE_PREFS_IMPLEMENTATION" ]
1008 source_set("prefs_test_support") {
1010 "prefs/mock_pref_change_callback.cc",
1011 "prefs/mock_pref_change_callback.h",
1012 "prefs/pref_store_observer_mock.cc",
1013 "prefs/pref_store_observer_mock.h",
1014 "prefs/testing_pref_service.cc",
1015 "prefs/testing_pref_service.h",
1016 "prefs/testing_pref_store.cc",
1017 "prefs/testing_pref_store.h",
1027 source_set("message_loop_tests") {
1029 "message_loop/message_loop_test.cc",
1030 "message_loop/message_loop_test.h",
1039 test("base_unittests") {
1041 "android/application_status_listener_unittest.cc",
1042 "android/jni_android_unittest.cc",
1043 "android/jni_array_unittest.cc",
1044 "android/jni_string_unittest.cc",
1045 "android/path_utils_unittest.cc",
1046 "android/scoped_java_ref_unittest.cc",
1047 "android/sys_utils_unittest.cc",
1048 "async_socket_io_handler_unittest.cc",
1049 "at_exit_unittest.cc",
1050 "atomicops_unittest.cc",
1051 "barrier_closure_unittest.cc",
1052 "base64_unittest.cc",
1053 "big_endian_unittest.cc",
1057 "build_time_unittest.cc",
1058 "callback_helpers_unittest.cc",
1059 "callback_list_unittest.cc",
1060 "callback_list_unittest.nc",
1061 "callback_unittest.cc",
1062 "callback_unittest.nc",
1063 "cancelable_callback_unittest.cc",
1064 "command_line_unittest.cc",
1065 "containers/hash_tables_unittest.cc",
1066 "containers/linked_list_unittest.cc",
1067 "containers/mru_cache_unittest.cc",
1068 "containers/small_map_unittest.cc",
1069 "containers/stack_container_unittest.cc",
1071 "debug/crash_logging_unittest.cc",
1072 "debug/leak_tracker_unittest.cc",
1073 "debug/proc_maps_linux_unittest.cc",
1074 "debug/stack_trace_unittest.cc",
1075 "debug/trace_event_argument_unittest.cc",
1076 "debug/trace_event_memory_unittest.cc",
1077 "debug/trace_event_synthetic_delay_unittest.cc",
1078 "debug/trace_event_system_stats_monitor_unittest.cc",
1079 "debug/trace_event_unittest.cc",
1080 "debug/trace_event_unittest.h",
1081 "debug/trace_event_win_unittest.cc",
1082 "deferred_sequenced_task_runner_unittest.cc",
1083 "environment_unittest.cc",
1084 "file_util_unittest.cc",
1085 "file_version_info_unittest.cc",
1086 "files/dir_reader_posix_unittest.cc",
1087 "files/file_path_unittest.cc",
1088 "files/file_proxy_unittest.cc",
1089 "files/file_unittest.cc",
1090 "files/file_util_proxy_unittest.cc",
1091 "files/important_file_writer_unittest.cc",
1092 "files/scoped_temp_dir_unittest.cc",
1093 "gmock_unittest.cc",
1096 "id_map_unittest.cc",
1097 "i18n/break_iterator_unittest.cc",
1098 "i18n/char_iterator_unittest.cc",
1099 "i18n/case_conversion_unittest.cc",
1100 "i18n/file_util_icu_unittest.cc",
1101 "i18n/icu_string_conversions_unittest.cc",
1102 "i18n/number_formatting_unittest.cc",
1103 "i18n/rtl_unittest.cc",
1104 "i18n/streaming_utf8_validator_unittest.cc",
1105 "i18n/string_search_unittest.cc",
1106 "i18n/time_formatting_unittest.cc",
1107 "i18n/timezone_unittest.cc",
1108 "ini_parser_unittest.cc",
1109 "ios/device_util_unittest.mm",
1110 "json/json_parser_unittest.cc",
1111 "json/json_reader_unittest.cc",
1112 "json/json_value_converter_unittest.cc",
1113 "json/json_value_serializer_unittest.cc",
1114 "json/json_writer_unittest.cc",
1115 "json/string_escape_unittest.cc",
1116 "lazy_instance_unittest.cc",
1117 "logging_unittest.cc",
1118 "mac/bind_objc_block_unittest.mm",
1119 "mac/foundation_util_unittest.mm",
1120 "mac/libdispatch_task_runner_unittest.cc",
1121 "mac/mac_util_unittest.mm",
1122 "mac/objc_property_releaser_unittest.mm",
1123 "mac/scoped_nsobject_unittest.mm",
1124 "mac/scoped_sending_event_unittest.mm",
1126 "memory/aligned_memory_unittest.cc",
1127 "memory/discardable_memory_manager_unittest.cc",
1128 "memory/discardable_memory_unittest.cc",
1129 "memory/linked_ptr_unittest.cc",
1130 "memory/ref_counted_memory_unittest.cc",
1131 "memory/ref_counted_unittest.cc",
1132 "memory/scoped_ptr_unittest.cc",
1133 "memory/scoped_ptr_unittest.nc",
1134 "memory/scoped_vector_unittest.cc",
1135 "memory/shared_memory_unittest.cc",
1136 "memory/singleton_unittest.cc",
1137 "memory/weak_ptr_unittest.cc",
1138 "memory/weak_ptr_unittest.nc",
1139 "message_loop/message_loop_proxy_impl_unittest.cc",
1140 "message_loop/message_loop_proxy_unittest.cc",
1141 "message_loop/message_loop_unittest.cc",
1142 "message_loop/message_pump_glib_unittest.cc",
1143 "message_loop/message_pump_io_ios_unittest.cc",
1144 "metrics/sample_map_unittest.cc",
1145 "metrics/sample_vector_unittest.cc",
1146 "metrics/bucket_ranges_unittest.cc",
1147 "metrics/field_trial_unittest.cc",
1148 "metrics/histogram_base_unittest.cc",
1149 "metrics/histogram_delta_serialization_unittest.cc",
1150 "metrics/histogram_snapshot_manager_unittest.cc",
1151 "metrics/histogram_unittest.cc",
1152 "metrics/sparse_histogram_unittest.cc",
1153 "metrics/stats_table_unittest.cc",
1154 "metrics/statistics_recorder_unittest.cc",
1155 "observer_list_unittest.cc",
1156 "os_compat_android_unittest.cc",
1157 "path_service_unittest.cc",
1158 "pickle_unittest.cc",
1159 "posix/file_descriptor_shuffle_unittest.cc",
1160 "posix/unix_domain_socket_linux_unittest.cc",
1161 "power_monitor/power_monitor_unittest.cc",
1162 "prefs/default_pref_store_unittest.cc",
1163 "prefs/json_pref_store_unittest.cc",
1164 "prefs/overlay_user_pref_store_unittest.cc",
1165 "prefs/pref_change_registrar_unittest.cc",
1166 "prefs/pref_member_unittest.cc",
1167 "prefs/pref_notifier_impl_unittest.cc",
1168 "prefs/pref_service_unittest.cc",
1169 "prefs/pref_value_map_unittest.cc",
1170 "prefs/pref_value_store_unittest.cc",
1171 "prefs/scoped_user_pref_update_unittest.cc",
1172 "process/memory_unittest.cc",
1173 "process/memory_unittest_mac.h",
1174 "process/memory_unittest_mac.mm",
1175 "process/process_metrics_unittest.cc",
1176 "process/process_metrics_unittest_ios.cc",
1177 "process/process_util_unittest.cc",
1178 "process/process_util_unittest_ios.cc",
1179 "profiler/tracked_time_unittest.cc",
1180 "rand_util_unittest.cc",
1181 "numerics/safe_numerics_unittest.cc",
1182 "scoped_clear_errno_unittest.cc",
1183 "scoped_generic_unittest.cc",
1184 "scoped_native_library_unittest.cc",
1185 "security_unittest.cc",
1186 "sequence_checker_unittest.cc",
1188 "stl_util_unittest.cc",
1189 "strings/nullable_string16_unittest.cc",
1190 "strings/safe_sprintf_unittest.cc",
1191 "strings/string16_unittest.cc",
1192 "strings/stringprintf_unittest.cc",
1193 "strings/string_number_conversions_unittest.cc",
1194 "strings/string_piece_unittest.cc",
1195 "strings/string_split_unittest.cc",
1196 "strings/string_tokenizer_unittest.cc",
1197 "strings/string_util_unittest.cc",
1198 "strings/stringize_macros_unittest.cc",
1199 "strings/sys_string_conversions_mac_unittest.mm",
1200 "strings/sys_string_conversions_unittest.cc",
1201 "strings/utf_offset_string_conversions_unittest.cc",
1202 "strings/utf_string_conversions_unittest.cc",
1203 "supports_user_data_unittest.cc",
1204 "sync_socket_unittest.cc",
1205 "synchronization/cancellation_flag_unittest.cc",
1206 "synchronization/condition_variable_unittest.cc",
1207 "synchronization/lock_unittest.cc",
1208 "synchronization/waitable_event_unittest.cc",
1209 "synchronization/waitable_event_watcher_unittest.cc",
1210 "sys_info_unittest.cc",
1211 "system_monitor/system_monitor_unittest.cc",
1212 "task/cancelable_task_tracker_unittest.cc",
1213 "task_runner_util_unittest.cc",
1214 "template_util_unittest.cc",
1215 "test/expectations/expectation_unittest.cc",
1216 "test/expectations/parser_unittest.cc",
1217 "test/statistics_delta_reader_unittest.cc",
1218 "test/test_reg_util_win_unittest.cc",
1219 "test/trace_event_analyzer_unittest.cc",
1220 "threading/non_thread_safe_unittest.cc",
1221 "threading/platform_thread_unittest.cc",
1222 "threading/sequenced_worker_pool_unittest.cc",
1223 "threading/simple_thread_unittest.cc",
1224 "threading/thread_checker_unittest.cc",
1225 "threading/thread_collision_warner_unittest.cc",
1226 "threading/thread_id_name_manager_unittest.cc",
1227 "threading/thread_local_storage_unittest.cc",
1228 "threading/thread_local_unittest.cc",
1229 "threading/thread_unittest.cc",
1230 "threading/watchdog_unittest.cc",
1231 "threading/worker_pool_posix_unittest.cc",
1232 "threading/worker_pool_unittest.cc",
1233 "time/pr_time_unittest.cc",
1234 "time/time_unittest.cc",
1235 "time/time_win_unittest.cc",
1236 "timer/hi_res_timer_manager_unittest.cc",
1237 "timer/mock_timer_unittest.cc",
1238 "timer/timer_unittest.cc",
1239 "tools_sanity_unittest.cc",
1240 "tracked_objects_unittest.cc",
1241 "tuple_unittest.cc",
1242 "values_unittest.cc",
1243 "version_unittest.cc",
1246 "win/enum_variant_unittest.cc",
1247 "win/event_trace_consumer_unittest.cc",
1248 "win/event_trace_controller_unittest.cc",
1249 "win/event_trace_provider_unittest.cc",
1250 "win/i18n_unittest.cc",
1251 "win/iunknown_impl_unittest.cc",
1252 "win/message_window_unittest.cc",
1253 "win/object_watcher_unittest.cc",
1254 "win/pe_image_unittest.cc",
1255 "win/registry_unittest.cc",
1256 "win/scoped_bstr_unittest.cc",
1257 "win/scoped_comptr_unittest.cc",
1258 "win/scoped_process_information_unittest.cc",
1259 "win/scoped_variant_unittest.cc",
1260 "win/shortcut_unittest.cc",
1261 "win/startup_information_unittest.cc",
1262 "win/win_util_unittest.cc",
1263 "win/wrapped_window_proc_unittest.cc",
1269 ":message_loop_tests",
1271 ":prefs_test_support",
1273 "//base/test:run_all_unittests",
1274 "//base/test:test_support",
1275 "//base/third_party/dynamic_annotations",
1278 "//third_party/icu",
1283 "metrics/stats_table_uinittest.cc", # Requires spawning a process.
1284 "process/memory_unittest.cc",
1285 "process/memory_unittest_mac.h",
1286 "process/memory_unittest_mac.mm",
1287 "process/process_util_unittest.cc",
1290 # Pull in specific Mac files for iOS (which have been filtered out by file
1292 set_sources_assignment_filter([])
1294 "mac/bind_objc_block_unittest.mm",
1295 "mac/foundation_util_unittest.mm",
1296 "mac/objc_property_releaser_unittest.mm",
1297 "mac/scoped_nsobject_unittest.mm",
1298 "sys_string_conversions_mac_unittest.mm",
1300 set_sources_assignment_filter(sources_assignment_filter)
1302 # TODO(GYP): dep on copy_test_data_ios action.
1306 sources -= [ "file_version_info_unittest.cc" ]
1307 sources += [ "nix/xdg_util_unittest.cc" ]
1308 defines = [ "USE_SYMBOLIZE" ]
1309 configs += [ "//build/config/linux:glib" ]
1312 if (!is_linux || use_ozone) {
1313 sources -= [ "message_loop/message_pump_glib_unittest.cc" ]
1316 if (is_posix || is_ios) {
1317 sources += [ "message_loop/message_pump_libevent_unittest.cc" ]
1318 deps += [ "//third_party/libevent" ]
1322 set_sources_assignment_filter([])
1323 sources += [ "debug/proc_maps_linux_unittest.cc" ]
1324 set_sources_assignment_filter(sources_assignment_filter)
1329 generate_jni("base_jni_headers") {
1331 "android/java/src/org/chromium/base/ApplicationStatus.java",
1332 "android/java/src/org/chromium/base/BuildInfo.java",
1333 "android/java/src/org/chromium/base/CommandLine.java",
1334 "android/java/src/org/chromium/base/ContentUriUtils.java",
1335 "android/java/src/org/chromium/base/CpuFeatures.java",
1336 "android/java/src/org/chromium/base/EventLog.java",
1337 "android/java/src/org/chromium/base/FieldTrialList.java",
1338 "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java",
1339 "android/java/src/org/chromium/base/library_loader/LibraryLoader.java",
1340 "android/java/src/org/chromium/base/MemoryPressureListener.java",
1341 "android/java/src/org/chromium/base/JavaHandlerThread.java",
1342 "android/java/src/org/chromium/base/PathService.java",
1343 "android/java/src/org/chromium/base/PathUtils.java",
1344 "android/java/src/org/chromium/base/PowerMonitor.java",
1345 "android/java/src/org/chromium/base/SystemMessageHandler.java",
1346 "android/java/src/org/chromium/base/SysUtils.java",
1347 "android/java/src/org/chromium/base/ThreadUtils.java",
1348 "android/java/src/org/chromium/base/TraceEvent.java",
1350 jni_package = "base"
1353 android_library("base_java") {
1355 ":base_java_application_state",
1356 ":base_java_memory_pressure_level_list",
1357 ":base_native_libraries_gen",
1361 "//third_party/jsr-305:jsr_305_javalib"
1365 "android/java/src/org/chromium/base/BaseChromiumApplication.java",
1366 "android/java/src/org/chromium/base/JavaHandlerThread.java",
1367 "android/java/src/org/chromium/base/PathService.java",
1368 "android/java/src/org/chromium/base/CollectionUtil.java",
1369 "android/java/src/org/chromium/base/PathUtils.java",
1370 "android/java/src/org/chromium/base/library_loader/ProcessInitException.java",
1371 "android/java/src/org/chromium/base/library_loader/LoaderErrors.java",
1372 "android/java/src/org/chromium/base/library_loader/LibraryLoader.java",
1373 "android/java/src/org/chromium/base/library_loader/Linker.java",
1374 "android/java/src/org/chromium/base/library_loader/LibraryLoaderHelper.java",
1375 "android/java/src/org/chromium/base/ThreadUtils.java",
1376 "android/java/src/org/chromium/base/CpuFeatures.java",
1377 "android/java/src/org/chromium/base/CalledByNative.java",
1378 "android/java/src/org/chromium/base/PowerMonitor.java",
1379 "android/java/src/org/chromium/base/CommandLine.java",
1380 "android/java/src/org/chromium/base/SystemMessageHandler.java",
1381 "android/java/src/org/chromium/base/ContentUriUtils.java",
1382 "android/java/src/org/chromium/base/WindowCallbackWrapper.java",
1383 "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java",
1384 "android/java/src/org/chromium/base/BaseSwitches.java",
1385 "android/java/src/org/chromium/base/SysUtils.java",
1386 "android/java/src/org/chromium/base/PowerStatusReceiver.java",
1387 "android/java/src/org/chromium/base/ObserverList.java",
1388 "android/java/src/org/chromium/base/PerfTraceEvent.java",
1389 "android/java/src/org/chromium/base/BuildInfo.java",
1390 "android/java/src/org/chromium/base/TraceEvent.java",
1391 "android/java/src/org/chromium/base/AccessedByNative.java",
1392 "android/java/src/org/chromium/base/JNINamespace.java",
1393 "android/java/src/org/chromium/base/CalledByNativeUnchecked.java",
1394 "android/java/src/org/chromium/base/MemoryPressureListener.java",
1395 "android/java/src/org/chromium/base/NativeClassQualifiedName.java",
1396 "android/java/src/org/chromium/base/ActivityState.java",
1397 "android/java/src/org/chromium/base/ApplicationStatus.java",
1398 "android/java/src/org/chromium/base/ApiCompatibilityUtils.java",
1401 # A new version of NativeLibraries.java (with the actual correct values)
1402 # will be created when creating an apk.
1403 jar_excluded_patterns = [
1404 "*/NativeLibraries.class",
1405 "*/NativeLibraries##*.class",
1409 java_cpp_template("base_java_application_state") {
1411 "android/java/src/org/chromium/base/ApplicationState.template",
1414 "android/application_state_list.h"
1417 package_name = "org/chromium/base"
1420 java_cpp_template("base_java_memory_pressure_level_list") {
1422 "android/java/src/org/chromium/base/MemoryPressureLevelList.template",
1425 "memory/memory_pressure_level_list.h"
1428 package_name = "org/chromium/base"
1431 java_cpp_template("base_native_libraries_gen") {
1433 "android/java/templates/NativeLibraries.template",
1436 "android/java/templates/native_libraries_array.h",
1439 package_name = "org/chromium/base/library_loader"
1440 include_path = "android/java/templates"
1443 android_library("base_java_unittest_support") {
1444 deps = [":base_java"]
1446 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java"
1450 unittest_apk("base_unittests_apk") {
1453 ":base_java_unittest_support",
1456 unittests_dep = ":base_unittests"