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_utils.cc",
53 "android/jni_utils.h",
54 "android/jni_weak_ref.cc",
55 "android/jni_weak_ref.h",
56 "android/library_loader/library_loader_hooks.cc",
57 "android/library_loader/library_loader_hooks.h",
58 "android/memory_pressure_listener_android.cc",
59 "android/memory_pressure_listener_android.h",
60 "android/java_handler_thread.cc",
61 "android/java_handler_thread.h",
62 "android/path_service_android.cc",
63 "android/path_service_android.h",
64 "android/path_utils.cc",
65 "android/path_utils.h",
66 "android/sys_utils.cc",
67 "android/sys_utils.h",
68 "android/thread_utils.h",
69 "android/trace_event_binding.cc",
70 "android/trace_event_binding.h",
71 "async_socket_io_handler.h",
72 "async_socket_io_handler_posix.cc",
73 "async_socket_io_handler_win.cc",
77 "atomic_sequence_num.h",
79 "atomicops_internals_gcc.h",
80 "atomicops_internals_mac.h",
81 "atomicops_internals_tsan.h",
82 "atomicops_internals_x86_gcc.cc",
83 "atomicops_internals_x86_gcc.h",
84 "atomicops_internals_x86_msvc.h",
91 "base_paths_android.cc",
92 "base_paths_android.h",
95 "base_paths_posix.cc",
109 "bind_internal_win.h",
114 "callback_helpers.cc",
115 "callback_helpers.h",
116 "callback_internal.cc",
117 "callback_internal.h",
118 "cancelable_callback.h",
121 "compiler_specific.h",
122 "containers/hash_tables.h",
123 "containers/linked_list.h",
124 "containers/mru_cache.h",
125 "containers/small_map.h",
126 "containers/stack_container.h",
129 "critical_closure.h",
130 "critical_closure_internal_ios.mm",
133 "debug/crash_logging.cc",
134 "debug/crash_logging.h",
137 "debug/debugger_posix.cc",
138 "debug/debugger_win.cc",
139 "debug/dump_without_crashing.cc",
140 "debug/dump_without_crashing.h",
141 "debug/gdi_debug_util_win.cc",
142 "debug/gdi_debug_util_win.h",
143 # This file depends on files from the "allocator" target,
144 # but this target does not depend on "allocator" (see
145 # allocator.gyp for details).
146 "debug/leak_annotations.h",
147 "debug/leak_tracker.h",
148 "debug/proc_maps_linux.cc",
149 "debug/proc_maps_linux.h",
152 "debug/stack_trace.cc",
153 "debug/stack_trace.h",
154 "debug/stack_trace_android.cc",
155 "debug/stack_trace_posix.cc",
156 "debug/stack_trace_win.cc",
157 "debug/task_annotator.cc",
158 "debug/task_annotator.h",
159 "debug/trace_event.h",
160 "debug/trace_event_android.cc",
161 "debug/trace_event_argument.cc",
162 "debug/trace_event_argument.h",
163 "debug/trace_event_impl.cc",
164 "debug/trace_event_impl.h",
165 "debug/trace_event_impl_constants.cc",
166 "debug/trace_event_memory.cc",
167 "debug/trace_event_memory.h",
168 "debug/trace_event_synthetic_delay.cc",
169 "debug/trace_event_synthetic_delay.h",
170 "debug/trace_event_system_stats_monitor.cc",
171 "debug/trace_event_system_stats_monitor.h",
172 "debug/trace_event_win.cc",
173 "deferred_sequenced_task_runner.cc",
174 "deferred_sequenced_task_runner.h",
178 "event_recorder_stubs.cc",
179 "event_recorder_win.cc",
180 "file_descriptor_posix.h",
181 "file_version_info.h",
182 "file_version_info_mac.h",
183 "file_version_info_mac.mm",
184 "file_version_info_win.cc",
185 "file_version_info_win.h",
186 "files/dir_reader_fallback.h",
187 "files/dir_reader_linux.h",
188 "files/dir_reader_posix.h",
190 "files/file_posix.cc",
192 "files/file_enumerator.cc",
193 "files/file_enumerator.h",
194 "files/file_enumerator_posix.cc",
195 "files/file_enumerator_win.cc",
196 "files/file_path.cc",
198 "files/file_path_constants.cc",
199 "files/file_path_watcher.cc",
200 "files/file_path_watcher.h",
201 "files/file_path_watcher_fsevents.cc",
202 "files/file_path_watcher_fsevents.h",
203 "files/file_path_watcher_kqueue.cc",
204 "files/file_path_watcher_kqueue.h",
205 "files/file_path_watcher_linux.cc",
206 "files/file_path_watcher_mac.cc",
207 "files/file_path_watcher_win.cc",
208 "files/file_proxy.cc",
209 "files/file_proxy.h",
210 "files/file_util.cc",
212 "files/file_util_android.cc",
213 "files/file_util_linux.cc",
214 "files/file_util_mac.mm",
215 "files/file_util_posix.cc",
216 "files/file_util_proxy.cc",
217 "files/file_util_proxy.h",
218 "files/file_util_win.cc",
219 "files/important_file_writer.cc",
220 "files/important_file_writer.h",
221 "files/memory_mapped_file.cc",
222 "files/memory_mapped_file.h",
223 "files/memory_mapped_file_posix.cc",
224 "files/memory_mapped_file_win.cc",
225 "files/scoped_file.cc",
226 "files/scoped_file.h",
227 "files/scoped_temp_dir.cc",
228 "files/scoped_temp_dir.h",
240 "ios/device_util.mm",
243 "ios/scoped_critical_action.h",
244 "ios/scoped_critical_action.mm",
245 "json/json_file_value_serializer.cc",
246 "json/json_file_value_serializer.h",
247 "json/json_parser.cc",
248 "json/json_parser.h",
249 "json/json_reader.cc",
250 "json/json_reader.h",
251 "json/json_string_value_serializer.cc",
252 "json/json_string_value_serializer.h",
253 "json/json_value_converter.h",
254 "json/json_writer.cc",
255 "json/json_writer.h",
256 "json/string_escape.cc",
257 "json/string_escape.h",
268 "mac/authorization_util.h",
269 "mac/authorization_util.mm",
270 "mac/bind_objc_block.h",
271 "mac/bundle_locations.h",
272 "mac/bundle_locations.mm",
273 "mac/cocoa_protocols.h",
274 "mac/foundation_util.h",
275 "mac/foundation_util.mm",
276 "mac/launch_services_util.cc",
277 "mac/launch_services_util.h",
280 "mac/libdispatch_task_runner.cc",
281 "mac/libdispatch_task_runner.h",
283 "mac/mac_logging.cc",
286 "mac/mach_logging.cc",
287 "mac/mach_logging.h",
288 "mac/objc_property_releaser.h",
289 "mac/objc_property_releaser.mm",
290 "mac/os_crash_dumps.cc",
291 "mac/os_crash_dumps.h",
292 "mac/scoped_aedesc.h",
293 "mac/scoped_authorizationref.h",
294 "mac/scoped_block.h",
295 "mac/scoped_cftyperef.h",
296 "mac/scoped_ioobject.h",
297 "mac/scoped_ioplugininterface.h",
298 "mac/scoped_launch_data.h",
299 "mac/scoped_mach_port.cc",
300 "mac/scoped_mach_port.h",
301 "mac/scoped_mach_vm.cc",
302 "mac/scoped_mach_vm.h",
303 "mac/scoped_nsautorelease_pool.h",
304 "mac/scoped_nsautorelease_pool.mm",
305 "mac/scoped_nsexception_enabler.h",
306 "mac/scoped_nsexception_enabler.mm",
307 "mac/scoped_nsobject.h",
308 "mac/scoped_objc_class_swizzler.h",
309 "mac/scoped_objc_class_swizzler.mm",
310 "mac/scoped_sending_event.h",
311 "mac/scoped_sending_event.mm",
312 "mac/sdk_forward_declarations.h",
316 "memory/aligned_memory.cc",
317 "memory/aligned_memory.h",
318 "memory/discardable_memory.cc",
319 "memory/discardable_memory.h",
320 "memory/discardable_memory_android.cc",
321 "memory/discardable_memory_emulated.cc",
322 "memory/discardable_memory_emulated.h",
323 "memory/discardable_memory_linux.cc",
324 "memory/discardable_memory_mac.cc",
325 "memory/discardable_memory_malloc.cc",
326 "memory/discardable_memory_malloc.h",
327 "memory/discardable_memory_manager.cc",
328 "memory/discardable_memory_manager.h",
329 "memory/discardable_memory_win.cc",
330 "memory/linked_ptr.h",
331 "memory/manual_constructor.h",
332 "memory/memory_pressure_listener.cc",
333 "memory/memory_pressure_listener.h",
334 "memory/raw_scoped_refptr_mismatch_checker.h",
335 "memory/ref_counted.cc",
336 "memory/ref_counted.h",
337 "memory/ref_counted_delete_on_message_loop.h",
338 "memory/ref_counted_memory.cc",
339 "memory/ref_counted_memory.h",
340 "memory/scoped_open_process.h",
341 "memory/scoped_policy.h",
342 "memory/scoped_ptr.h",
343 "memory/scoped_vector.h",
344 "memory/shared_memory.h",
345 "memory/shared_memory_android.cc",
346 "memory/shared_memory_nacl.cc",
347 "memory/shared_memory_posix.cc",
348 "memory/shared_memory_win.cc",
349 "memory/singleton.cc",
350 "memory/singleton.h",
351 "memory/weak_ptr.cc",
353 "message_loop/incoming_task_queue.cc",
354 "message_loop/incoming_task_queue.h",
355 "message_loop/message_loop.cc",
356 "message_loop/message_loop.h",
357 "message_loop/message_loop_proxy.cc",
358 "message_loop/message_loop_proxy.h",
359 "message_loop/message_loop_proxy_impl.cc",
360 "message_loop/message_loop_proxy_impl.h",
361 "message_loop/message_pump.cc",
362 "message_loop/message_pump.h",
363 "message_loop/message_pump_android.cc",
364 "message_loop/message_pump_android.h",
365 "message_loop/message_pump_default.cc",
366 "message_loop/message_pump_default.h",
367 "message_loop/message_pump_glib.cc",
368 "message_loop/message_pump_glib.h",
369 "message_loop/message_pump_io_ios.cc",
370 "message_loop/message_pump_io_ios.h",
371 "message_loop/message_pump_libevent.cc",
372 "message_loop/message_pump_libevent.h",
373 "message_loop/message_pump_mac.h",
374 "message_loop/message_pump_mac.mm",
375 "message_loop/message_pump_win.cc",
376 "message_loop/message_pump_win.h",
377 "metrics/field_trial.cc",
378 "metrics/field_trial.h",
379 "metrics/sample_map.cc",
380 "metrics/sample_map.h",
381 "metrics/sample_vector.cc",
382 "metrics/sample_vector.h",
383 "metrics/bucket_ranges.cc",
384 "metrics/bucket_ranges.h",
385 "metrics/histogram.cc",
386 "metrics/histogram.h",
387 "metrics/histogram_base.cc",
388 "metrics/histogram_base.h",
389 "metrics/histogram_delta_serialization.cc",
390 "metrics/histogram_delta_serialization.",
391 "metrics/histogram_flattener.h",
392 "metrics/histogram_samples.cc",
393 "metrics/histogram_samples.h",
394 "metrics/histogram_snapshot_manager.cc",
395 "metrics/histogram_snapshot_manager.h",
396 "metrics/sparse_histogram.cc",
397 "metrics/sparse_histogram.h",
398 "metrics/statistics_recorder.cc",
399 "metrics/statistics_recorder.h",
400 "metrics/stats_counters.cc",
401 "metrics/stats_counters.h",
402 "metrics/stats_table.cc",
403 "metrics/stats_table.h",
404 "metrics/user_metrics.cc",
405 "metrics/user_metrics.h",
406 "metrics/user_metrics_action.h",
409 "native_library_mac.mm",
410 "native_library_posix.cc",
411 "native_library_win.cc",
412 "numerics/safe_conversions.h",
413 "numerics/safe_conversions_impl.h",
414 "numerics/safe_math.h",
415 "numerics/safe_math_impl.h",
416 "nix/mime_util_xdg.cc",
417 "nix/mime_util_xdg.h",
421 "observer_list_threadsafe.h",
422 "os_compat_android.cc",
423 "os_compat_android.h",
433 "posix/eintr_wrapper.h",
434 "posix/file_descriptor_shuffle.cc",
435 "posix/global_descriptors.cc",
436 "posix/global_descriptors.h",
437 "posix/unix_domain_socket_linux.cc",
438 "posix/unix_domain_socket_linux.h",
439 "power_monitor/power_monitor.cc",
440 "power_monitor/power_monitor.h",
441 "power_monitor/power_monitor_device_source.cc",
442 "power_monitor/power_monitor_device_source.h",
443 "power_monitor/power_monitor_device_source_android.cc",
444 "power_monitor/power_monitor_device_source_android.h",
445 "power_monitor/power_monitor_device_source_ios.mm",
446 "power_monitor/power_monitor_device_source_mac.mm",
447 "power_monitor/power_monitor_device_source_posix.cc",
448 "power_monitor/power_monitor_device_source_win.cc",
449 "power_monitor/power_monitor_source.cc",
450 "power_monitor/power_monitor_source.h",
451 "power_monitor/power_observer.h",
452 "process/internal_linux.cc",
453 "process/internal_linux.h",
456 "process/kill_mac.cc",
457 "process/kill_posix.cc",
458 "process/kill_win.cc",
461 "process/launch_ios.cc",
462 "process/launch_mac.cc",
463 "process/launch_posix.cc",
464 "process/launch_win.cc",
467 "process/memory_linux.cc",
468 "process/memory_mac.mm",
469 "process/memory_win.cc",
471 "process/process_handle_freebsd.cc",
472 "process/process_handle_linux.cc",
473 "process/process_handle_mac.cc",
474 "process/process_handle_openbsd.cc",
475 "process/process_handle_posix.cc",
476 "process/process_handle_win.cc",
477 "process/process_info.h",
478 "process/process_info_mac.cc",
479 "process/process_info_win.cc",
480 "process/process_iterator.cc",
481 "process/process_iterator.h",
482 "process/process_iterator_freebsd.cc",
483 "process/process_iterator_linux.cc",
484 "process/process_iterator_mac.cc",
485 "process/process_iterator_openbsd.cc",
486 "process/process_iterator_win.cc",
487 "process/process_linux.cc",
488 "process/process_metrics.cc",
489 "process/process_metrics.h",
490 "process/process_metrics_freebsd.cc",
491 "process/process_metrics_ios.cc",
492 "process/process_metrics_linux.cc",
493 "process/process_metrics_mac.cc",
494 "process/process_metrics_openbsd.cc",
495 "process/process_metrics_posix.cc",
496 "process/process_metrics_win.cc",
497 "process/process_posix.cc",
498 "process/process_win.cc",
499 "profiler/scoped_profile.cc",
500 "profiler/scoped_profile.h",
501 "profiler/alternate_timer.cc",
502 "profiler/alternate_timer.h",
503 "profiler/tracked_time.cc",
504 "profiler/tracked_time.h",
508 "rand_util_posix.cc",
512 "safe_strerror_posix.cc",
513 "safe_strerror_posix.h",
515 "scoped_native_library.cc",
516 "scoped_native_library.h",
518 "sequence_checker.h",
519 "sequence_checker_impl.cc",
520 "sequence_checker_impl.h",
521 "sequenced_task_runner.cc",
522 "sequenced_task_runner.h",
523 "sequenced_task_runner_helpers.h",
527 "single_thread_task_runner.h",
529 "strings/latin1_string_conversions.cc",
530 "strings/latin1_string_conversions.h",
531 "strings/nullable_string16.cc",
532 "strings/nullable_string16.h",
533 "strings/safe_sprintf.cc",
534 "strings/safe_sprintf.h",
535 "strings/string16.cc",
536 "strings/string16.h",
537 "strings/string_number_conversions.cc",
538 "strings/string_split.cc",
539 "strings/string_split.h",
540 "strings/string_number_conversions.h",
541 "strings/string_piece.cc",
542 "strings/string_piece.h",
543 "strings/string_tokenizer.h",
544 "strings/string_util.cc",
545 "strings/string_util.h",
546 "strings/string_util_constants.cc",
547 "strings/string_util_posix.h",
548 "strings/string_util_win.h",
549 "strings/stringize_macros.h",
550 "strings/stringprintf.cc",
551 "strings/stringprintf.h",
552 "strings/sys_string_conversions.h",
553 "strings/sys_string_conversions_mac.mm",
554 "strings/sys_string_conversions_posix.cc",
555 "strings/sys_string_conversions_win.cc",
556 "strings/utf_offset_string_conversions.cc",
557 "strings/utf_offset_string_conversions.h",
558 "strings/utf_string_conversion_utils.cc",
559 "strings/utf_string_conversion_utils.h",
560 "strings/utf_string_conversions.cc",
561 "strings/utf_string_conversions.h",
562 "supports_user_data.cc",
563 "supports_user_data.h",
565 "sync_socket_posix.cc",
566 "sync_socket_win.cc",
567 "synchronization/cancellation_flag.cc",
568 "synchronization/cancellation_flag.h",
569 "synchronization/condition_variable.h",
570 "synchronization/condition_variable_posix.cc",
571 "synchronization/condition_variable_win.cc",
572 "synchronization/lock.cc",
573 "synchronization/lock.h",
574 "synchronization/lock_impl.h",
575 "synchronization/lock_impl_posix.cc",
576 "synchronization/lock_impl_win.cc",
577 "synchronization/spin_wait.h",
578 "synchronization/waitable_event.h",
579 "synchronization/waitable_event_posix.cc",
580 "synchronization/waitable_event_watcher.h",
581 "synchronization/waitable_event_watcher_posix.cc",
582 "synchronization/waitable_event_watcher_win.cc",
583 "synchronization/waitable_event_win.cc",
584 "system_monitor/system_monitor.cc",
585 "system_monitor/system_monitor.h",
589 "sys_info_android.cc",
590 "sys_info_chromeos.cc",
591 "sys_info_freebsd.cc",
595 "sys_info_openbsd.cc",
598 "task/cancelable_task_tracker.cc",
599 "task/cancelable_task_tracker.h",
602 "task_runner_util.h",
604 "thread_task_runner_handle.cc",
605 "thread_task_runner_handle.h",
606 "threading/non_thread_safe.h",
607 "threading/non_thread_safe_impl.cc",
608 "threading/non_thread_safe_impl.h",
609 "threading/platform_thread.h",
610 "threading/platform_thread_android.cc",
611 "threading/platform_thread_linux.cc",
612 "threading/platform_thread_mac.mm",
613 "threading/platform_thread_posix.cc",
614 "threading/platform_thread_win.cc",
615 "threading/post_task_and_reply_impl.cc",
616 "threading/post_task_and_reply_impl.h",
617 "threading/sequenced_worker_pool.cc",
618 "threading/sequenced_worker_pool.h",
619 "threading/simple_thread.cc",
620 "threading/simple_thread.h",
621 "threading/thread.cc",
622 "threading/thread.h",
623 "threading/thread_checker.h",
624 "threading/thread_checker_impl.cc",
625 "threading/thread_checker_impl.h",
626 "threading/thread_collision_warner.cc",
627 "threading/thread_collision_warner.h",
628 "threading/thread_id_name_manager.cc",
629 "threading/thread_id_name_manager.h",
630 "threading/thread_local.h",
631 "threading/thread_local_android.cc",
632 "threading/thread_local_posix.cc",
633 "threading/thread_local_storage.cc",
634 "threading/thread_local_storage.h",
635 "threading/thread_local_storage_posix.cc",
636 "threading/thread_local_storage_win.cc",
637 "threading/thread_local_win.cc",
638 "threading/thread_restrictions.h",
639 "threading/thread_restrictions.cc",
640 "threading/watchdog.cc",
641 "threading/watchdog.h",
642 "threading/worker_pool.h",
643 "threading/worker_pool.cc",
644 "threading/worker_pool_posix.cc",
645 "threading/worker_pool_posix.h",
646 "threading/worker_pool_win.cc",
649 "time/default_clock.cc",
650 "time/default_clock.h",
651 "time/default_tick_clock.cc",
652 "time/default_tick_clock.h",
653 "time/tick_clock.cc",
658 "time/time_posix.cc",
660 "timer/elapsed_timer.cc",
661 "timer/elapsed_timer.h",
662 "timer/hi_res_timer_manager.h",
663 "timer/hi_res_timer_manager_posix.cc",
664 "timer/hi_res_timer_manager_win.cc",
665 "timer/mock_timer.cc",
666 "timer/mock_timer.h",
669 "tracked_objects.cc",
676 "value_conversions.cc",
677 "value_conversions.h",
682 "win/enum_variant.cc",
683 "win/enum_variant.h",
684 "win/event_trace_consumer.h",
685 "win/event_trace_controller.cc",
686 "win/event_trace_controller.h",
687 "win/event_trace_provider.cc",
688 "win/event_trace_provider.h",
691 "win/iat_patch_function.cc",
692 "win/iat_patch_function.h",
693 "win/iunknown_impl.cc",
694 "win/iunknown_impl.h",
695 "win/message_window.cc",
696 "win/message_window.h",
699 "win/object_watcher.cc",
700 "win/object_watcher.h",
703 "win/resource_util.cc",
704 "win/resource_util.h",
705 "win/scoped_bstr.cc",
707 "win/scoped_co_mem.h",
708 "win/scoped_com_initializer.h",
709 "win/scoped_comptr.h",
710 "win/scoped_gdi_object.h",
711 "win/scoped_handle.cc",
712 "win/scoped_handle.h",
714 "win/scoped_hglobal.h",
715 "win/scoped_process_information.cc",
716 "win/scoped_process_information.h",
717 "win/scoped_propvariant.h",
718 "win/scoped_select_object.h",
719 "win/scoped_variant.cc",
720 "win/scoped_variant.h",
723 "win/startup_information.cc",
724 "win/startup_information.h",
727 "win/windows_version.cc",
728 "win/windows_version.h",
729 "win/wrapped_window_proc.cc",
730 "win/wrapped_window_proc.h",
734 sources += [ "files/file_path_watcher_stub.cc" ]
738 "process/process_handle_freebsd.cc",
739 "process/process_handle_openbsd.cc",
740 "process/process_iterator_freebsd.cc",
741 "process/process_iterator_openbsd.cc",
742 "process/process_metrics_freebsd.cc",
743 "process/process_metrics_openbsd.cc",
744 "sys_info_freebsd.cc",
745 "sys_info_openbsd.cc",
749 "BASE_IMPLEMENTATION",
754 "//base/allocator:allocator_extension_thunks",
755 "//base/third_party/dynamic_annotations",
756 "//base/third_party/nspr",
757 "//third_party/modp_b64",
762 "memory/discardable_memory_ashmem_allocator.cc",
763 "memory/discardable_memory_ashmem_allocator.h",
764 "memory/discardable_memory_ashmem.cc",
765 "memory/discardable_memory_ashmem.h",
768 "base_paths_posix.cc",
769 "power_monitor/power_monitor_device_source_posix.cc",
772 # Android uses some Linux sources, put those back.
773 set_sources_assignment_filter([])
775 "debug/proc_maps_linux.cc",
776 "files/file_path_watcher_linux.cc",
777 "process/memory_linux.cc",
778 "process/internal_linux.cc",
779 "process/process_handle_linux.cc",
780 "process/process_iterator_linux.cc",
781 "process/process_metrics_linux.cc",
782 "posix/unix_domain_socket_linux.cc",
785 set_sources_assignment_filter(sources_assignment_filter)
789 "//third_party/ashmem",
790 "//third_party/android_tools:cpu_features"
793 # logging.cc uses the Android logging library.
797 "debug/stack_trace_posix.cc",
802 # These things would otherwise be built on a Posix build but aren't
805 "debug/stack_trace_posix.cc",
806 "files/file_enumerator_posix.cc",
807 "files/file_util_posix.cc",
808 "message_loop/message_pump_libevent.cc",
809 "process/kill_posix.cc",
810 "process/launch_posix.cc",
811 "process/process_metrics_posix.cc",
812 "process/process_posix.cc",
813 "metrics/field_trial.cc",
814 "native_library_posix.cc",
815 "memory/shared_memory_posix.cc",
816 "sync_socket_posix.cc",
825 "memory/shared_memory_nacl.cc",
832 "event_recorder_stubs.cc",
833 "message_loop/message_pump_libevent.cc",
834 "strings/string16.cc",
835 # Not using sha1_win.cc because it may have caused a
836 # regression to page cycler moz.
840 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
841 #cflags = [ "/wd4267" ]
848 "/DELAYLOAD:powrprof.dll",
850 } else if (!is_nacl) {
852 deps += [ "//third_party/libevent" ]
858 "base_paths_posix.cc",
859 "native_library_posix.cc",
860 "strings/sys_string_conversions_posix.cc",
862 deps += [ "//third_party/mach_override" ]
866 "files/file_path_watcher_fsevents.cc",
867 "files/file_path_watcher_fsevents.h",
868 "files/file_path_watcher_kqueue.cc",
869 "files/file_path_watcher_kqueue.h",
875 # TODO(brettw) this will need to be parameterized at some point.
877 "//build/config/linux:glib",
880 configs += linux_configs
881 all_dependent_configs = linux_configs
883 # These dependencies are not required on Android, and in the case
884 # of xdg_mime must be excluded due to licensing restrictions.
886 "//base/third_party/symbolize",
887 "//base/third_party/xdg_mime",
888 "//base/third_party/xdg_user_dirs",
895 "nix/mime_util_xdg.cc",
896 "nix/mime_util_xdg.h",
904 "message_loop/message_pump_glib.cc",
905 "message_loop/message_pump_glib.h",
910 # This is the subset of files from base that should not be used with a dynamic
911 # library. Note that this library cannot depend on base because base depends on
913 source_set("base_static") {
923 output_name = "base_i18n"
925 "i18n/base_i18n_export.h",
926 "i18n/bidi_line_iterator.cc",
927 "i18n/bidi_line_iterator.h",
928 "i18n/break_iterator.cc",
929 "i18n/break_iterator.h",
930 "i18n/case_conversion.cc",
931 "i18n/case_conversion.h",
932 "i18n/char_iterator.cc",
933 "i18n/char_iterator.h",
934 "i18n/file_util_icu.cc",
935 "i18n/file_util_icu.h",
936 "i18n/i18n_constants.cc",
937 "i18n/i18n_constants.h",
938 "i18n/icu_encoding_detection.cc",
939 "i18n/icu_encoding_detection.h",
940 "i18n/icu_string_conversions.cc",
941 "i18n/icu_string_conversions.h",
944 "i18n/number_formatting.cc",
945 "i18n/number_formatting.h",
948 "i18n/streaming_utf8_validator.cc",
949 "i18n/streaming_utf8_validator.h",
950 "i18n/string_compare.cc",
951 "i18n/string_compare.h",
952 "i18n/string_search.cc",
953 "i18n/string_search.h",
954 "i18n/time_formatting.cc",
955 "i18n/time_formatting.h",
958 "i18n/utf8_validator_tables.cc",
959 "i18n/utf8_validator_tables.h",
961 defines = [ "BASE_I18N_IMPLEMENTATION" ]
962 configs += [ "//build/config/compiler:wexit_time_destructors" ]
965 "//base/third_party/dynamic_annotations",
970 source_set("prefs") {
972 "prefs/base_prefs_export.h",
973 "prefs/default_pref_store.cc",
974 "prefs/default_pref_store.h",
975 "prefs/json_pref_store.cc",
976 "prefs/json_pref_store.h",
977 "prefs/overlay_user_pref_store.cc",
978 "prefs/overlay_user_pref_store.h",
979 "prefs/persistent_pref_store.h",
980 "prefs/pref_change_registrar.cc",
981 "prefs/pref_change_registrar.h",
982 "prefs/pref_filter.h",
983 "prefs/pref_member.cc",
984 "prefs/pref_member.h",
985 "prefs/pref_notifier.h",
986 "prefs/pref_notifier_impl.cc",
987 "prefs/pref_notifier_impl.h",
988 "prefs/pref_observer.h",
989 "prefs/pref_registry.cc",
990 "prefs/pref_registry.h",
991 "prefs/pref_registry_simple.cc",
992 "prefs/pref_registry_simple.h",
993 "prefs/pref_service.cc",
994 "prefs/pref_service.h",
995 "prefs/pref_service_factory.cc",
996 "prefs/pref_service_factory.h",
997 "prefs/pref_store.cc",
998 "prefs/pref_store.h",
999 "prefs/pref_value_map.cc",
1000 "prefs/pref_value_map.h",
1001 "prefs/pref_value_store.cc",
1002 "prefs/pref_value_store.h",
1003 "prefs/scoped_user_pref_update.cc",
1004 "prefs/scoped_user_pref_update.h",
1005 "prefs/value_map_pref_store.cc",
1006 "prefs/value_map_pref_store.h",
1007 "prefs/writeable_pref_store.h",
1010 defines = [ "BASE_PREFS_IMPLEMENTATION" ]
1015 source_set("prefs_test_support") {
1017 "prefs/mock_pref_change_callback.cc",
1018 "prefs/mock_pref_change_callback.h",
1019 "prefs/pref_store_observer_mock.cc",
1020 "prefs/pref_store_observer_mock.h",
1021 "prefs/testing_pref_service.cc",
1022 "prefs/testing_pref_service.h",
1023 "prefs/testing_pref_store.cc",
1024 "prefs/testing_pref_store.h",
1035 source_set("message_loop_tests") {
1037 "message_loop/message_loop_test.cc",
1038 "message_loop/message_loop_test.h",
1047 test("base_unittests") {
1049 "android/application_status_listener_unittest.cc",
1050 "android/jni_android_unittest.cc",
1051 "android/jni_array_unittest.cc",
1052 "android/jni_string_unittest.cc",
1053 "android/path_utils_unittest.cc",
1054 "android/scoped_java_ref_unittest.cc",
1055 "android/sys_utils_unittest.cc",
1056 "async_socket_io_handler_unittest.cc",
1057 "at_exit_unittest.cc",
1058 "atomicops_unittest.cc",
1059 "barrier_closure_unittest.cc",
1060 "base64_unittest.cc",
1061 "big_endian_unittest.cc",
1065 "build_time_unittest.cc",
1066 "callback_helpers_unittest.cc",
1067 "callback_list_unittest.cc",
1068 "callback_list_unittest.nc",
1069 "callback_unittest.cc",
1070 "callback_unittest.nc",
1071 "cancelable_callback_unittest.cc",
1072 "command_line_unittest.cc",
1073 "containers/hash_tables_unittest.cc",
1074 "containers/linked_list_unittest.cc",
1075 "containers/mru_cache_unittest.cc",
1076 "containers/small_map_unittest.cc",
1077 "containers/stack_container_unittest.cc",
1079 "debug/crash_logging_unittest.cc",
1080 "debug/leak_tracker_unittest.cc",
1081 "debug/proc_maps_linux_unittest.cc",
1082 "debug/stack_trace_unittest.cc",
1083 "debug/task_annotator_unittest.cc",
1084 "debug/trace_event_argument_unittest.cc",
1085 "debug/trace_event_memory_unittest.cc",
1086 "debug/trace_event_synthetic_delay_unittest.cc",
1087 "debug/trace_event_system_stats_monitor_unittest.cc",
1088 "debug/trace_event_unittest.cc",
1089 "debug/trace_event_unittest.h",
1090 "debug/trace_event_win_unittest.cc",
1091 "deferred_sequenced_task_runner_unittest.cc",
1092 "environment_unittest.cc",
1093 "file_version_info_unittest.cc",
1094 "files/dir_reader_posix_unittest.cc",
1095 "files/file_path_unittest.cc",
1096 "files/file_proxy_unittest.cc",
1097 "files/file_unittest.cc",
1098 "files/file_util_proxy_unittest.cc",
1099 "files/file_util_unittest.cc",
1100 "files/important_file_writer_unittest.cc",
1101 "files/scoped_temp_dir_unittest.cc",
1102 "gmock_unittest.cc",
1105 "id_map_unittest.cc",
1106 "i18n/break_iterator_unittest.cc",
1107 "i18n/char_iterator_unittest.cc",
1108 "i18n/case_conversion_unittest.cc",
1109 "i18n/file_util_icu_unittest.cc",
1110 "i18n/icu_string_conversions_unittest.cc",
1111 "i18n/number_formatting_unittest.cc",
1112 "i18n/rtl_unittest.cc",
1113 "i18n/streaming_utf8_validator_unittest.cc",
1114 "i18n/string_search_unittest.cc",
1115 "i18n/time_formatting_unittest.cc",
1116 "i18n/timezone_unittest.cc",
1117 "ios/device_util_unittest.mm",
1118 "json/json_parser_unittest.cc",
1119 "json/json_reader_unittest.cc",
1120 "json/json_value_converter_unittest.cc",
1121 "json/json_value_serializer_unittest.cc",
1122 "json/json_writer_unittest.cc",
1123 "json/string_escape_unittest.cc",
1124 "lazy_instance_unittest.cc",
1125 "logging_unittest.cc",
1126 "mac/bind_objc_block_unittest.mm",
1127 "mac/foundation_util_unittest.mm",
1128 "mac/libdispatch_task_runner_unittest.cc",
1129 "mac/mac_util_unittest.mm",
1130 "mac/objc_property_releaser_unittest.mm",
1131 "mac/scoped_nsobject_unittest.mm",
1132 "mac/scoped_objc_class_swizzler_unittest.mm",
1133 "mac/scoped_sending_event_unittest.mm",
1135 "memory/aligned_memory_unittest.cc",
1136 "memory/discardable_memory_manager_unittest.cc",
1137 "memory/discardable_memory_unittest.cc",
1138 "memory/linked_ptr_unittest.cc",
1139 "memory/ref_counted_memory_unittest.cc",
1140 "memory/ref_counted_unittest.cc",
1141 "memory/scoped_ptr_unittest.cc",
1142 "memory/scoped_ptr_unittest.nc",
1143 "memory/scoped_vector_unittest.cc",
1144 "memory/shared_memory_unittest.cc",
1145 "memory/singleton_unittest.cc",
1146 "memory/weak_ptr_unittest.cc",
1147 "memory/weak_ptr_unittest.nc",
1148 "message_loop/message_loop_proxy_impl_unittest.cc",
1149 "message_loop/message_loop_proxy_unittest.cc",
1150 "message_loop/message_loop_unittest.cc",
1151 "message_loop/message_pump_glib_unittest.cc",
1152 "message_loop/message_pump_io_ios_unittest.cc",
1153 "metrics/sample_map_unittest.cc",
1154 "metrics/sample_vector_unittest.cc",
1155 "metrics/bucket_ranges_unittest.cc",
1156 "metrics/field_trial_unittest.cc",
1157 "metrics/histogram_base_unittest.cc",
1158 "metrics/histogram_delta_serialization_unittest.cc",
1159 "metrics/histogram_snapshot_manager_unittest.cc",
1160 "metrics/histogram_unittest.cc",
1161 "metrics/sparse_histogram_unittest.cc",
1162 "metrics/stats_table_unittest.cc",
1163 "metrics/statistics_recorder_unittest.cc",
1164 "observer_list_unittest.cc",
1165 "os_compat_android_unittest.cc",
1166 "path_service_unittest.cc",
1167 "pickle_unittest.cc",
1168 "posix/file_descriptor_shuffle_unittest.cc",
1169 "posix/unix_domain_socket_linux_unittest.cc",
1170 "power_monitor/power_monitor_unittest.cc",
1171 "prefs/default_pref_store_unittest.cc",
1172 "prefs/json_pref_store_unittest.cc",
1173 "prefs/overlay_user_pref_store_unittest.cc",
1174 "prefs/pref_change_registrar_unittest.cc",
1175 "prefs/pref_member_unittest.cc",
1176 "prefs/pref_notifier_impl_unittest.cc",
1177 "prefs/pref_service_unittest.cc",
1178 "prefs/pref_value_map_unittest.cc",
1179 "prefs/pref_value_store_unittest.cc",
1180 "prefs/scoped_user_pref_update_unittest.cc",
1181 "process/memory_unittest.cc",
1182 "process/memory_unittest_mac.h",
1183 "process/memory_unittest_mac.mm",
1184 "process/process_metrics_unittest.cc",
1185 "process/process_metrics_unittest_ios.cc",
1186 "process/process_util_unittest.cc",
1187 "process/process_util_unittest_ios.cc",
1188 "profiler/tracked_time_unittest.cc",
1189 "rand_util_unittest.cc",
1190 "numerics/safe_numerics_unittest.cc",
1191 "scoped_clear_errno_unittest.cc",
1192 "scoped_generic_unittest.cc",
1193 "scoped_native_library_unittest.cc",
1194 "security_unittest.cc",
1195 "sequence_checker_unittest.cc",
1197 "stl_util_unittest.cc",
1198 "strings/nullable_string16_unittest.cc",
1199 "strings/safe_sprintf_unittest.cc",
1200 "strings/string16_unittest.cc",
1201 "strings/stringprintf_unittest.cc",
1202 "strings/string_number_conversions_unittest.cc",
1203 "strings/string_piece_unittest.cc",
1204 "strings/string_split_unittest.cc",
1205 "strings/string_tokenizer_unittest.cc",
1206 "strings/string_util_unittest.cc",
1207 "strings/stringize_macros_unittest.cc",
1208 "strings/sys_string_conversions_mac_unittest.mm",
1209 "strings/sys_string_conversions_unittest.cc",
1210 "strings/utf_offset_string_conversions_unittest.cc",
1211 "strings/utf_string_conversions_unittest.cc",
1212 "supports_user_data_unittest.cc",
1213 "sync_socket_unittest.cc",
1214 "synchronization/cancellation_flag_unittest.cc",
1215 "synchronization/condition_variable_unittest.cc",
1216 "synchronization/lock_unittest.cc",
1217 "synchronization/waitable_event_unittest.cc",
1218 "synchronization/waitable_event_watcher_unittest.cc",
1219 "sys_info_unittest.cc",
1220 "system_monitor/system_monitor_unittest.cc",
1221 "task/cancelable_task_tracker_unittest.cc",
1222 "task_runner_util_unittest.cc",
1223 "template_util_unittest.cc",
1224 "test/expectations/expectation_unittest.cc",
1225 "test/expectations/parser_unittest.cc",
1226 "test/histogram_tester_unittest.cc",
1227 "test/test_reg_util_win_unittest.cc",
1228 "test/trace_event_analyzer_unittest.cc",
1229 "threading/non_thread_safe_unittest.cc",
1230 "threading/platform_thread_unittest.cc",
1231 "threading/sequenced_worker_pool_unittest.cc",
1232 "threading/simple_thread_unittest.cc",
1233 "threading/thread_checker_unittest.cc",
1234 "threading/thread_collision_warner_unittest.cc",
1235 "threading/thread_id_name_manager_unittest.cc",
1236 "threading/thread_local_storage_unittest.cc",
1237 "threading/thread_local_unittest.cc",
1238 "threading/thread_unittest.cc",
1239 "threading/watchdog_unittest.cc",
1240 "threading/worker_pool_posix_unittest.cc",
1241 "threading/worker_pool_unittest.cc",
1242 "time/pr_time_unittest.cc",
1243 "time/time_unittest.cc",
1244 "time/time_win_unittest.cc",
1245 "timer/hi_res_timer_manager_unittest.cc",
1246 "timer/mock_timer_unittest.cc",
1247 "timer/timer_unittest.cc",
1248 "tools_sanity_unittest.cc",
1249 "tracked_objects_unittest.cc",
1250 "tuple_unittest.cc",
1251 "values_unittest.cc",
1252 "version_unittest.cc",
1255 "win/enum_variant_unittest.cc",
1256 "win/event_trace_consumer_unittest.cc",
1257 "win/event_trace_controller_unittest.cc",
1258 "win/event_trace_provider_unittest.cc",
1259 "win/i18n_unittest.cc",
1260 "win/iunknown_impl_unittest.cc",
1261 "win/message_window_unittest.cc",
1262 "win/object_watcher_unittest.cc",
1263 "win/pe_image_unittest.cc",
1264 "win/registry_unittest.cc",
1265 "win/scoped_bstr_unittest.cc",
1266 "win/scoped_comptr_unittest.cc",
1267 "win/scoped_process_information_unittest.cc",
1268 "win/scoped_variant_unittest.cc",
1269 "win/shortcut_unittest.cc",
1270 "win/startup_information_unittest.cc",
1271 "win/win_util_unittest.cc",
1272 "win/wrapped_window_proc_unittest.cc",
1278 ":message_loop_tests",
1280 ":prefs_test_support",
1282 "//base/test:run_all_unittests",
1283 "//base/test:test_support",
1284 "//base/third_party/dynamic_annotations",
1287 "//third_party/icu",
1292 "metrics/stats_table_uinittest.cc", # Requires spawning a process.
1293 "process/memory_unittest.cc",
1294 "process/memory_unittest_mac.h",
1295 "process/memory_unittest_mac.mm",
1296 "process/process_util_unittest.cc",
1299 # Pull in specific Mac files for iOS (which have been filtered out by file
1301 set_sources_assignment_filter([])
1303 "mac/bind_objc_block_unittest.mm",
1304 "mac/foundation_util_unittest.mm",
1305 "mac/objc_property_releaser_unittest.mm",
1306 "mac/scoped_nsobject_unittest.mm",
1307 "sys_string_conversions_mac_unittest.mm",
1309 set_sources_assignment_filter(sources_assignment_filter)
1311 # TODO(GYP): dep on copy_test_data_ios action.
1315 sources -= [ "file_version_info_unittest.cc" ]
1316 sources += [ "nix/xdg_util_unittest.cc" ]
1317 defines = [ "USE_SYMBOLIZE" ]
1318 configs += [ "//build/config/linux:glib" ]
1321 if (!is_linux || use_ozone) {
1322 sources -= [ "message_loop/message_pump_glib_unittest.cc" ]
1325 if (is_posix || is_ios) {
1326 sources += [ "message_loop/message_pump_libevent_unittest.cc" ]
1327 deps += [ "//third_party/libevent" ]
1331 set_sources_assignment_filter([])
1332 sources += [ "debug/proc_maps_linux_unittest.cc" ]
1333 set_sources_assignment_filter(sources_assignment_filter)
1338 generate_jni("base_jni_headers") {
1340 "android/java/src/org/chromium/base/ApplicationStatus.java",
1341 "android/java/src/org/chromium/base/BuildInfo.java",
1342 "android/java/src/org/chromium/base/CommandLine.java",
1343 "android/java/src/org/chromium/base/ContentUriUtils.java",
1344 "android/java/src/org/chromium/base/CpuFeatures.java",
1345 "android/java/src/org/chromium/base/EventLog.java",
1346 "android/java/src/org/chromium/base/FieldTrialList.java",
1347 "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java",
1348 "android/java/src/org/chromium/base/JNIUtils.java",
1349 "android/java/src/org/chromium/base/library_loader/LibraryLoader.java",
1350 "android/java/src/org/chromium/base/MemoryPressureListener.java",
1351 "android/java/src/org/chromium/base/JavaHandlerThread.java",
1352 "android/java/src/org/chromium/base/PathService.java",
1353 "android/java/src/org/chromium/base/PathUtils.java",
1354 "android/java/src/org/chromium/base/PowerMonitor.java",
1355 "android/java/src/org/chromium/base/SystemMessageHandler.java",
1356 "android/java/src/org/chromium/base/SysUtils.java",
1357 "android/java/src/org/chromium/base/ThreadUtils.java",
1358 "android/java/src/org/chromium/base/TraceEvent.java",
1360 jni_package = "base"
1363 android_library("base_java") {
1365 ":base_java_application_state",
1366 ":base_java_memory_pressure_level_list",
1367 ":base_native_libraries_gen",
1371 "//third_party/jsr-305:jsr_305_javalib"
1375 "android/java/src/org/chromium/base/BaseChromiumApplication.java",
1376 "android/java/src/org/chromium/base/JavaHandlerThread.java",
1377 "android/java/src/org/chromium/base/PathService.java",
1378 "android/java/src/org/chromium/base/CollectionUtil.java",
1379 "android/java/src/org/chromium/base/PathUtils.java",
1380 "android/java/src/org/chromium/base/library_loader/ProcessInitException.java",
1381 "android/java/src/org/chromium/base/library_loader/LoaderErrors.java",
1382 "android/java/src/org/chromium/base/library_loader/LibraryLoader.java",
1383 "android/java/src/org/chromium/base/library_loader/Linker.java",
1384 "android/java/src/org/chromium/base/library_loader/LibraryLoaderHelper.java",
1385 "android/java/src/org/chromium/base/ThreadUtils.java",
1386 "android/java/src/org/chromium/base/CpuFeatures.java",
1387 "android/java/src/org/chromium/base/CalledByNative.java",
1388 "android/java/src/org/chromium/base/PowerMonitor.java",
1389 "android/java/src/org/chromium/base/CommandLine.java",
1390 "android/java/src/org/chromium/base/SystemMessageHandler.java",
1391 "android/java/src/org/chromium/base/ContentUriUtils.java",
1392 "android/java/src/org/chromium/base/WindowCallbackWrapper.java",
1393 "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java",
1394 "android/java/src/org/chromium/base/BaseSwitches.java",
1395 "android/java/src/org/chromium/base/SysUtils.java",
1396 "android/java/src/org/chromium/base/PowerStatusReceiver.java",
1397 "android/java/src/org/chromium/base/ObserverList.java",
1398 "android/java/src/org/chromium/base/PerfTraceEvent.java",
1399 "android/java/src/org/chromium/base/BuildInfo.java",
1400 "android/java/src/org/chromium/base/TraceEvent.java",
1401 "android/java/src/org/chromium/base/AccessedByNative.java",
1402 "android/java/src/org/chromium/base/JNINamespace.java",
1403 "android/java/src/org/chromium/base/CalledByNativeUnchecked.java",
1404 "android/java/src/org/chromium/base/MemoryPressureListener.java",
1405 "android/java/src/org/chromium/base/NativeClassQualifiedName.java",
1406 "android/java/src/org/chromium/base/ActivityState.java",
1407 "android/java/src/org/chromium/base/ApplicationStatus.java",
1408 "android/java/src/org/chromium/base/ApiCompatibilityUtils.java",
1411 # A new version of NativeLibraries.java (with the actual correct values)
1412 # will be created when creating an apk.
1413 jar_excluded_patterns = [
1414 "*/NativeLibraries.class",
1415 "*/NativeLibraries##*.class",
1419 java_cpp_template("base_java_application_state") {
1421 "android/java/src/org/chromium/base/ApplicationState.template",
1424 "android/application_state_list.h"
1427 package_name = "org/chromium/base"
1430 java_cpp_template("base_java_memory_pressure_level_list") {
1432 "android/java/src/org/chromium/base/MemoryPressureLevelList.template",
1435 "memory/memory_pressure_level_list.h"
1438 package_name = "org/chromium/base"
1441 java_cpp_template("base_native_libraries_gen") {
1443 "android/java/templates/NativeLibraries.template",
1445 package_name = "org/chromium/base/library_loader"
1448 android_library("base_java_unittest_support") {
1449 deps = [":base_java"]
1451 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java"
1455 unittest_apk("base_unittests_apk") {
1458 ":base_java_unittest_support",
1461 unittests_dep = ":base_unittests"