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_portable.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/adapters.h",
123 "containers/hash_tables.h",
124 "containers/linked_list.h",
125 "containers/mru_cache.h",
126 "containers/small_map.h",
127 "containers/stack_container.h",
130 "critical_closure.h",
131 "critical_closure_internal_ios.mm",
134 "debug/asan_invalid_access.cc",
135 "debug/asan_invalid_access.h",
136 "debug/crash_logging.cc",
137 "debug/crash_logging.h",
140 "debug/debugger_posix.cc",
141 "debug/debugger_win.cc",
142 "debug/dump_without_crashing.cc",
143 "debug/dump_without_crashing.h",
144 "debug/gdi_debug_util_win.cc",
145 "debug/gdi_debug_util_win.h",
146 # This file depends on files from the "allocator" target,
147 # but this target does not depend on "allocator" (see
148 # allocator.gyp for details).
149 "debug/leak_annotations.h",
150 "debug/leak_tracker.h",
151 "debug/proc_maps_linux.cc",
152 "debug/proc_maps_linux.h",
155 "debug/stack_trace.cc",
156 "debug/stack_trace.h",
157 "debug/stack_trace_android.cc",
158 "debug/stack_trace_posix.cc",
159 "debug/stack_trace_win.cc",
160 "debug/task_annotator.cc",
161 "debug/task_annotator.h",
162 "debug/trace_event.h",
163 "debug/trace_event_android.cc",
164 "debug/trace_event_argument.cc",
165 "debug/trace_event_argument.h",
166 "debug/trace_event_impl.cc",
167 "debug/trace_event_impl.h",
168 "debug/trace_event_impl_constants.cc",
169 "debug/trace_event_memory.cc",
170 "debug/trace_event_memory.h",
171 "debug/trace_event_synthetic_delay.cc",
172 "debug/trace_event_synthetic_delay.h",
173 "debug/trace_event_system_stats_monitor.cc",
174 "debug/trace_event_system_stats_monitor.h",
175 "debug/trace_event_win.cc",
176 "deferred_sequenced_task_runner.cc",
177 "deferred_sequenced_task_runner.h",
181 "event_recorder_stubs.cc",
182 "event_recorder_win.cc",
183 "file_descriptor_posix.h",
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.cc",
215 "files/file_util_android.cc",
216 "files/file_util_linux.cc",
217 "files/file_util_mac.mm",
218 "files/file_util_posix.cc",
219 "files/file_util_proxy.cc",
220 "files/file_util_proxy.h",
221 "files/file_util_win.cc",
222 "files/important_file_writer.cc",
223 "files/important_file_writer.h",
224 "files/memory_mapped_file.cc",
225 "files/memory_mapped_file.h",
226 "files/memory_mapped_file_posix.cc",
227 "files/memory_mapped_file_win.cc",
228 "files/scoped_file.cc",
229 "files/scoped_file.h",
230 "files/scoped_temp_dir.cc",
231 "files/scoped_temp_dir.h",
243 "ios/device_util.mm",
246 "ios/scoped_critical_action.h",
247 "ios/scoped_critical_action.mm",
248 "json/json_file_value_serializer.cc",
249 "json/json_file_value_serializer.h",
250 "json/json_parser.cc",
251 "json/json_parser.h",
252 "json/json_reader.cc",
253 "json/json_reader.h",
254 "json/json_string_value_serializer.cc",
255 "json/json_string_value_serializer.h",
256 "json/json_value_converter.h",
257 "json/json_writer.cc",
258 "json/json_writer.h",
259 "json/string_escape.cc",
260 "json/string_escape.h",
271 "mac/authorization_util.h",
272 "mac/authorization_util.mm",
273 "mac/bind_objc_block.h",
274 "mac/bundle_locations.h",
275 "mac/bundle_locations.mm",
276 "mac/cocoa_protocols.h",
277 "mac/foundation_util.h",
278 "mac/foundation_util.mm",
279 "mac/launch_services_util.cc",
280 "mac/launch_services_util.h",
283 "mac/libdispatch_task_runner.cc",
284 "mac/libdispatch_task_runner.h",
286 "mac/mac_logging.cc",
289 "mac/mach_logging.cc",
290 "mac/mach_logging.h",
291 "mac/objc_property_releaser.h",
292 "mac/objc_property_releaser.mm",
293 "mac/os_crash_dumps.cc",
294 "mac/os_crash_dumps.h",
295 "mac/scoped_aedesc.h",
296 "mac/scoped_authorizationref.h",
297 "mac/scoped_block.h",
298 "mac/scoped_cftyperef.h",
299 "mac/scoped_ioobject.h",
300 "mac/scoped_ioplugininterface.h",
301 "mac/scoped_launch_data.h",
302 "mac/scoped_mach_port.cc",
303 "mac/scoped_mach_port.h",
304 "mac/scoped_mach_vm.cc",
305 "mac/scoped_mach_vm.h",
306 "mac/scoped_nsautorelease_pool.h",
307 "mac/scoped_nsautorelease_pool.mm",
308 "mac/scoped_nsexception_enabler.h",
309 "mac/scoped_nsexception_enabler.mm",
310 "mac/scoped_nsobject.h",
311 "mac/scoped_objc_class_swizzler.h",
312 "mac/scoped_objc_class_swizzler.mm",
313 "mac/scoped_sending_event.h",
314 "mac/scoped_sending_event.mm",
315 "mac/sdk_forward_declarations.h",
319 "memory/aligned_memory.cc",
320 "memory/aligned_memory.h",
321 "memory/discardable_memory.cc",
322 "memory/discardable_memory.h",
323 "memory/discardable_memory_android.cc",
324 "memory/discardable_memory_emulated.cc",
325 "memory/discardable_memory_emulated.h",
326 "memory/discardable_memory_linux.cc",
327 "memory/discardable_memory_mac.cc",
328 "memory/discardable_memory_manager.cc",
329 "memory/discardable_memory_manager.h",
330 "memory/discardable_memory_win.cc",
331 "memory/linked_ptr.h",
332 "memory/manual_constructor.h",
333 "memory/memory_pressure_listener.cc",
334 "memory/memory_pressure_listener.h",
335 "memory/raw_scoped_refptr_mismatch_checker.h",
336 "memory/ref_counted.cc",
337 "memory/ref_counted.h",
338 "memory/ref_counted_delete_on_message_loop.h",
339 "memory/ref_counted_memory.cc",
340 "memory/ref_counted_memory.h",
341 "memory/scoped_open_process.h",
342 "memory/scoped_policy.h",
343 "memory/scoped_ptr.h",
344 "memory/scoped_vector.h",
345 "memory/shared_memory.h",
346 "memory/shared_memory_android.cc",
347 "memory/shared_memory_nacl.cc",
348 "memory/shared_memory_posix.cc",
349 "memory/shared_memory_win.cc",
350 "memory/singleton.cc",
351 "memory/singleton.h",
352 "memory/weak_ptr.cc",
354 "message_loop/incoming_task_queue.cc",
355 "message_loop/incoming_task_queue.h",
356 "message_loop/message_loop.cc",
357 "message_loop/message_loop.h",
358 "message_loop/message_loop_proxy.cc",
359 "message_loop/message_loop_proxy.h",
360 "message_loop/message_loop_proxy_impl.cc",
361 "message_loop/message_loop_proxy_impl.h",
362 "message_loop/message_pump.cc",
363 "message_loop/message_pump.h",
364 "message_loop/message_pump_android.cc",
365 "message_loop/message_pump_android.h",
366 "message_loop/message_pump_default.cc",
367 "message_loop/message_pump_default.h",
368 "message_loop/message_pump_glib.cc",
369 "message_loop/message_pump_glib.h",
370 "message_loop/message_pump_io_ios.cc",
371 "message_loop/message_pump_io_ios.h",
372 "message_loop/message_pump_libevent.cc",
373 "message_loop/message_pump_libevent.h",
374 "message_loop/message_pump_mac.h",
375 "message_loop/message_pump_mac.mm",
376 "message_loop/message_pump_win.cc",
377 "message_loop/message_pump_win.h",
378 "metrics/field_trial.cc",
379 "metrics/field_trial.h",
380 "metrics/sample_map.cc",
381 "metrics/sample_map.h",
382 "metrics/sample_vector.cc",
383 "metrics/sample_vector.h",
384 "metrics/bucket_ranges.cc",
385 "metrics/bucket_ranges.h",
386 "metrics/histogram.cc",
387 "metrics/histogram.h",
388 "metrics/histogram_base.cc",
389 "metrics/histogram_base.h",
390 "metrics/histogram_delta_serialization.cc",
391 "metrics/histogram_delta_serialization.",
392 "metrics/histogram_flattener.h",
393 "metrics/histogram_samples.cc",
394 "metrics/histogram_samples.h",
395 "metrics/histogram_snapshot_manager.cc",
396 "metrics/histogram_snapshot_manager.h",
397 "metrics/sparse_histogram.cc",
398 "metrics/sparse_histogram.h",
399 "metrics/statistics_recorder.cc",
400 "metrics/statistics_recorder.h",
401 "metrics/stats_counters.cc",
402 "metrics/stats_counters.h",
403 "metrics/stats_table.cc",
404 "metrics/stats_table.h",
405 "metrics/user_metrics.cc",
406 "metrics/user_metrics.h",
407 "metrics/user_metrics_action.h",
410 "native_library_mac.mm",
411 "native_library_posix.cc",
412 "native_library_win.cc",
413 "numerics/safe_conversions.h",
414 "numerics/safe_conversions_impl.h",
415 "numerics/safe_math.h",
416 "numerics/safe_math_impl.h",
417 "nix/mime_util_xdg.cc",
418 "nix/mime_util_xdg.h",
422 "observer_list_threadsafe.h",
423 "os_compat_android.cc",
424 "os_compat_android.h",
434 "posix/eintr_wrapper.h",
435 "posix/file_descriptor_shuffle.cc",
436 "posix/global_descriptors.cc",
437 "posix/global_descriptors.h",
438 "posix/unix_domain_socket_linux.cc",
439 "posix/unix_domain_socket_linux.h",
440 "power_monitor/power_monitor.cc",
441 "power_monitor/power_monitor.h",
442 "power_monitor/power_monitor_device_source.cc",
443 "power_monitor/power_monitor_device_source.h",
444 "power_monitor/power_monitor_device_source_android.cc",
445 "power_monitor/power_monitor_device_source_android.h",
446 "power_monitor/power_monitor_device_source_chromeos.cc",
447 "power_monitor/power_monitor_device_source_ios.mm",
448 "power_monitor/power_monitor_device_source_mac.mm",
449 "power_monitor/power_monitor_device_source_posix.cc",
450 "power_monitor/power_monitor_device_source_win.cc",
451 "power_monitor/power_monitor_source.cc",
452 "power_monitor/power_monitor_source.h",
453 "power_monitor/power_observer.h",
454 "process/internal_linux.cc",
455 "process/internal_linux.h",
458 "process/kill_mac.cc",
459 "process/kill_posix.cc",
460 "process/kill_win.cc",
463 "process/launch_ios.cc",
464 "process/launch_mac.cc",
465 "process/launch_posix.cc",
466 "process/launch_win.cc",
469 "process/memory_linux.cc",
470 "process/memory_mac.mm",
471 "process/memory_win.cc",
473 "process/process_handle_freebsd.cc",
474 "process/process_handle_linux.cc",
475 "process/process_handle_mac.cc",
476 "process/process_handle_openbsd.cc",
477 "process/process_handle_posix.cc",
478 "process/process_handle_win.cc",
479 "process/process_info.h",
480 "process/process_info_linux.cc",
481 "process/process_info_mac.cc",
482 "process/process_info_win.cc",
483 "process/process_iterator.cc",
484 "process/process_iterator.h",
485 "process/process_iterator_freebsd.cc",
486 "process/process_iterator_linux.cc",
487 "process/process_iterator_mac.cc",
488 "process/process_iterator_openbsd.cc",
489 "process/process_iterator_win.cc",
490 "process/process_linux.cc",
491 "process/process_metrics.cc",
492 "process/process_metrics.h",
493 "process/process_metrics_freebsd.cc",
494 "process/process_metrics_ios.cc",
495 "process/process_metrics_linux.cc",
496 "process/process_metrics_mac.cc",
497 "process/process_metrics_openbsd.cc",
498 "process/process_metrics_posix.cc",
499 "process/process_metrics_win.cc",
500 "process/process_posix.cc",
501 "process/process_win.cc",
502 "profiler/scoped_profile.cc",
503 "profiler/scoped_profile.h",
504 "profiler/alternate_timer.cc",
505 "profiler/alternate_timer.h",
506 "profiler/tracked_time.cc",
507 "profiler/tracked_time.h",
511 "rand_util_posix.cc",
515 "safe_strerror_posix.cc",
516 "safe_strerror_posix.h",
518 "scoped_native_library.cc",
519 "scoped_native_library.h",
521 "sequence_checker.h",
522 "sequence_checker_impl.cc",
523 "sequence_checker_impl.h",
524 "sequenced_task_runner.cc",
525 "sequenced_task_runner.h",
526 "sequenced_task_runner_helpers.h",
530 "single_thread_task_runner.h",
532 "strings/latin1_string_conversions.cc",
533 "strings/latin1_string_conversions.h",
534 "strings/nullable_string16.cc",
535 "strings/nullable_string16.h",
536 "strings/safe_sprintf.cc",
537 "strings/safe_sprintf.h",
538 "strings/string16.cc",
539 "strings/string16.h",
540 "strings/string_number_conversions.cc",
541 "strings/string_split.cc",
542 "strings/string_split.h",
543 "strings/string_number_conversions.h",
544 "strings/string_piece.cc",
545 "strings/string_piece.h",
546 "strings/string_tokenizer.h",
547 "strings/string_util.cc",
548 "strings/string_util.h",
549 "strings/string_util_constants.cc",
550 "strings/string_util_posix.h",
551 "strings/string_util_win.h",
552 "strings/stringize_macros.h",
553 "strings/stringprintf.cc",
554 "strings/stringprintf.h",
555 "strings/sys_string_conversions.h",
556 "strings/sys_string_conversions_mac.mm",
557 "strings/sys_string_conversions_posix.cc",
558 "strings/sys_string_conversions_win.cc",
559 "strings/utf_offset_string_conversions.cc",
560 "strings/utf_offset_string_conversions.h",
561 "strings/utf_string_conversion_utils.cc",
562 "strings/utf_string_conversion_utils.h",
563 "strings/utf_string_conversions.cc",
564 "strings/utf_string_conversions.h",
565 "supports_user_data.cc",
566 "supports_user_data.h",
568 "sync_socket_posix.cc",
569 "sync_socket_win.cc",
570 "synchronization/cancellation_flag.cc",
571 "synchronization/cancellation_flag.h",
572 "synchronization/condition_variable.h",
573 "synchronization/condition_variable_posix.cc",
574 "synchronization/condition_variable_win.cc",
575 "synchronization/lock.cc",
576 "synchronization/lock.h",
577 "synchronization/lock_impl.h",
578 "synchronization/lock_impl_posix.cc",
579 "synchronization/lock_impl_win.cc",
580 "synchronization/spin_wait.h",
581 "synchronization/waitable_event.h",
582 "synchronization/waitable_event_posix.cc",
583 "synchronization/waitable_event_watcher.h",
584 "synchronization/waitable_event_watcher_posix.cc",
585 "synchronization/waitable_event_watcher_win.cc",
586 "synchronization/waitable_event_win.cc",
587 "system_monitor/system_monitor.cc",
588 "system_monitor/system_monitor.h",
592 "sys_info_android.cc",
593 "sys_info_chromeos.cc",
594 "sys_info_freebsd.cc",
598 "sys_info_openbsd.cc",
601 "task/cancelable_task_tracker.cc",
602 "task/cancelable_task_tracker.h",
605 "task_runner_util.h",
607 "thread_task_runner_handle.cc",
608 "thread_task_runner_handle.h",
609 "threading/non_thread_safe.h",
610 "threading/non_thread_safe_impl.cc",
611 "threading/non_thread_safe_impl.h",
612 "threading/platform_thread.h",
613 "threading/platform_thread_android.cc",
614 "threading/platform_thread_linux.cc",
615 "threading/platform_thread_mac.mm",
616 "threading/platform_thread_posix.cc",
617 "threading/platform_thread_win.cc",
618 "threading/post_task_and_reply_impl.cc",
619 "threading/post_task_and_reply_impl.h",
620 "threading/sequenced_worker_pool.cc",
621 "threading/sequenced_worker_pool.h",
622 "threading/simple_thread.cc",
623 "threading/simple_thread.h",
624 "threading/thread.cc",
625 "threading/thread.h",
626 "threading/thread_checker.h",
627 "threading/thread_checker_impl.cc",
628 "threading/thread_checker_impl.h",
629 "threading/thread_collision_warner.cc",
630 "threading/thread_collision_warner.h",
631 "threading/thread_id_name_manager.cc",
632 "threading/thread_id_name_manager.h",
633 "threading/thread_local.h",
634 "threading/thread_local_android.cc",
635 "threading/thread_local_posix.cc",
636 "threading/thread_local_storage.cc",
637 "threading/thread_local_storage.h",
638 "threading/thread_local_storage_posix.cc",
639 "threading/thread_local_storage_win.cc",
640 "threading/thread_local_win.cc",
641 "threading/thread_restrictions.h",
642 "threading/thread_restrictions.cc",
643 "threading/watchdog.cc",
644 "threading/watchdog.h",
645 "threading/worker_pool.h",
646 "threading/worker_pool.cc",
647 "threading/worker_pool_posix.cc",
648 "threading/worker_pool_posix.h",
649 "threading/worker_pool_win.cc",
652 "time/default_clock.cc",
653 "time/default_clock.h",
654 "time/default_tick_clock.cc",
655 "time/default_tick_clock.h",
656 "time/tick_clock.cc",
661 "time/time_posix.cc",
663 "timer/elapsed_timer.cc",
664 "timer/elapsed_timer.h",
665 "timer/hi_res_timer_manager.h",
666 "timer/hi_res_timer_manager_posix.cc",
667 "timer/hi_res_timer_manager_win.cc",
668 "timer/mock_timer.cc",
669 "timer/mock_timer.h",
672 "tracked_objects.cc",
679 "value_conversions.cc",
680 "value_conversions.h",
685 "win/enum_variant.cc",
686 "win/enum_variant.h",
687 "win/event_trace_consumer.h",
688 "win/event_trace_controller.cc",
689 "win/event_trace_controller.h",
690 "win/event_trace_provider.cc",
691 "win/event_trace_provider.h",
694 "win/iat_patch_function.cc",
695 "win/iat_patch_function.h",
696 "win/iunknown_impl.cc",
697 "win/iunknown_impl.h",
698 "win/message_window.cc",
699 "win/message_window.h",
702 "win/object_watcher.cc",
703 "win/object_watcher.h",
706 "win/resource_util.cc",
707 "win/resource_util.h",
708 "win/scoped_bstr.cc",
710 "win/scoped_co_mem.h",
711 "win/scoped_com_initializer.h",
712 "win/scoped_comptr.h",
713 "win/scoped_gdi_object.h",
714 "win/scoped_handle.cc",
715 "win/scoped_handle.h",
717 "win/scoped_hglobal.h",
718 "win/scoped_process_information.cc",
719 "win/scoped_process_information.h",
720 "win/scoped_propvariant.h",
721 "win/scoped_select_object.h",
722 "win/scoped_variant.cc",
723 "win/scoped_variant.h",
726 "win/startup_information.cc",
727 "win/startup_information.h",
730 "win/windows_version.cc",
731 "win/windows_version.h",
732 "win/wrapped_window_proc.cc",
733 "win/wrapped_window_proc.h",
737 sources += [ "files/file_path_watcher_stub.cc" ]
741 "process/process_handle_freebsd.cc",
742 "process/process_handle_openbsd.cc",
743 "process/process_iterator_freebsd.cc",
744 "process/process_iterator_openbsd.cc",
745 "process/process_metrics_freebsd.cc",
746 "process/process_metrics_openbsd.cc",
747 "sys_info_freebsd.cc",
748 "sys_info_openbsd.cc",
752 "BASE_IMPLEMENTATION",
757 "//base/allocator:allocator_extension_thunks",
758 "//base/third_party/dynamic_annotations",
759 "//base/third_party/nspr",
760 "//third_party/modp_b64",
765 "memory/discardable_memory_ashmem_allocator.cc",
766 "memory/discardable_memory_ashmem_allocator.h",
767 "memory/discardable_memory_ashmem.cc",
768 "memory/discardable_memory_ashmem.h",
771 "base_paths_posix.cc",
772 "power_monitor/power_monitor_device_source_posix.cc",
775 # Android uses some Linux sources, put those back.
776 set_sources_assignment_filter([])
778 "debug/proc_maps_linux.cc",
779 "files/file_path_watcher_linux.cc",
780 "process/memory_linux.cc",
781 "process/internal_linux.cc",
782 "process/process_handle_linux.cc",
783 "process/process_iterator_linux.cc",
784 "process/process_metrics_linux.cc",
785 "posix/unix_domain_socket_linux.cc",
788 set_sources_assignment_filter(sources_assignment_filter)
792 "//third_party/ashmem",
793 "//third_party/android_tools:cpu_features"
796 # logging.cc uses the Android logging library.
800 "debug/stack_trace_posix.cc",
806 "power_monitor/power_monitor_device_source_posix.cc",
811 # These things would otherwise be built on a Posix build but aren't
814 "debug/stack_trace_posix.cc",
815 "files/file_enumerator_posix.cc",
816 "files/file_util_posix.cc",
817 "message_loop/message_pump_libevent.cc",
818 "process/kill_posix.cc",
819 "process/launch_posix.cc",
820 "process/process_metrics_posix.cc",
821 "process/process_posix.cc",
822 "metrics/field_trial.cc",
823 "native_library_posix.cc",
824 "memory/shared_memory_posix.cc",
825 "sync_socket_posix.cc",
834 "memory/shared_memory_nacl.cc",
841 "event_recorder_stubs.cc",
842 "message_loop/message_pump_libevent.cc",
843 "strings/string16.cc",
844 # Not using sha1_win.cc because it may have caused a
845 # regression to page cycler moz.
849 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
850 #cflags = [ "/wd4267" ]
857 "/DELAYLOAD:powrprof.dll",
859 } else if (!is_nacl) {
861 deps += [ "//third_party/libevent" ]
867 "memory/discardable_memory_mach.cc",
868 "memory/discardable_memory_mach.h",
871 "base_paths_posix.cc",
872 "native_library_posix.cc",
873 "strings/sys_string_conversions_posix.cc",
875 deps += [ "//third_party/mach_override" ]
879 "files/file_path_watcher_fsevents.cc",
880 "files/file_path_watcher_fsevents.h",
881 "files/file_path_watcher_kqueue.cc",
882 "files/file_path_watcher_kqueue.h",
888 # TODO(brettw) this will need to be parameterized at some point.
890 "//build/config/linux:glib",
893 configs += linux_configs
894 all_dependent_configs = linux_configs
896 defines += [ "USE_SYMBOLIZE" ]
898 # These dependencies are not required on Android, and in the case
899 # of xdg_mime must be excluded due to licensing restrictions.
901 "//base/third_party/symbolize",
902 "//base/third_party/xdg_mime",
903 "//base/third_party/xdg_user_dirs",
908 "nix/mime_util_xdg.cc",
909 "nix/mime_util_xdg.h",
924 "message_loop/message_pump_glib.cc",
925 "message_loop/message_pump_glib.h",
929 configs += [ "//build/config/compiler:wexit_time_destructors" ]
930 if (is_android && !is_debug) {
931 configs -= [ "//build/config/compiler:optimize" ]
932 configs += [ "//build/config/compiler:optimize_max" ]
936 # This is the subset of files from base that should not be used with a dynamic
937 # library. Note that this library cannot depend on base because base depends on
939 source_set("base_static") {
947 if (is_android && !is_debug) {
948 configs -= [ "//build/config/compiler:optimize" ]
949 configs += [ "//build/config/compiler:optimize_max" ]
954 output_name = "base_i18n"
956 "i18n/base_i18n_export.h",
957 "i18n/bidi_line_iterator.cc",
958 "i18n/bidi_line_iterator.h",
959 "i18n/break_iterator.cc",
960 "i18n/break_iterator.h",
961 "i18n/case_conversion.cc",
962 "i18n/case_conversion.h",
963 "i18n/char_iterator.cc",
964 "i18n/char_iterator.h",
965 "i18n/file_util_icu.cc",
966 "i18n/file_util_icu.h",
967 "i18n/i18n_constants.cc",
968 "i18n/i18n_constants.h",
969 "i18n/icu_encoding_detection.cc",
970 "i18n/icu_encoding_detection.h",
971 "i18n/icu_string_conversions.cc",
972 "i18n/icu_string_conversions.h",
975 "i18n/number_formatting.cc",
976 "i18n/number_formatting.h",
979 "i18n/streaming_utf8_validator.cc",
980 "i18n/streaming_utf8_validator.h",
981 "i18n/string_compare.cc",
982 "i18n/string_compare.h",
983 "i18n/string_search.cc",
984 "i18n/string_search.h",
985 "i18n/time_formatting.cc",
986 "i18n/time_formatting.h",
989 "i18n/utf8_validator_tables.cc",
990 "i18n/utf8_validator_tables.h",
992 defines = [ "BASE_I18N_IMPLEMENTATION" ]
993 configs += [ "//build/config/compiler:wexit_time_destructors" ]
996 "//base/third_party/dynamic_annotations",
1000 if (is_android && !is_debug) {
1001 configs -= [ "//build/config/compiler:optimize" ]
1002 configs += [ "//build/config/compiler:optimize_max" ]
1006 source_set("prefs") {
1008 "prefs/base_prefs_export.h",
1009 "prefs/default_pref_store.cc",
1010 "prefs/default_pref_store.h",
1011 "prefs/json_pref_store.cc",
1012 "prefs/json_pref_store.h",
1013 "prefs/overlay_user_pref_store.cc",
1014 "prefs/overlay_user_pref_store.h",
1015 "prefs/persistent_pref_store.h",
1016 "prefs/pref_change_registrar.cc",
1017 "prefs/pref_change_registrar.h",
1018 "prefs/pref_filter.h",
1019 "prefs/pref_member.cc",
1020 "prefs/pref_member.h",
1021 "prefs/pref_notifier.h",
1022 "prefs/pref_notifier_impl.cc",
1023 "prefs/pref_notifier_impl.h",
1024 "prefs/pref_observer.h",
1025 "prefs/pref_registry.cc",
1026 "prefs/pref_registry.h",
1027 "prefs/pref_registry_simple.cc",
1028 "prefs/pref_registry_simple.h",
1029 "prefs/pref_service.cc",
1030 "prefs/pref_service.h",
1031 "prefs/pref_service_factory.cc",
1032 "prefs/pref_service_factory.h",
1033 "prefs/pref_store.cc",
1034 "prefs/pref_store.h",
1035 "prefs/pref_value_map.cc",
1036 "prefs/pref_value_map.h",
1037 "prefs/pref_value_store.cc",
1038 "prefs/pref_value_store.h",
1039 "prefs/scoped_user_pref_update.cc",
1040 "prefs/scoped_user_pref_update.h",
1041 "prefs/value_map_pref_store.cc",
1042 "prefs/value_map_pref_store.h",
1043 "prefs/writeable_pref_store.h",
1046 defines = [ "BASE_PREFS_IMPLEMENTATION" ]
1050 if (is_android && !is_debug) {
1051 configs -= [ "//build/config/compiler:optimize" ]
1052 configs += [ "//build/config/compiler:optimize_max" ]
1056 source_set("prefs_test_support") {
1059 "prefs/mock_pref_change_callback.cc",
1060 "prefs/mock_pref_change_callback.h",
1061 "prefs/pref_store_observer_mock.cc",
1062 "prefs/pref_store_observer_mock.h",
1063 "prefs/testing_pref_service.cc",
1064 "prefs/testing_pref_service.h",
1065 "prefs/testing_pref_store.cc",
1066 "prefs/testing_pref_store.h",
1077 source_set("message_loop_tests") {
1080 "message_loop/message_loop_test.cc",
1081 "message_loop/message_loop_test.h",
1090 test("base_unittests") {
1092 "android/application_status_listener_unittest.cc",
1093 "android/jni_android_unittest.cc",
1094 "android/jni_array_unittest.cc",
1095 "android/jni_string_unittest.cc",
1096 "android/path_utils_unittest.cc",
1097 "android/scoped_java_ref_unittest.cc",
1098 "android/sys_utils_unittest.cc",
1099 "async_socket_io_handler_unittest.cc",
1100 "at_exit_unittest.cc",
1101 "atomicops_unittest.cc",
1102 "barrier_closure_unittest.cc",
1103 "base64_unittest.cc",
1104 "big_endian_unittest.cc",
1108 "build_time_unittest.cc",
1109 "callback_helpers_unittest.cc",
1110 "callback_list_unittest.cc",
1111 "callback_list_unittest.nc",
1112 "callback_unittest.cc",
1113 "callback_unittest.nc",
1114 "cancelable_callback_unittest.cc",
1115 "command_line_unittest.cc",
1116 "containers/adapters_unittest.cc",
1117 "containers/hash_tables_unittest.cc",
1118 "containers/linked_list_unittest.cc",
1119 "containers/mru_cache_unittest.cc",
1120 "containers/small_map_unittest.cc",
1121 "containers/stack_container_unittest.cc",
1123 "debug/crash_logging_unittest.cc",
1124 "debug/leak_tracker_unittest.cc",
1125 "debug/proc_maps_linux_unittest.cc",
1126 "debug/stack_trace_unittest.cc",
1127 "debug/task_annotator_unittest.cc",
1128 "debug/trace_event_argument_unittest.cc",
1129 "debug/trace_event_memory_unittest.cc",
1130 "debug/trace_event_synthetic_delay_unittest.cc",
1131 "debug/trace_event_system_stats_monitor_unittest.cc",
1132 "debug/trace_event_unittest.cc",
1133 "debug/trace_event_unittest.h",
1134 "debug/trace_event_win_unittest.cc",
1135 "deferred_sequenced_task_runner_unittest.cc",
1136 "environment_unittest.cc",
1137 "file_version_info_unittest.cc",
1138 "files/dir_reader_posix_unittest.cc",
1139 "files/file_path_unittest.cc",
1140 "files/file_proxy_unittest.cc",
1141 "files/file_unittest.cc",
1142 "files/file_util_proxy_unittest.cc",
1143 "files/file_util_unittest.cc",
1144 "files/important_file_writer_unittest.cc",
1145 "files/scoped_temp_dir_unittest.cc",
1146 "gmock_unittest.cc",
1149 "id_map_unittest.cc",
1150 "i18n/break_iterator_unittest.cc",
1151 "i18n/char_iterator_unittest.cc",
1152 "i18n/case_conversion_unittest.cc",
1153 "i18n/file_util_icu_unittest.cc",
1154 "i18n/icu_string_conversions_unittest.cc",
1155 "i18n/number_formatting_unittest.cc",
1156 "i18n/rtl_unittest.cc",
1157 "i18n/streaming_utf8_validator_unittest.cc",
1158 "i18n/string_search_unittest.cc",
1159 "i18n/time_formatting_unittest.cc",
1160 "i18n/timezone_unittest.cc",
1161 "ios/device_util_unittest.mm",
1162 "json/json_parser_unittest.cc",
1163 "json/json_reader_unittest.cc",
1164 "json/json_value_converter_unittest.cc",
1165 "json/json_value_serializer_unittest.cc",
1166 "json/json_writer_unittest.cc",
1167 "json/string_escape_unittest.cc",
1168 "lazy_instance_unittest.cc",
1169 "logging_unittest.cc",
1170 "mac/bind_objc_block_unittest.mm",
1171 "mac/foundation_util_unittest.mm",
1172 "mac/libdispatch_task_runner_unittest.cc",
1173 "mac/mac_util_unittest.mm",
1174 "mac/objc_property_releaser_unittest.mm",
1175 "mac/scoped_nsobject_unittest.mm",
1176 "mac/scoped_objc_class_swizzler_unittest.mm",
1177 "mac/scoped_sending_event_unittest.mm",
1179 "memory/aligned_memory_unittest.cc",
1180 "memory/discardable_memory_manager_unittest.cc",
1181 "memory/discardable_memory_unittest.cc",
1182 "memory/linked_ptr_unittest.cc",
1183 "memory/ref_counted_memory_unittest.cc",
1184 "memory/ref_counted_unittest.cc",
1185 "memory/scoped_ptr_unittest.cc",
1186 "memory/scoped_ptr_unittest.nc",
1187 "memory/scoped_vector_unittest.cc",
1188 "memory/shared_memory_unittest.cc",
1189 "memory/singleton_unittest.cc",
1190 "memory/weak_ptr_unittest.cc",
1191 "memory/weak_ptr_unittest.nc",
1192 "message_loop/message_loop_proxy_impl_unittest.cc",
1193 "message_loop/message_loop_proxy_unittest.cc",
1194 "message_loop/message_loop_unittest.cc",
1195 "message_loop/message_pump_glib_unittest.cc",
1196 "message_loop/message_pump_io_ios_unittest.cc",
1197 "metrics/sample_map_unittest.cc",
1198 "metrics/sample_vector_unittest.cc",
1199 "metrics/bucket_ranges_unittest.cc",
1200 "metrics/field_trial_unittest.cc",
1201 "metrics/histogram_base_unittest.cc",
1202 "metrics/histogram_delta_serialization_unittest.cc",
1203 "metrics/histogram_snapshot_manager_unittest.cc",
1204 "metrics/histogram_unittest.cc",
1205 "metrics/sparse_histogram_unittest.cc",
1206 "metrics/stats_table_unittest.cc",
1207 "metrics/statistics_recorder_unittest.cc",
1208 "observer_list_unittest.cc",
1209 "os_compat_android_unittest.cc",
1210 "path_service_unittest.cc",
1211 "pickle_unittest.cc",
1212 "posix/file_descriptor_shuffle_unittest.cc",
1213 "posix/unix_domain_socket_linux_unittest.cc",
1214 "power_monitor/power_monitor_unittest.cc",
1215 "prefs/default_pref_store_unittest.cc",
1216 "prefs/json_pref_store_unittest.cc",
1217 "prefs/overlay_user_pref_store_unittest.cc",
1218 "prefs/pref_change_registrar_unittest.cc",
1219 "prefs/pref_member_unittest.cc",
1220 "prefs/pref_notifier_impl_unittest.cc",
1221 "prefs/pref_service_unittest.cc",
1222 "prefs/pref_value_map_unittest.cc",
1223 "prefs/pref_value_store_unittest.cc",
1224 "prefs/scoped_user_pref_update_unittest.cc",
1225 "process/memory_unittest.cc",
1226 "process/memory_unittest_mac.h",
1227 "process/memory_unittest_mac.mm",
1228 "process/process_metrics_unittest.cc",
1229 "process/process_metrics_unittest_ios.cc",
1230 "process/process_util_unittest.cc",
1231 "process/process_util_unittest_ios.cc",
1232 "profiler/tracked_time_unittest.cc",
1233 "rand_util_unittest.cc",
1234 "numerics/safe_numerics_unittest.cc",
1235 "scoped_clear_errno_unittest.cc",
1236 "scoped_generic_unittest.cc",
1237 "scoped_native_library_unittest.cc",
1238 "security_unittest.cc",
1239 "sequence_checker_unittest.cc",
1241 "stl_util_unittest.cc",
1242 "strings/nullable_string16_unittest.cc",
1243 "strings/safe_sprintf_unittest.cc",
1244 "strings/string16_unittest.cc",
1245 "strings/stringprintf_unittest.cc",
1246 "strings/string_number_conversions_unittest.cc",
1247 "strings/string_piece_unittest.cc",
1248 "strings/string_split_unittest.cc",
1249 "strings/string_tokenizer_unittest.cc",
1250 "strings/string_util_unittest.cc",
1251 "strings/stringize_macros_unittest.cc",
1252 "strings/sys_string_conversions_mac_unittest.mm",
1253 "strings/sys_string_conversions_unittest.cc",
1254 "strings/utf_offset_string_conversions_unittest.cc",
1255 "strings/utf_string_conversions_unittest.cc",
1256 "supports_user_data_unittest.cc",
1257 "sync_socket_unittest.cc",
1258 "synchronization/cancellation_flag_unittest.cc",
1259 "synchronization/condition_variable_unittest.cc",
1260 "synchronization/lock_unittest.cc",
1261 "synchronization/waitable_event_unittest.cc",
1262 "synchronization/waitable_event_watcher_unittest.cc",
1263 "sys_info_unittest.cc",
1264 "system_monitor/system_monitor_unittest.cc",
1265 "task/cancelable_task_tracker_unittest.cc",
1266 "task_runner_util_unittest.cc",
1267 "template_util_unittest.cc",
1268 "test/expectations/expectation_unittest.cc",
1269 "test/expectations/parser_unittest.cc",
1270 "test/histogram_tester_unittest.cc",
1271 "test/test_reg_util_win_unittest.cc",
1272 "test/trace_event_analyzer_unittest.cc",
1273 "threading/non_thread_safe_unittest.cc",
1274 "threading/platform_thread_unittest.cc",
1275 "threading/sequenced_worker_pool_unittest.cc",
1276 "threading/simple_thread_unittest.cc",
1277 "threading/thread_checker_unittest.cc",
1278 "threading/thread_collision_warner_unittest.cc",
1279 "threading/thread_id_name_manager_unittest.cc",
1280 "threading/thread_local_storage_unittest.cc",
1281 "threading/thread_local_unittest.cc",
1282 "threading/thread_unittest.cc",
1283 "threading/watchdog_unittest.cc",
1284 "threading/worker_pool_posix_unittest.cc",
1285 "threading/worker_pool_unittest.cc",
1286 "time/pr_time_unittest.cc",
1287 "time/time_unittest.cc",
1288 "time/time_win_unittest.cc",
1289 "timer/hi_res_timer_manager_unittest.cc",
1290 "timer/mock_timer_unittest.cc",
1291 "timer/timer_unittest.cc",
1292 "tools_sanity_unittest.cc",
1293 "tracked_objects_unittest.cc",
1294 "tuple_unittest.cc",
1295 "values_unittest.cc",
1296 "version_unittest.cc",
1299 "win/enum_variant_unittest.cc",
1300 "win/event_trace_consumer_unittest.cc",
1301 "win/event_trace_controller_unittest.cc",
1302 "win/event_trace_provider_unittest.cc",
1303 "win/i18n_unittest.cc",
1304 "win/iunknown_impl_unittest.cc",
1305 "win/message_window_unittest.cc",
1306 "win/object_watcher_unittest.cc",
1307 "win/pe_image_unittest.cc",
1308 "win/registry_unittest.cc",
1309 "win/scoped_bstr_unittest.cc",
1310 "win/scoped_comptr_unittest.cc",
1311 "win/scoped_process_information_unittest.cc",
1312 "win/scoped_variant_unittest.cc",
1313 "win/shortcut_unittest.cc",
1314 "win/startup_information_unittest.cc",
1315 "win/win_util_unittest.cc",
1316 "win/wrapped_window_proc_unittest.cc",
1322 ":message_loop_tests",
1324 ":prefs_test_support",
1326 "//base/test:run_all_unittests",
1327 "//base/test:test_support",
1328 "//base/third_party/dynamic_annotations",
1329 "//base/third_party/nspr",
1332 "//third_party/icu",
1337 "metrics/stats_table_uinittest.cc", # Requires spawning a process.
1338 "process/memory_unittest.cc",
1339 "process/memory_unittest_mac.h",
1340 "process/memory_unittest_mac.mm",
1341 "process/process_util_unittest.cc",
1344 # Pull in specific Mac files for iOS (which have been filtered out by file
1346 set_sources_assignment_filter([])
1348 "mac/bind_objc_block_unittest.mm",
1349 "mac/foundation_util_unittest.mm",
1350 "mac/objc_property_releaser_unittest.mm",
1351 "mac/scoped_nsobject_unittest.mm",
1352 "sys_string_conversions_mac_unittest.mm",
1354 set_sources_assignment_filter(sources_assignment_filter)
1356 # TODO(GYP): dep on copy_test_data_ios action.
1360 sources -= [ "file_version_info_unittest.cc" ]
1361 sources += [ "nix/xdg_util_unittest.cc" ]
1362 defines = [ "USE_SYMBOLIZE" ]
1363 configs += [ "//build/config/linux:glib" ]
1366 if (!is_linux || use_ozone) {
1367 sources -= [ "message_loop/message_pump_glib_unittest.cc" ]
1370 if (is_posix || is_ios) {
1371 sources += [ "message_loop/message_pump_libevent_unittest.cc" ]
1372 deps += [ "//third_party/libevent" ]
1377 "//testing/android:native_test_native_code",
1379 set_sources_assignment_filter([])
1380 sources += [ "debug/proc_maps_linux_unittest.cc" ]
1381 set_sources_assignment_filter(sources_assignment_filter)
1386 # GYP: //base.gyp:base_jni_headers
1387 generate_jni("base_jni_headers") {
1389 "android/java/src/org/chromium/base/ApplicationStatus.java",
1390 "android/java/src/org/chromium/base/BuildInfo.java",
1391 "android/java/src/org/chromium/base/CommandLine.java",
1392 "android/java/src/org/chromium/base/ContentUriUtils.java",
1393 "android/java/src/org/chromium/base/CpuFeatures.java",
1394 "android/java/src/org/chromium/base/EventLog.java",
1395 "android/java/src/org/chromium/base/FieldTrialList.java",
1396 "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java",
1397 "android/java/src/org/chromium/base/JNIUtils.java",
1398 "android/java/src/org/chromium/base/library_loader/LibraryLoader.java",
1399 "android/java/src/org/chromium/base/MemoryPressureListener.java",
1400 "android/java/src/org/chromium/base/JavaHandlerThread.java",
1401 "android/java/src/org/chromium/base/PathService.java",
1402 "android/java/src/org/chromium/base/PathUtils.java",
1403 "android/java/src/org/chromium/base/PowerMonitor.java",
1404 "android/java/src/org/chromium/base/SystemMessageHandler.java",
1405 "android/java/src/org/chromium/base/SysUtils.java",
1406 "android/java/src/org/chromium/base/ThreadUtils.java",
1407 "android/java/src/org/chromium/base/TraceEvent.java",
1409 jni_package = "base"
1412 # GYP: //base.gyp:base_java
1413 android_library("base_java") {
1415 ":base_java_application_state",
1416 ":base_java_memory_pressure_level_list",
1417 ":base_native_libraries_gen",
1421 "//third_party/jsr-305:jsr_305_javalib"
1424 DEPRECATED_java_in_dir = "android/java/src"
1426 # A new version of NativeLibraries.java (with the actual correct values)
1427 # will be created when creating an apk.
1428 jar_excluded_patterns = [
1429 "*/NativeLibraries.class",
1430 "*/NativeLibraries##*.class",
1434 # GYP: //base.gyp:base_javatests
1435 android_library("base_javatests") {
1438 ":base_java_test_support",
1440 DEPRECATED_java_in_dir = "android/javatests/src"
1443 # GYP: //base.gyp:base_java_test_support
1444 android_library("base_java_test_support") {
1448 DEPRECATED_java_in_dir = "test/android/javatests/src"
1451 # GYP: //base.gyp:base_java_application_state
1452 java_cpp_template("base_java_application_state") {
1454 "android/java/src/org/chromium/base/ApplicationState.template",
1457 "android/application_state_list.h"
1460 package_name = "org/chromium/base"
1463 # GYP: //base.gyp:base_java_memory_pressure_level_list
1464 java_cpp_template("base_java_memory_pressure_level_list") {
1466 "android/java/src/org/chromium/base/MemoryPressureLevelList.template",
1469 "memory/memory_pressure_level_list.h"
1472 package_name = "org/chromium/base"
1475 # GYP: //base/base.gyp:base_native_libraries_gen
1476 java_cpp_template("base_native_libraries_gen") {
1478 "android/java/templates/NativeLibraries.template",
1480 package_name = "org/chromium/base/library_loader"
1483 # GYP: //base.gyp:base_java_unittest_support
1484 android_library("base_java_unittest_support") {
1485 deps = [":base_java"]
1487 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java"
1491 # GYP: //base.gyp:base_unittests_apk
1492 unittest_apk("base_unittests_apk") {
1495 ":base_java_unittest_support",
1498 unittests_dep = ":base_unittests"