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/android/rules.gni")
6 import("//build/config/ui.gni")
10 "third_party/dmg_fp/dmg_fp.h",
11 "third_party/dmg_fp/g_fmt.cc",
12 "third_party/dmg_fp/dtoa_wrapper.cc",
13 "third_party/icu/icu_utf.cc",
14 "third_party/icu/icu_utf.h",
15 "third_party/superfasthash/superfasthash.c",
16 "allocator/allocator_extension.cc",
17 "allocator/allocator_extension.h",
18 "allocator/type_profiler_control.cc",
19 "allocator/type_profiler_control.h",
20 "android/application_status_listener.cc",
21 "android/application_status_listener.h",
22 "android/base_jni_registrar.cc",
23 "android/base_jni_registrar.h",
24 "android/build_info.cc",
25 "android/build_info.h",
26 "android/command_line_android.cc",
27 "android/command_line_android.h",
28 "android/content_uri_utils.cc",
29 "android/content_uri_utils.h",
30 "android/cpu_features.cc",
31 "android/fifo_utils.cc",
32 "android/fifo_utils.h",
33 "android/important_file_writer_android.cc",
34 "android/important_file_writer_android.h",
35 "android/scoped_java_ref.cc",
36 "android/scoped_java_ref.h",
37 "android/jni_android.cc",
38 "android/jni_android.h",
39 "android/jni_array.cc",
40 "android/jni_array.h",
41 "android/jni_registrar.cc",
42 "android/jni_registrar.h",
43 "android/jni_string.cc",
44 "android/jni_string.h",
45 "android/jni_weak_ref.cc",
46 "android/jni_weak_ref.h",
47 "android/library_loader/library_loader_hooks.cc",
48 "android/library_loader/library_loader_hooks.h",
49 "android/memory_pressure_listener_android.cc",
50 "android/memory_pressure_listener_android.h",
51 "android/java_handler_thread.cc",
52 "android/java_handler_thread.h",
53 "android/path_service_android.cc",
54 "android/path_service_android.h",
55 "android/path_utils.cc",
56 "android/path_utils.h",
57 "android/sys_utils.cc",
58 "android/sys_utils.h",
59 "android/thread_utils.h",
60 "android/trace_event_binding.cc",
61 "android/trace_event_binding.h",
62 "async_socket_io_handler.h",
63 "async_socket_io_handler_posix.cc",
64 "async_socket_io_handler_win.cc",
68 "atomic_sequence_num.h",
70 "atomicops_internals_gcc.h",
71 "atomicops_internals_mac.h",
72 "atomicops_internals_tsan.h",
73 "atomicops_internals_x86_gcc.cc",
74 "atomicops_internals_x86_gcc.h",
75 "atomicops_internals_x86_msvc.h",
81 "base_paths_android.cc",
82 "base_paths_android.h",
85 "base_paths_posix.cc",
99 "bind_internal_win.h",
104 "callback_helpers.cc",
105 "callback_helpers.h",
106 "callback_internal.cc",
107 "callback_internal.h",
108 "cancelable_callback.h",
111 "compiler_specific.h",
112 "containers/hash_tables.h",
113 "containers/linked_list.h",
114 "containers/mru_cache.h",
115 "containers/small_map.h",
116 "containers/stack_container.h",
119 "critical_closure.h",
120 "critical_closure_internal_ios.mm",
123 "debug/crash_logging.cc",
124 "debug/crash_logging.h",
127 "debug/debugger_posix.cc",
128 "debug/debugger_win.cc",
129 # This file depends on files from the "allocator" target,
130 # but this target does not depend on "allocator" (see
131 # allocator.gyp for details).
132 "debug/leak_annotations.h",
133 "debug/leak_tracker.h",
134 "debug/proc_maps_linux.cc",
135 "debug/proc_maps_linux.h",
138 "debug/stack_trace.cc",
139 "debug/stack_trace.h",
140 "debug/stack_trace_android.cc",
141 "debug/stack_trace_posix.cc",
142 "debug/stack_trace_win.cc",
143 "debug/trace_event.h",
144 "debug/trace_event_android.cc",
145 "debug/trace_event_impl.cc",
146 "debug/trace_event_impl.h",
147 "debug/trace_event_impl_constants.cc",
148 "debug/trace_event_memory.cc",
149 "debug/trace_event_memory.h",
150 "debug/trace_event_synthetic_delay.cc",
151 "debug/trace_event_synthetic_delay.h",
152 "debug/trace_event_system_stats_monitor.cc",
153 "debug/trace_event_system_stats_monitor.h",
154 "debug/trace_event_win.cc",
155 "deferred_sequenced_task_runner.cc",
156 "deferred_sequenced_task_runner.h",
159 "file_descriptor_posix.h",
162 "file_util_android.cc",
163 "file_util_linux.cc",
165 "file_util_posix.cc",
167 "file_version_info.h",
168 "file_version_info_mac.h",
169 "file_version_info_mac.mm",
170 "file_version_info_win.cc",
171 "file_version_info_win.h",
172 "files/dir_reader_fallback.h",
173 "files/dir_reader_linux.h",
174 "files/dir_reader_posix.h",
176 "files/file_posix.cc",
178 "files/file_enumerator.cc",
179 "files/file_enumerator.h",
180 "files/file_enumerator_posix.cc",
181 "files/file_enumerator_win.cc",
182 "files/file_path.cc",
184 "files/file_path_constants.cc",
185 "files/file_path_watcher.cc",
186 "files/file_path_watcher.h",
187 "files/file_path_watcher_kqueue.cc",
188 "files/file_path_watcher_linux.cc",
189 "files/file_path_watcher_win.cc",
190 "files/file_proxy.cc",
191 "files/file_proxy.h",
192 "files/file_util_proxy.cc",
193 "files/file_util_proxy.h",
194 "files/important_file_writer.cc",
195 "files/important_file_writer.h",
196 "files/memory_mapped_file.cc",
197 "files/memory_mapped_file.h",
198 "files/memory_mapped_file_posix.cc",
199 "files/memory_mapped_file_win.cc",
200 "files/scoped_file.cc",
201 "files/scoped_file.h",
202 "files/scoped_temp_dir.cc",
203 "files/scoped_temp_dir.h",
217 "ios/device_util.mm",
220 "ios/scoped_critical_action.h",
221 "ios/scoped_critical_action.mm",
222 "json/json_file_value_serializer.cc",
223 "json/json_file_value_serializer.h",
224 "json/json_parser.cc",
225 "json/json_parser.h",
226 "json/json_reader.cc",
227 "json/json_reader.h",
228 "json/json_string_value_serializer.cc",
229 "json/json_string_value_serializer.h",
230 "json/json_value_converter.h",
231 "json/json_writer.cc",
232 "json/json_writer.h",
233 "json/string_escape.cc",
234 "json/string_escape.h",
243 "mac/authorization_util.h",
244 "mac/authorization_util.mm",
245 "mac/bind_objc_block.h",
246 "mac/bundle_locations.h",
247 "mac/bundle_locations.mm",
248 "mac/cocoa_protocols.h",
249 "mac/foundation_util.h",
250 "mac/foundation_util.mm",
251 "mac/launch_services_util.cc",
252 "mac/launch_services_util.h",
255 "mac/libdispatch_task_runner.cc",
256 "mac/libdispatch_task_runner.h",
258 "mac/mac_logging.cc",
261 "mac/mach_logging.cc",
262 "mac/mach_logging.h",
263 "mac/objc_property_releaser.h",
264 "mac/objc_property_releaser.mm",
265 "mac/os_crash_dumps.cc",
266 "mac/os_crash_dumps.h",
267 "mac/scoped_aedesc.h",
268 "mac/scoped_authorizationref.h",
269 "mac/scoped_block.h",
270 "mac/scoped_cftyperef.h",
271 "mac/scoped_ioobject.h",
272 "mac/scoped_ioplugininterface.h",
273 "mac/scoped_launch_data.h",
274 "mac/scoped_mach_port.cc",
275 "mac/scoped_mach_port.h",
276 "mac/scoped_nsautorelease_pool.h",
277 "mac/scoped_nsautorelease_pool.mm",
278 "mac/scoped_nsexception_enabler.h",
279 "mac/scoped_nsexception_enabler.mm",
280 "mac/scoped_nsobject.h",
281 "mac/scoped_sending_event.h",
282 "mac/scoped_sending_event.mm",
283 "mac/sdk_forward_declarations.h",
287 "memory/aligned_memory.cc",
288 "memory/aligned_memory.h",
289 "memory/discardable_memory.cc",
290 "memory/discardable_memory.h",
291 "memory/discardable_memory_android.cc",
292 "memory/discardable_memory_emulated.cc",
293 "memory/discardable_memory_emulated.h",
294 "memory/discardable_memory_linux.cc",
295 "memory/discardable_memory_mac.cc",
296 "memory/discardable_memory_malloc.cc",
297 "memory/discardable_memory_malloc.h",
298 "memory/discardable_memory_manager.cc",
299 "memory/discardable_memory_manager.h",
300 "memory/discardable_memory_win.cc",
301 "memory/linked_ptr.h",
302 "memory/manual_constructor.h",
303 "memory/memory_pressure_listener.cc",
304 "memory/memory_pressure_listener.h",
305 "memory/raw_scoped_refptr_mismatch_checker.h",
306 "memory/ref_counted.cc",
307 "memory/ref_counted.h",
308 "memory/ref_counted_delete_on_message_loop.h",
309 "memory/ref_counted_memory.cc",
310 "memory/ref_counted_memory.h",
311 "memory/scoped_handle.h",
312 "memory/scoped_open_process.h",
313 "memory/scoped_policy.h",
314 "memory/scoped_ptr.h",
315 "memory/scoped_vector.h",
316 "memory/shared_memory.h",
317 "memory/shared_memory_android.cc",
318 "memory/shared_memory_nacl.cc",
319 "memory/shared_memory_posix.cc",
320 "memory/shared_memory_win.cc",
321 "memory/singleton.cc",
322 "memory/singleton.h",
323 "memory/weak_ptr.cc",
325 "message_loop/incoming_task_queue.cc",
326 "message_loop/incoming_task_queue.h",
327 "message_loop/message_loop.cc",
328 "message_loop/message_loop.h",
329 "message_loop/message_loop_proxy.cc",
330 "message_loop/message_loop_proxy.h",
331 "message_loop/message_loop_proxy_impl.cc",
332 "message_loop/message_loop_proxy_impl.h",
333 "message_loop/message_pump.cc",
334 "message_loop/message_pump.h",
335 "message_loop/message_pump_android.cc",
336 "message_loop/message_pump_android.h",
337 "message_loop/message_pump_default.cc",
338 "message_loop/message_pump_default.h",
339 "message_loop/message_pump_glib.cc",
340 "message_loop/message_pump_glib.h",
341 "message_loop/message_pump_io_ios.cc",
342 "message_loop/message_pump_io_ios.h",
343 "message_loop/message_pump_libevent.cc",
344 "message_loop/message_pump_libevent.h",
345 "message_loop/message_pump_mac.h",
346 "message_loop/message_pump_mac.mm",
347 "message_loop/message_pump_observer.h",
348 "message_loop/message_pump_win.cc",
349 "message_loop/message_pump_win.h",
350 "metrics/field_trial.cc",
351 "metrics/field_trial.h",
352 "metrics/sample_map.cc",
353 "metrics/sample_map.h",
354 "metrics/sample_vector.cc",
355 "metrics/sample_vector.h",
356 "metrics/bucket_ranges.cc",
357 "metrics/bucket_ranges.h",
358 "metrics/histogram.cc",
359 "metrics/histogram.h",
360 "metrics/histogram_base.cc",
361 "metrics/histogram_base.h",
362 "metrics/histogram_delta_serialization.cc",
363 "metrics/histogram_delta_serialization.",
364 "metrics/histogram_flattener.h",
365 "metrics/histogram_samples.cc",
366 "metrics/histogram_samples.h",
367 "metrics/histogram_snapshot_manager.cc",
368 "metrics/histogram_snapshot_manager.h",
369 "metrics/sparse_histogram.cc",
370 "metrics/sparse_histogram.h",
371 "metrics/statistics_recorder.cc",
372 "metrics/statistics_recorder.h",
373 "metrics/stats_counters.cc",
374 "metrics/stats_counters.h",
375 "metrics/stats_table.cc",
376 "metrics/stats_table.h",
377 "metrics/user_metrics.cc",
378 "metrics/user_metrics.h",
379 "metrics/user_metrics_action.h",
382 "native_library_mac.mm",
383 "native_library_posix.cc",
384 "native_library_win.cc",
385 "numerics/safe_conversions.h",
386 "numerics/safe_conversions_impl.h",
387 "numerics/safe_math.h",
388 "numerics/safe_math_impl.h",
389 "nix/mime_util_xdg.cc",
390 "nix/mime_util_xdg.h",
394 "observer_list_threadsafe.h",
395 "os_compat_android.cc",
396 "os_compat_android.h",
407 "platform_file_posix.cc",
408 "platform_file_win.cc",
410 "posix/eintr_wrapper.h",
411 "posix/file_descriptor_shuffle.cc",
412 "posix/global_descriptors.cc",
413 "posix/global_descriptors.h",
414 "posix/unix_domain_socket_linux.cc",
415 "posix/unix_domain_socket_linux.h",
416 "power_monitor/power_monitor.cc",
417 "power_monitor/power_monitor.h",
418 "power_monitor/power_monitor_device_source.cc",
419 "power_monitor/power_monitor_device_source.h",
420 "power_monitor/power_monitor_device_source_android.cc",
421 "power_monitor/power_monitor_device_source_android.h",
422 "power_monitor/power_monitor_device_source_ios.mm",
423 "power_monitor/power_monitor_device_source_mac.mm",
424 "power_monitor/power_monitor_device_source_posix.cc",
425 "power_monitor/power_monitor_device_source_win.cc",
426 "power_monitor/power_monitor_source.cc",
427 "power_monitor/power_monitor_source.h",
428 "power_monitor/power_observer.h",
429 "process/internal_linux.cc",
430 "process/internal_linux.h",
433 "process/kill_mac.cc",
434 "process/kill_posix.cc",
435 "process/kill_win.cc",
438 "process/launch_ios.cc",
439 "process/launch_mac.cc",
440 "process/launch_posix.cc",
441 "process/launch_win.cc",
444 "process/memory_linux.cc",
445 "process/memory_mac.mm",
446 "process/memory_win.cc",
448 "process/process_handle_freebsd.cc",
449 "process/process_handle_linux.cc",
450 "process/process_handle_mac.cc",
451 "process/process_handle_openbsd.cc",
452 "process/process_handle_posix.cc",
453 "process/process_handle_win.cc",
454 "process/process_info.h",
455 "process/process_info_mac.cc",
456 "process/process_info_win.cc",
457 "process/process_iterator.cc",
458 "process/process_iterator.h",
459 "process/process_iterator_freebsd.cc",
460 "process/process_iterator_linux.cc",
461 "process/process_iterator_mac.cc",
462 "process/process_iterator_openbsd.cc",
463 "process/process_iterator_win.cc",
464 "process/process_linux.cc",
465 "process/process_metrics.cc",
466 "process/process_metrics.h",
467 "process/process_metrics_freebsd.cc",
468 "process/process_metrics_ios.cc",
469 "process/process_metrics_linux.cc",
470 "process/process_metrics_mac.cc",
471 "process/process_metrics_openbsd.cc",
472 "process/process_metrics_posix.cc",
473 "process/process_metrics_win.cc",
474 "process/process_posix.cc",
475 "process/process_win.cc",
476 "profiler/scoped_profile.cc",
477 "profiler/scoped_profile.h",
478 "profiler/alternate_timer.cc",
479 "profiler/alternate_timer.h",
480 "profiler/tracked_time.cc",
481 "profiler/tracked_time.h",
485 "rand_util_posix.cc",
489 "safe_strerror_posix.cc",
490 "safe_strerror_posix.h",
492 "scoped_native_library.cc",
493 "scoped_native_library.h",
494 "sequence_checker.h",
495 "sequence_checker_impl.cc",
496 "sequence_checker_impl.h",
497 "sequenced_task_runner.cc",
498 "sequenced_task_runner.h",
499 "sequenced_task_runner_helpers.h",
503 "single_thread_task_runner.h",
505 "strings/latin1_string_conversions.cc",
506 "strings/latin1_string_conversions.h",
507 "strings/nullable_string16.cc",
508 "strings/nullable_string16.h",
509 "strings/safe_sprintf.cc",
510 "strings/safe_sprintf.h",
511 "strings/string16.cc",
512 "strings/string16.h",
513 "strings/string_number_conversions.cc",
514 "strings/string_split.cc",
515 "strings/string_split.h",
516 "strings/string_number_conversions.h",
517 "strings/string_piece.cc",
518 "strings/string_piece.h",
519 "strings/string_tokenizer.h",
520 "strings/string_util.cc",
521 "strings/string_util.h",
522 "strings/string_util_constants.cc",
523 "strings/string_util_posix.h",
524 "strings/string_util_win.h",
525 "strings/stringize_macros.h",
526 "strings/stringprintf.cc",
527 "strings/stringprintf.h",
528 "strings/sys_string_conversions.h",
529 "strings/sys_string_conversions_mac.mm",
530 "strings/sys_string_conversions_posix.cc",
531 "strings/sys_string_conversions_win.cc",
532 "strings/utf_offset_string_conversions.cc",
533 "strings/utf_offset_string_conversions.h",
534 "strings/utf_string_conversion_utils.cc",
535 "strings/utf_string_conversion_utils.h",
536 "strings/utf_string_conversions.cc",
537 "strings/utf_string_conversions.h",
538 "supports_user_data.cc",
539 "supports_user_data.h",
541 "sync_socket_posix.cc",
542 "sync_socket_win.cc",
543 "synchronization/cancellation_flag.cc",
544 "synchronization/cancellation_flag.h",
545 "synchronization/condition_variable.h",
546 "synchronization/condition_variable_posix.cc",
547 "synchronization/condition_variable_win.cc",
548 "synchronization/lock.cc",
549 "synchronization/lock.h",
550 "synchronization/lock_impl.h",
551 "synchronization/lock_impl_posix.cc",
552 "synchronization/lock_impl_win.cc",
553 "synchronization/spin_wait.h",
554 "synchronization/waitable_event.h",
555 "synchronization/waitable_event_posix.cc",
556 "synchronization/waitable_event_watcher.h",
557 "synchronization/waitable_event_watcher_posix.cc",
558 "synchronization/waitable_event_watcher_win.cc",
559 "synchronization/waitable_event_win.cc",
560 "system_monitor/system_monitor.cc",
561 "system_monitor/system_monitor.h",
565 "sys_info_android.cc",
566 "sys_info_chromeos.cc",
567 "sys_info_freebsd.cc",
571 "sys_info_openbsd.cc",
574 "task/cancelable_task_tracker.cc",
575 "task/cancelable_task_tracker.h",
578 "task_runner_util.h",
580 "thread_task_runner_handle.cc",
581 "thread_task_runner_handle.h",
582 "threading/non_thread_safe.h",
583 "threading/non_thread_safe_impl.cc",
584 "threading/non_thread_safe_impl.h",
585 "threading/platform_thread.h",
586 "threading/platform_thread_android.cc",
587 "threading/platform_thread_linux.cc",
588 "threading/platform_thread_mac.mm",
589 "threading/platform_thread_posix.cc",
590 "threading/platform_thread_win.cc",
591 "threading/post_task_and_reply_impl.cc",
592 "threading/post_task_and_reply_impl.h",
593 "threading/sequenced_worker_pool.cc",
594 "threading/sequenced_worker_pool.h",
595 "threading/simple_thread.cc",
596 "threading/simple_thread.h",
597 "threading/thread.cc",
598 "threading/thread.h",
599 "threading/thread_checker.h",
600 "threading/thread_checker_impl.cc",
601 "threading/thread_checker_impl.h",
602 "threading/thread_collision_warner.cc",
603 "threading/thread_collision_warner.h",
604 "threading/thread_id_name_manager.cc",
605 "threading/thread_id_name_manager.h",
606 "threading/thread_local.h",
607 "threading/thread_local_android.cc",
608 "threading/thread_local_posix.cc",
609 "threading/thread_local_storage.cc",
610 "threading/thread_local_storage.h",
611 "threading/thread_local_storage_posix.cc",
612 "threading/thread_local_storage_win.cc",
613 "threading/thread_local_win.cc",
614 "threading/thread_restrictions.h",
615 "threading/thread_restrictions.cc",
616 "threading/watchdog.cc",
617 "threading/watchdog.h",
618 "threading/worker_pool.h",
619 "threading/worker_pool.cc",
620 "threading/worker_pool_posix.cc",
621 "threading/worker_pool_posix.h",
622 "threading/worker_pool_win.cc",
625 "time/default_clock.cc",
626 "time/default_clock.h",
627 "time/default_tick_clock.cc",
628 "time/default_tick_clock.h",
629 "time/tick_clock.cc",
634 "time/time_posix.cc",
636 "timer/elapsed_timer.cc",
637 "timer/elapsed_timer.h",
638 "timer/hi_res_timer_manager.h",
639 "timer/hi_res_timer_manager_posix.cc",
640 "timer/hi_res_timer_manager_win.cc",
641 "timer/mock_timer.cc",
642 "timer/mock_timer.h",
645 "tracked_objects.cc",
652 "value_conversions.cc",
653 "value_conversions.h",
658 "win/enum_variant.cc",
659 "win/enum_variant.h",
660 "win/event_trace_consumer.h",
661 "win/event_trace_controller.cc",
662 "win/event_trace_controller.h",
663 "win/event_trace_provider.cc",
664 "win/event_trace_provider.h",
667 "win/iat_patch_function.cc",
668 "win/iat_patch_function.h",
669 "win/iunknown_impl.cc",
670 "win/iunknown_impl.h",
671 "win/message_window.cc",
672 "win/message_window.h",
675 "win/object_watcher.cc",
676 "win/object_watcher.h",
679 "win/resource_util.cc",
680 "win/resource_util.h",
681 "win/scoped_bstr.cc",
683 "win/scoped_co_mem.h",
684 "win/scoped_com_initializer.h",
685 "win/scoped_comptr.h",
686 "win/scoped_gdi_object.h",
687 "win/scoped_handle.cc",
688 "win/scoped_handle.h",
690 "win/scoped_hglobal.h",
691 "win/scoped_process_information.cc",
692 "win/scoped_process_information.h",
693 "win/scoped_propvariant.h",
694 "win/scoped_select_object.h",
695 "win/scoped_variant.cc",
696 "win/scoped_variant.h",
699 "win/startup_information.cc",
700 "win/startup_information.h",
703 "win/windows_version.cc",
704 "win/windows_version.h",
705 "win/wrapped_window_proc.cc",
706 "win/wrapped_window_proc.h",
710 sources += [ "files/file_path_watcher_stub.cc" ]
714 "process/process_handle_freebsd.cc",
715 "process/process_handle_openbsd.cc",
716 "process/process_iterator_freebsd.cc",
717 "process/process_iterator_openbsd.cc",
718 "process/process_metrics_freebsd.cc",
719 "process/process_metrics_openbsd.cc",
720 "sys_info_freebsd.cc",
721 "sys_info_openbsd.cc",
725 "BASE_IMPLEMENTATION",
730 "//base/allocator:allocator_extension_thunks",
731 "//base/third_party/dynamic_annotations",
732 "//base/third_party/nspr",
733 "//third_party/modp_b64",
738 "memory/discardable_memory_ashmem_allocator.cc",
739 "memory/discardable_memory_ashmem_allocator.h",
740 "memory/discardable_memory_ashmem.cc",
741 "memory/discardable_memory_ashmem.h",
744 "base_paths_posix.cc",
745 "power_monitor/power_monitor_device_source_posix.cc",
748 # Android uses some Linux sources, put those back.
749 set_sources_assignment_filter([])
751 "debug/proc_maps_linux.cc",
752 "files/file_path_watcher_linux.cc",
753 "process/memory_linux.cc",
754 "process/internal_linux.cc",
755 "process/process_handle_linux.cc",
756 "process/process_iterator_linux.cc",
757 "process/process_metrics_linux.cc",
758 "posix/unix_domain_socket_linux.cc",
761 set_sources_assignment_filter(sources_assignment_filter)
765 "//third_party/ashmem",
766 "//third_party/android_tools:cpu_features"
769 # logging.cc uses the Android logging library.
773 "debug/stack_trace_posix.cc",
778 # These things would otherwise be built on a Posix build but aren't
781 "debug/stack_trace_posix.cc",
782 "files/file_enumerator_posix.cc",
783 "file_util_posix.cc",
784 "message_loop/message_pump_libevent.cc",
785 "process/kill_posix.cc",
786 "process/launch_posix.cc",
787 "process/process_metrics_posix.cc",
788 "process/process_posix.cc",
789 "metrics/field_trial.cc",
790 "native_library_posix.cc",
791 "memory/shared_memory_posix.cc",
792 "sync_socket_posix.cc",
801 "memory/shared_memory_nacl.cc",
808 "message_loop/message_pump_libevent.cc",
809 "strings/string16.cc",
810 # Not using sha1_win.cc because it may have caused a
811 # regression to page cycler moz.
820 "/DELAYLOAD:powrprof.dll",
822 } else if (!is_nacl) {
824 deps += [ "//third_party/libevent" ]
830 "base_paths_posix.cc",
831 "native_library_posix.cc",
832 "strings/sys_string_conversions_posix.cc",
834 deps += [ "//third_party/mach_override" ]
837 sources -= [ "files/file_path_watcher_kqueue.cc" ]
842 # TODO(brettw) this will need to be parameterized at some point.
844 "//build/config/linux:glib",
847 configs += linux_configs
848 all_dependent_configs = linux_configs
850 # These dependencies are not required on Android, and in the case
851 # of xdg_mime must be excluded due to licensing restrictions.
853 "//base/third_party/symbolize",
854 "//base/third_party/xdg_mime",
855 "//base/third_party/xdg_user_dirs",
860 "nix/mime_util_xdg.cc",
861 "nix/mime_util_xdg.h",
869 "message_loop/message_pump_glib.cc",
870 "message_loop/message_pump_glib.h",
875 # This is the subset of files from base that should not be used with a dynamic
876 # library. Note that this library cannot depend on base because base depends on
878 source_set("base_static") {
888 output_name = "base_i18n"
890 "i18n/base_i18n_export.h",
891 "i18n/bidi_line_iterator.cc",
892 "i18n/bidi_line_iterator.h",
893 "i18n/break_iterator.cc",
894 "i18n/break_iterator.h",
895 "i18n/case_conversion.cc",
896 "i18n/case_conversion.h",
897 "i18n/char_iterator.cc",
898 "i18n/char_iterator.h",
899 "i18n/file_util_icu.cc",
900 "i18n/file_util_icu.h",
901 "i18n/i18n_constants.cc",
902 "i18n/i18n_constants.h",
903 "i18n/icu_encoding_detection.cc",
904 "i18n/icu_encoding_detection.h",
905 "i18n/icu_string_conversions.cc",
906 "i18n/icu_string_conversions.h",
909 "i18n/number_formatting.cc",
910 "i18n/number_formatting.h",
913 "i18n/streaming_utf8_validator.cc",
914 "i18n/streaming_utf8_validator.h",
915 "i18n/string_compare.cc",
916 "i18n/string_compare.h",
917 "i18n/string_search.cc",
918 "i18n/string_search.h",
919 "i18n/time_formatting.cc",
920 "i18n/time_formatting.h",
923 "i18n/utf8_validator_tables.cc",
924 "i18n/utf8_validator_tables.h",
926 defines = [ "BASE_I18N_IMPLEMENTATION" ]
927 configs += [ "//build/config/compiler:wexit_time_destructors" ]
930 "//base/third_party/dynamic_annotations",
935 source_set("prefs") {
937 "prefs/base_prefs_export.h",
938 "prefs/default_pref_store.cc",
939 "prefs/default_pref_store.h",
940 "prefs/json_pref_store.cc",
941 "prefs/json_pref_store.h",
942 "prefs/overlay_user_pref_store.cc",
943 "prefs/overlay_user_pref_store.h",
944 "prefs/persistent_pref_store.h",
945 "prefs/pref_change_registrar.cc",
946 "prefs/pref_change_registrar.h",
947 "prefs/pref_filter.h",
948 "prefs/pref_member.cc",
949 "prefs/pref_member.h",
950 "prefs/pref_notifier.h",
951 "prefs/pref_notifier_impl.cc",
952 "prefs/pref_notifier_impl.h",
953 "prefs/pref_observer.h",
954 "prefs/pref_registry.cc",
955 "prefs/pref_registry.h",
956 "prefs/pref_registry_simple.cc",
957 "prefs/pref_registry_simple.h",
958 "prefs/pref_service.cc",
959 "prefs/pref_service.h",
960 "prefs/pref_service_factory.cc",
961 "prefs/pref_service_factory.h",
962 "prefs/pref_store.cc",
963 "prefs/pref_store.h",
964 "prefs/pref_value_map.cc",
965 "prefs/pref_value_map.h",
966 "prefs/pref_value_store.cc",
967 "prefs/pref_value_store.h",
968 "prefs/scoped_user_pref_update.cc",
969 "prefs/scoped_user_pref_update.h",
970 "prefs/value_map_pref_store.cc",
971 "prefs/value_map_pref_store.h",
972 "prefs/writeable_pref_store.h",
975 defines = [ "BASE_PREFS_IMPLEMENTATION" ]
980 source_set("prefs_test_support") {
982 "prefs/mock_pref_change_callback.cc",
983 "prefs/pref_store_observer_mock.cc",
984 "prefs/pref_store_observer_mock.h",
985 "prefs/testing_pref_service.cc",
986 "prefs/testing_pref_service.h",
987 "prefs/testing_pref_store.cc",
988 "prefs/testing_pref_store.h",
998 source_set("message_loop_tests") {
1000 "message_loop/message_loop_test.cc",
1001 "message_loop/message_loop_test.h",
1010 test("base_unittests") {
1012 "android/application_status_listener_unittest.cc",
1013 "android/jni_android_unittest.cc",
1014 "android/jni_array_unittest.cc",
1015 "android/jni_string_unittest.cc",
1016 "android/path_utils_unittest.cc",
1017 "android/scoped_java_ref_unittest.cc",
1018 "android/sys_utils_unittest.cc",
1019 "async_socket_io_handler_unittest.cc",
1020 "at_exit_unittest.cc",
1021 "atomicops_unittest.cc",
1022 "barrier_closure_unittest.cc",
1023 "base64_unittest.cc",
1024 "big_endian_unittest.cc",
1028 "build_time_unittest.cc",
1029 "callback_helpers_unittest.cc",
1030 "callback_list_unittest.cc",
1031 "callback_list_unittest.nc",
1032 "callback_unittest.cc",
1033 "callback_unittest.nc",
1034 "cancelable_callback_unittest.cc",
1035 "command_line_unittest.cc",
1036 "containers/hash_tables_unittest.cc",
1037 "containers/linked_list_unittest.cc",
1038 "containers/mru_cache_unittest.cc",
1039 "containers/small_map_unittest.cc",
1040 "containers/stack_container_unittest.cc",
1042 "debug/crash_logging_unittest.cc",
1043 "debug/leak_tracker_unittest.cc",
1044 "debug/proc_maps_linux_unittest.cc",
1045 "debug/stack_trace_unittest.cc",
1046 "debug/trace_event_memory_unittest.cc",
1047 "debug/trace_event_synthetic_delay_unittest.cc",
1048 "debug/trace_event_system_stats_monitor_unittest.cc",
1049 "debug/trace_event_unittest.cc",
1050 "debug/trace_event_unittest.h",
1051 "debug/trace_event_win_unittest.cc",
1052 "deferred_sequenced_task_runner_unittest.cc",
1053 "environment_unittest.cc",
1054 "file_util_unittest.cc",
1055 "file_version_info_unittest.cc",
1056 "files/dir_reader_posix_unittest.cc",
1057 "files/file_path_unittest.cc",
1058 "files/file_proxy_unittest.cc",
1059 "files/file_unittest.cc",
1060 "files/file_util_proxy_unittest.cc",
1061 "files/important_file_writer_unittest.cc",
1062 "files/scoped_temp_dir_unittest.cc",
1063 "gmock_unittest.cc",
1066 "id_map_unittest.cc",
1067 "i18n/break_iterator_unittest.cc",
1068 "i18n/char_iterator_unittest.cc",
1069 "i18n/case_conversion_unittest.cc",
1070 "i18n/file_util_icu_unittest.cc",
1071 "i18n/icu_string_conversions_unittest.cc",
1072 "i18n/number_formatting_unittest.cc",
1073 "i18n/rtl_unittest.cc",
1074 "i18n/streaming_utf8_validator_unittest.cc",
1075 "i18n/string_search_unittest.cc",
1076 "i18n/time_formatting_unittest.cc",
1077 "i18n/timezone_unittest.cc",
1078 "ini_parser_unittest.cc",
1079 "ios/device_util_unittest.mm",
1080 "json/json_parser_unittest.cc",
1081 "json/json_reader_unittest.cc",
1082 "json/json_value_converter_unittest.cc",
1083 "json/json_value_serializer_unittest.cc",
1084 "json/json_writer_unittest.cc",
1085 "json/string_escape_unittest.cc",
1086 "lazy_instance_unittest.cc",
1087 "logging_unittest.cc",
1088 "mac/bind_objc_block_unittest.mm",
1089 "mac/foundation_util_unittest.mm",
1090 "mac/libdispatch_task_runner_unittest.cc",
1091 "mac/mac_util_unittest.mm",
1092 "mac/objc_property_releaser_unittest.mm",
1093 "mac/scoped_nsobject_unittest.mm",
1094 "mac/scoped_sending_event_unittest.mm",
1096 "memory/aligned_memory_unittest.cc",
1097 "memory/discardable_memory_manager_unittest.cc",
1098 "memory/discardable_memory_unittest.cc",
1099 "memory/linked_ptr_unittest.cc",
1100 "memory/ref_counted_memory_unittest.cc",
1101 "memory/ref_counted_unittest.cc",
1102 "memory/scoped_ptr_unittest.cc",
1103 "memory/scoped_ptr_unittest.nc",
1104 "memory/scoped_vector_unittest.cc",
1105 "memory/shared_memory_unittest.cc",
1106 "memory/singleton_unittest.cc",
1107 "memory/weak_ptr_unittest.cc",
1108 "memory/weak_ptr_unittest.nc",
1109 "message_loop/message_loop_proxy_impl_unittest.cc",
1110 "message_loop/message_loop_proxy_unittest.cc",
1111 "message_loop/message_loop_unittest.cc",
1112 "message_loop/message_pump_glib_unittest.cc",
1113 "message_loop/message_pump_io_ios_unittest.cc",
1114 "metrics/sample_map_unittest.cc",
1115 "metrics/sample_vector_unittest.cc",
1116 "metrics/bucket_ranges_unittest.cc",
1117 "metrics/field_trial_unittest.cc",
1118 "metrics/histogram_base_unittest.cc",
1119 "metrics/histogram_delta_serialization_unittest.cc",
1120 "metrics/histogram_snapshot_manager_unittest.cc",
1121 "metrics/histogram_unittest.cc",
1122 "metrics/sparse_histogram_unittest.cc",
1123 "metrics/stats_table_unittest.cc",
1124 "metrics/statistics_recorder_unittest.cc",
1125 "observer_list_unittest.cc",
1126 "os_compat_android_unittest.cc",
1127 "path_service_unittest.cc",
1128 "pickle_unittest.cc",
1129 "platform_file_unittest.cc",
1130 "posix/file_descriptor_shuffle_unittest.cc",
1131 "posix/unix_domain_socket_linux_unittest.cc",
1132 "power_monitor/power_monitor_unittest.cc",
1133 "prefs/default_pref_store_unittest.cc",
1134 "prefs/json_pref_store_unittest.cc",
1135 "prefs/mock_pref_change_callback.h",
1136 "prefs/overlay_user_pref_store_unittest.cc",
1137 "prefs/pref_change_registrar_unittest.cc",
1138 "prefs/pref_member_unittest.cc",
1139 "prefs/pref_notifier_impl_unittest.cc",
1140 "prefs/pref_service_unittest.cc",
1141 "prefs/pref_value_map_unittest.cc",
1142 "prefs/pref_value_store_unittest.cc",
1143 "prefs/scoped_user_pref_update_unittest.cc",
1144 "process/memory_unittest.cc",
1145 "process/memory_unittest_mac.h",
1146 "process/memory_unittest_mac.mm",
1147 "process/process_metrics_unittest.cc",
1148 "process/process_metrics_unittest_ios.cc",
1149 "process/process_util_unittest.cc",
1150 "process/process_util_unittest_ios.cc",
1151 "profiler/tracked_time_unittest.cc",
1152 "rand_util_unittest.cc",
1153 "numerics/safe_numerics_unittest.cc",
1154 "scoped_clear_errno_unittest.cc",
1155 "scoped_generic_unittest.cc",
1156 "scoped_native_library_unittest.cc",
1157 "scoped_observer.h",
1158 "security_unittest.cc",
1159 "sequence_checker_unittest.cc",
1161 "stl_util_unittest.cc",
1162 "strings/nullable_string16_unittest.cc",
1163 "strings/safe_sprintf_unittest.cc",
1164 "strings/string16_unittest.cc",
1165 "strings/stringprintf_unittest.cc",
1166 "strings/string_number_conversions_unittest.cc",
1167 "strings/string_piece_unittest.cc",
1168 "strings/string_split_unittest.cc",
1169 "strings/string_tokenizer_unittest.cc",
1170 "strings/string_util_unittest.cc",
1171 "strings/stringize_macros_unittest.cc",
1172 "strings/sys_string_conversions_mac_unittest.mm",
1173 "strings/sys_string_conversions_unittest.cc",
1174 "strings/utf_offset_string_conversions_unittest.cc",
1175 "strings/utf_string_conversions_unittest.cc",
1176 "sync_socket_unittest.cc",
1177 "synchronization/cancellation_flag_unittest.cc",
1178 "synchronization/condition_variable_unittest.cc",
1179 "synchronization/lock_unittest.cc",
1180 "synchronization/waitable_event_unittest.cc",
1181 "synchronization/waitable_event_watcher_unittest.cc",
1182 "sys_info_unittest.cc",
1183 "system_monitor/system_monitor_unittest.cc",
1184 "task/cancelable_task_tracker_unittest.cc",
1185 "task_runner_util_unittest.cc",
1186 "template_util_unittest.cc",
1187 "test/expectations/expectation_unittest.cc",
1188 "test/expectations/parser_unittest.cc",
1189 "test/statistics_delta_reader_unittest.cc",
1190 "test/test_reg_util_win_unittest.cc",
1191 "test/trace_event_analyzer_unittest.cc",
1192 "threading/non_thread_safe_unittest.cc",
1193 "threading/platform_thread_unittest.cc",
1194 "threading/sequenced_worker_pool_unittest.cc",
1195 "threading/simple_thread_unittest.cc",
1196 "threading/thread_checker_unittest.cc",
1197 "threading/thread_collision_warner_unittest.cc",
1198 "threading/thread_id_name_manager_unittest.cc",
1199 "threading/thread_local_storage_unittest.cc",
1200 "threading/thread_local_unittest.cc",
1201 "threading/thread_unittest.cc",
1202 "threading/watchdog_unittest.cc",
1203 "threading/worker_pool_posix_unittest.cc",
1204 "threading/worker_pool_unittest.cc",
1205 "time/pr_time_unittest.cc",
1206 "time/time_unittest.cc",
1207 "time/time_win_unittest.cc",
1208 "timer/hi_res_timer_manager_unittest.cc",
1209 "timer/mock_timer_unittest.cc",
1210 "timer/timer_unittest.cc",
1211 "tools_sanity_unittest.cc",
1212 "tracked_objects_unittest.cc",
1213 "tuple_unittest.cc",
1214 "values_unittest.cc",
1215 "version_unittest.cc",
1218 "win/enum_variant_unittest.cc",
1219 "win/event_trace_consumer_unittest.cc",
1220 "win/event_trace_controller_unittest.cc",
1221 "win/event_trace_provider_unittest.cc",
1222 "win/i18n_unittest.cc",
1223 "win/iunknown_impl_unittest.cc",
1224 "win/message_window_unittest.cc",
1225 "win/object_watcher_unittest.cc",
1226 "win/pe_image_unittest.cc",
1227 "win/registry_unittest.cc",
1228 "win/scoped_bstr_unittest.cc",
1229 "win/scoped_comptr_unittest.cc",
1230 "win/scoped_process_information_unittest.cc",
1231 "win/scoped_variant_unittest.cc",
1232 "win/shortcut_unittest.cc",
1233 "win/startup_information_unittest.cc",
1234 "win/win_util_unittest.cc",
1235 "win/wrapped_window_proc_unittest.cc",
1241 ":message_loop_tests",
1243 ":prefs_test_support",
1245 "//base/test:run_all_unittests",
1246 "//base/test:test_support",
1247 "//base/third_party/dynamic_annotations",
1250 "//third_party/icu",
1255 "metrics/stats_table_uinittest.cc", # Requires spawning a process.
1256 "process/memory_unittest.cc",
1257 "process/memory_unittest_mac.h",
1258 "process/memory_unittest_mac.mm",
1259 "process/process_util_unittest.cc",
1262 # Pull in specific Mac files for iOS (which have been filtered out by file
1264 set_sources_assignment_filter([])
1266 "mac/bind_objc_block_unittest.mm",
1267 "mac/foundation_util_unittest.mm",
1268 "mac/objc_property_releaser_unittest.mm",
1269 "mac/scoped_nsobject_unittest.mm",
1270 "sys_string_conversions_mac_unittest.mm",
1272 set_sources_assignment_filter(sources_assignment_filter)
1274 # TODO(GYP): dep on copy_test_data_ios action.
1278 sources -= [ "file_version_info_unittest.cc" ]
1279 sources += [ "nix/xdg_util_unittest.cc" ]
1280 defines = [ "USE_SYMBOLIZE" ]
1281 configs += [ "//build/config/linux:glib" ]
1284 if (!is_linux || use_ozone) {
1285 sources -= [ "message_loop/message_pump_glib_unittest.cc" ]
1288 if (is_posix || is_ios) {
1289 sources += [ "message_loop/message_pump_libevent_unittest.cc" ]
1290 deps += [ "//third_party/libevent" ]
1294 set_sources_assignment_filter([])
1295 sources += [ "debug/proc_maps_linux_unittest.cc" ]
1296 set_sources_assignment_filter(sources_assignment_filter)
1301 generate_jni("base_jni_headers") {
1303 "android/java/src/org/chromium/base/ApplicationStatus.java",
1304 "android/java/src/org/chromium/base/BuildInfo.java",
1305 "android/java/src/org/chromium/base/CommandLine.java",
1306 "android/java/src/org/chromium/base/ContentUriUtils.java",
1307 "android/java/src/org/chromium/base/CpuFeatures.java",
1308 "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java",
1309 "android/java/src/org/chromium/base/library_loader/LibraryLoader.java",
1310 "android/java/src/org/chromium/base/MemoryPressureListener.java",
1311 "android/java/src/org/chromium/base/JavaHandlerThread.java",
1312 "android/java/src/org/chromium/base/PathService.java",
1313 "android/java/src/org/chromium/base/PathUtils.java",
1314 "android/java/src/org/chromium/base/PowerMonitor.java",
1315 "android/java/src/org/chromium/base/SystemMessageHandler.java",
1316 "android/java/src/org/chromium/base/SysUtils.java",
1317 "android/java/src/org/chromium/base/ThreadUtils.java",
1318 "android/java/src/org/chromium/base/TraceEvent.java",
1320 jni_package = "base"
1323 java_cpp_template("base_java_application_state") {
1325 "android/java/src/org/chromium/base/ApplicationState.template",
1328 "android/application_state_list.h"
1331 package_name = "org/chromium/base"
1334 java_cpp_template("base_java_memory_pressure_level_list") {
1336 "android/java/src/org/chromium/base/MemoryPressureLevelList.template",
1339 "memory/memory_pressure_level_list.h"
1342 package_name = "org/chromium/base"
1345 java_cpp_template("base_native_libraries_gen") {
1347 "android/java/templates/NativeLibraries.template",
1350 "android/java/templates/native_libraries_array.h",
1353 package_name = "org/chromium/base/library_loader"
1354 include_path = "android/java/templates"