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/event_log.cc",
32 "android/event_log.h",
33 "android/fifo_utils.cc",
34 "android/fifo_utils.h",
35 "android/important_file_writer_android.cc",
36 "android/important_file_writer_android.h",
37 "android/scoped_java_ref.cc",
38 "android/scoped_java_ref.h",
39 "android/jni_android.cc",
40 "android/jni_android.h",
41 "android/jni_array.cc",
42 "android/jni_array.h",
43 "android/jni_registrar.cc",
44 "android/jni_registrar.h",
45 "android/jni_string.cc",
46 "android/jni_string.h",
47 "android/jni_weak_ref.cc",
48 "android/jni_weak_ref.h",
49 "android/library_loader/library_loader_hooks.cc",
50 "android/library_loader/library_loader_hooks.h",
51 "android/memory_pressure_listener_android.cc",
52 "android/memory_pressure_listener_android.h",
53 "android/java_handler_thread.cc",
54 "android/java_handler_thread.h",
55 "android/path_service_android.cc",
56 "android/path_service_android.h",
57 "android/path_utils.cc",
58 "android/path_utils.h",
59 "android/sys_utils.cc",
60 "android/sys_utils.h",
61 "android/thread_utils.h",
62 "android/trace_event_binding.cc",
63 "android/trace_event_binding.h",
64 "async_socket_io_handler.h",
65 "async_socket_io_handler_posix.cc",
66 "async_socket_io_handler_win.cc",
70 "atomic_sequence_num.h",
72 "atomicops_internals_gcc.h",
73 "atomicops_internals_mac.h",
74 "atomicops_internals_tsan.h",
75 "atomicops_internals_x86_gcc.cc",
76 "atomicops_internals_x86_gcc.h",
77 "atomicops_internals_x86_msvc.h",
83 "base_paths_android.cc",
84 "base_paths_android.h",
87 "base_paths_posix.cc",
101 "bind_internal_win.h",
106 "callback_helpers.cc",
107 "callback_helpers.h",
108 "callback_internal.cc",
109 "callback_internal.h",
110 "cancelable_callback.h",
113 "compiler_specific.h",
114 "containers/hash_tables.h",
115 "containers/linked_list.h",
116 "containers/mru_cache.h",
117 "containers/small_map.h",
118 "containers/stack_container.h",
121 "critical_closure.h",
122 "critical_closure_internal_ios.mm",
125 "debug/crash_logging.cc",
126 "debug/crash_logging.h",
129 "debug/debugger_posix.cc",
130 "debug/debugger_win.cc",
131 # This file depends on files from the "allocator" target,
132 # but this target does not depend on "allocator" (see
133 # allocator.gyp for details).
134 "debug/leak_annotations.h",
135 "debug/leak_tracker.h",
136 "debug/proc_maps_linux.cc",
137 "debug/proc_maps_linux.h",
140 "debug/stack_trace.cc",
141 "debug/stack_trace.h",
142 "debug/stack_trace_android.cc",
143 "debug/stack_trace_posix.cc",
144 "debug/stack_trace_win.cc",
145 "debug/trace_event.h",
146 "debug/trace_event_android.cc",
147 "debug/trace_event_impl.cc",
148 "debug/trace_event_impl.h",
149 "debug/trace_event_impl_constants.cc",
150 "debug/trace_event_memory.cc",
151 "debug/trace_event_memory.h",
152 "debug/trace_event_synthetic_delay.cc",
153 "debug/trace_event_synthetic_delay.h",
154 "debug/trace_event_system_stats_monitor.cc",
155 "debug/trace_event_system_stats_monitor.h",
156 "debug/trace_event_win.cc",
157 "deferred_sequenced_task_runner.cc",
158 "deferred_sequenced_task_runner.h",
161 "file_descriptor_posix.h",
164 "file_util_android.cc",
165 "file_util_linux.cc",
167 "file_util_posix.cc",
169 "file_version_info.h",
170 "file_version_info_mac.h",
171 "file_version_info_mac.mm",
172 "file_version_info_win.cc",
173 "file_version_info_win.h",
174 "files/dir_reader_fallback.h",
175 "files/dir_reader_linux.h",
176 "files/dir_reader_posix.h",
178 "files/file_posix.cc",
180 "files/file_enumerator.cc",
181 "files/file_enumerator.h",
182 "files/file_enumerator_posix.cc",
183 "files/file_enumerator_win.cc",
184 "files/file_path.cc",
186 "files/file_path_constants.cc",
187 "files/file_path_watcher.cc",
188 "files/file_path_watcher.h",
189 "files/file_path_watcher_fsevents.cc",
190 "files/file_path_watcher_fsevents.h",
191 "files/file_path_watcher_kqueue.cc",
192 "files/file_path_watcher_kqueue.h",
193 "files/file_path_watcher_linux.cc",
194 "files/file_path_watcher_mac.cc",
195 "files/file_path_watcher_win.cc",
196 "files/file_proxy.cc",
197 "files/file_proxy.h",
198 "files/file_util_proxy.cc",
199 "files/file_util_proxy.h",
200 "files/important_file_writer.cc",
201 "files/important_file_writer.h",
202 "files/memory_mapped_file.cc",
203 "files/memory_mapped_file.h",
204 "files/memory_mapped_file_posix.cc",
205 "files/memory_mapped_file_win.cc",
206 "files/scoped_file.cc",
207 "files/scoped_file.h",
208 "files/scoped_temp_dir.cc",
209 "files/scoped_temp_dir.h",
223 "ios/device_util.mm",
226 "ios/scoped_critical_action.h",
227 "ios/scoped_critical_action.mm",
228 "json/json_file_value_serializer.cc",
229 "json/json_file_value_serializer.h",
230 "json/json_parser.cc",
231 "json/json_parser.h",
232 "json/json_reader.cc",
233 "json/json_reader.h",
234 "json/json_string_value_serializer.cc",
235 "json/json_string_value_serializer.h",
236 "json/json_value_converter.h",
237 "json/json_writer.cc",
238 "json/json_writer.h",
239 "json/string_escape.cc",
240 "json/string_escape.h",
249 "mac/authorization_util.h",
250 "mac/authorization_util.mm",
251 "mac/bind_objc_block.h",
252 "mac/bundle_locations.h",
253 "mac/bundle_locations.mm",
254 "mac/cocoa_protocols.h",
255 "mac/foundation_util.h",
256 "mac/foundation_util.mm",
257 "mac/launch_services_util.cc",
258 "mac/launch_services_util.h",
261 "mac/libdispatch_task_runner.cc",
262 "mac/libdispatch_task_runner.h",
264 "mac/mac_logging.cc",
267 "mac/mach_logging.cc",
268 "mac/mach_logging.h",
269 "mac/objc_property_releaser.h",
270 "mac/objc_property_releaser.mm",
271 "mac/os_crash_dumps.cc",
272 "mac/os_crash_dumps.h",
273 "mac/scoped_aedesc.h",
274 "mac/scoped_authorizationref.h",
275 "mac/scoped_block.h",
276 "mac/scoped_cftyperef.h",
277 "mac/scoped_ioobject.h",
278 "mac/scoped_ioplugininterface.h",
279 "mac/scoped_launch_data.h",
280 "mac/scoped_mach_port.cc",
281 "mac/scoped_mach_port.h",
282 "mac/scoped_mach_vm.cc",
283 "mac/scoped_mach_vm.h",
284 "mac/scoped_nsautorelease_pool.h",
285 "mac/scoped_nsautorelease_pool.mm",
286 "mac/scoped_nsexception_enabler.h",
287 "mac/scoped_nsexception_enabler.mm",
288 "mac/scoped_nsobject.h",
289 "mac/scoped_sending_event.h",
290 "mac/scoped_sending_event.mm",
291 "mac/sdk_forward_declarations.h",
295 "memory/aligned_memory.cc",
296 "memory/aligned_memory.h",
297 "memory/discardable_memory.cc",
298 "memory/discardable_memory.h",
299 "memory/discardable_memory_android.cc",
300 "memory/discardable_memory_emulated.cc",
301 "memory/discardable_memory_emulated.h",
302 "memory/discardable_memory_linux.cc",
303 "memory/discardable_memory_mac.cc",
304 "memory/discardable_memory_malloc.cc",
305 "memory/discardable_memory_malloc.h",
306 "memory/discardable_memory_manager.cc",
307 "memory/discardable_memory_manager.h",
308 "memory/discardable_memory_win.cc",
309 "memory/linked_ptr.h",
310 "memory/manual_constructor.h",
311 "memory/memory_pressure_listener.cc",
312 "memory/memory_pressure_listener.h",
313 "memory/raw_scoped_refptr_mismatch_checker.h",
314 "memory/ref_counted.cc",
315 "memory/ref_counted.h",
316 "memory/ref_counted_delete_on_message_loop.h",
317 "memory/ref_counted_memory.cc",
318 "memory/ref_counted_memory.h",
319 "memory/scoped_handle.h",
320 "memory/scoped_open_process.h",
321 "memory/scoped_policy.h",
322 "memory/scoped_ptr.h",
323 "memory/scoped_vector.h",
324 "memory/shared_memory.h",
325 "memory/shared_memory_android.cc",
326 "memory/shared_memory_nacl.cc",
327 "memory/shared_memory_posix.cc",
328 "memory/shared_memory_win.cc",
329 "memory/singleton.cc",
330 "memory/singleton.h",
331 "memory/weak_ptr.cc",
333 "message_loop/incoming_task_queue.cc",
334 "message_loop/incoming_task_queue.h",
335 "message_loop/message_loop.cc",
336 "message_loop/message_loop.h",
337 "message_loop/message_loop_proxy.cc",
338 "message_loop/message_loop_proxy.h",
339 "message_loop/message_loop_proxy_impl.cc",
340 "message_loop/message_loop_proxy_impl.h",
341 "message_loop/message_pump.cc",
342 "message_loop/message_pump.h",
343 "message_loop/message_pump_android.cc",
344 "message_loop/message_pump_android.h",
345 "message_loop/message_pump_default.cc",
346 "message_loop/message_pump_default.h",
347 "message_loop/message_pump_glib.cc",
348 "message_loop/message_pump_glib.h",
349 "message_loop/message_pump_io_ios.cc",
350 "message_loop/message_pump_io_ios.h",
351 "message_loop/message_pump_libevent.cc",
352 "message_loop/message_pump_libevent.h",
353 "message_loop/message_pump_mac.h",
354 "message_loop/message_pump_mac.mm",
355 "message_loop/message_pump_observer.h",
356 "message_loop/message_pump_win.cc",
357 "message_loop/message_pump_win.h",
358 "metrics/field_trial.cc",
359 "metrics/field_trial.h",
360 "metrics/sample_map.cc",
361 "metrics/sample_map.h",
362 "metrics/sample_vector.cc",
363 "metrics/sample_vector.h",
364 "metrics/bucket_ranges.cc",
365 "metrics/bucket_ranges.h",
366 "metrics/histogram.cc",
367 "metrics/histogram.h",
368 "metrics/histogram_base.cc",
369 "metrics/histogram_base.h",
370 "metrics/histogram_delta_serialization.cc",
371 "metrics/histogram_delta_serialization.",
372 "metrics/histogram_flattener.h",
373 "metrics/histogram_samples.cc",
374 "metrics/histogram_samples.h",
375 "metrics/histogram_snapshot_manager.cc",
376 "metrics/histogram_snapshot_manager.h",
377 "metrics/sparse_histogram.cc",
378 "metrics/sparse_histogram.h",
379 "metrics/statistics_recorder.cc",
380 "metrics/statistics_recorder.h",
381 "metrics/stats_counters.cc",
382 "metrics/stats_counters.h",
383 "metrics/stats_table.cc",
384 "metrics/stats_table.h",
385 "metrics/user_metrics.cc",
386 "metrics/user_metrics.h",
387 "metrics/user_metrics_action.h",
390 "native_library_mac.mm",
391 "native_library_posix.cc",
392 "native_library_win.cc",
393 "numerics/safe_conversions.h",
394 "numerics/safe_conversions_impl.h",
395 "numerics/safe_math.h",
396 "numerics/safe_math_impl.h",
397 "nix/mime_util_xdg.cc",
398 "nix/mime_util_xdg.h",
402 "observer_list_threadsafe.h",
403 "os_compat_android.cc",
404 "os_compat_android.h",
414 "posix/eintr_wrapper.h",
415 "posix/file_descriptor_shuffle.cc",
416 "posix/global_descriptors.cc",
417 "posix/global_descriptors.h",
418 "posix/unix_domain_socket_linux.cc",
419 "posix/unix_domain_socket_linux.h",
420 "power_monitor/power_monitor.cc",
421 "power_monitor/power_monitor.h",
422 "power_monitor/power_monitor_device_source.cc",
423 "power_monitor/power_monitor_device_source.h",
424 "power_monitor/power_monitor_device_source_android.cc",
425 "power_monitor/power_monitor_device_source_android.h",
426 "power_monitor/power_monitor_device_source_ios.mm",
427 "power_monitor/power_monitor_device_source_mac.mm",
428 "power_monitor/power_monitor_device_source_posix.cc",
429 "power_monitor/power_monitor_device_source_win.cc",
430 "power_monitor/power_monitor_source.cc",
431 "power_monitor/power_monitor_source.h",
432 "power_monitor/power_observer.h",
433 "process/internal_linux.cc",
434 "process/internal_linux.h",
437 "process/kill_mac.cc",
438 "process/kill_posix.cc",
439 "process/kill_win.cc",
442 "process/launch_ios.cc",
443 "process/launch_mac.cc",
444 "process/launch_posix.cc",
445 "process/launch_win.cc",
448 "process/memory_linux.cc",
449 "process/memory_mac.mm",
450 "process/memory_win.cc",
452 "process/process_handle_freebsd.cc",
453 "process/process_handle_linux.cc",
454 "process/process_handle_mac.cc",
455 "process/process_handle_openbsd.cc",
456 "process/process_handle_posix.cc",
457 "process/process_handle_win.cc",
458 "process/process_info.h",
459 "process/process_info_mac.cc",
460 "process/process_info_win.cc",
461 "process/process_iterator.cc",
462 "process/process_iterator.h",
463 "process/process_iterator_freebsd.cc",
464 "process/process_iterator_linux.cc",
465 "process/process_iterator_mac.cc",
466 "process/process_iterator_openbsd.cc",
467 "process/process_iterator_win.cc",
468 "process/process_linux.cc",
469 "process/process_metrics.cc",
470 "process/process_metrics.h",
471 "process/process_metrics_freebsd.cc",
472 "process/process_metrics_ios.cc",
473 "process/process_metrics_linux.cc",
474 "process/process_metrics_mac.cc",
475 "process/process_metrics_openbsd.cc",
476 "process/process_metrics_posix.cc",
477 "process/process_metrics_win.cc",
478 "process/process_posix.cc",
479 "process/process_win.cc",
480 "profiler/scoped_profile.cc",
481 "profiler/scoped_profile.h",
482 "profiler/alternate_timer.cc",
483 "profiler/alternate_timer.h",
484 "profiler/tracked_time.cc",
485 "profiler/tracked_time.h",
489 "rand_util_posix.cc",
493 "safe_strerror_posix.cc",
494 "safe_strerror_posix.h",
496 "scoped_native_library.cc",
497 "scoped_native_library.h",
498 "sequence_checker.h",
499 "sequence_checker_impl.cc",
500 "sequence_checker_impl.h",
501 "sequenced_task_runner.cc",
502 "sequenced_task_runner.h",
503 "sequenced_task_runner_helpers.h",
507 "single_thread_task_runner.h",
509 "strings/latin1_string_conversions.cc",
510 "strings/latin1_string_conversions.h",
511 "strings/nullable_string16.cc",
512 "strings/nullable_string16.h",
513 "strings/safe_sprintf.cc",
514 "strings/safe_sprintf.h",
515 "strings/string16.cc",
516 "strings/string16.h",
517 "strings/string_number_conversions.cc",
518 "strings/string_split.cc",
519 "strings/string_split.h",
520 "strings/string_number_conversions.h",
521 "strings/string_piece.cc",
522 "strings/string_piece.h",
523 "strings/string_tokenizer.h",
524 "strings/string_util.cc",
525 "strings/string_util.h",
526 "strings/string_util_constants.cc",
527 "strings/string_util_posix.h",
528 "strings/string_util_win.h",
529 "strings/stringize_macros.h",
530 "strings/stringprintf.cc",
531 "strings/stringprintf.h",
532 "strings/sys_string_conversions.h",
533 "strings/sys_string_conversions_mac.mm",
534 "strings/sys_string_conversions_posix.cc",
535 "strings/sys_string_conversions_win.cc",
536 "strings/utf_offset_string_conversions.cc",
537 "strings/utf_offset_string_conversions.h",
538 "strings/utf_string_conversion_utils.cc",
539 "strings/utf_string_conversion_utils.h",
540 "strings/utf_string_conversions.cc",
541 "strings/utf_string_conversions.h",
542 "supports_user_data.cc",
543 "supports_user_data.h",
545 "sync_socket_posix.cc",
546 "sync_socket_win.cc",
547 "synchronization/cancellation_flag.cc",
548 "synchronization/cancellation_flag.h",
549 "synchronization/condition_variable.h",
550 "synchronization/condition_variable_posix.cc",
551 "synchronization/condition_variable_win.cc",
552 "synchronization/lock.cc",
553 "synchronization/lock.h",
554 "synchronization/lock_impl.h",
555 "synchronization/lock_impl_posix.cc",
556 "synchronization/lock_impl_win.cc",
557 "synchronization/spin_wait.h",
558 "synchronization/waitable_event.h",
559 "synchronization/waitable_event_posix.cc",
560 "synchronization/waitable_event_watcher.h",
561 "synchronization/waitable_event_watcher_posix.cc",
562 "synchronization/waitable_event_watcher_win.cc",
563 "synchronization/waitable_event_win.cc",
564 "system_monitor/system_monitor.cc",
565 "system_monitor/system_monitor.h",
569 "sys_info_android.cc",
570 "sys_info_chromeos.cc",
571 "sys_info_freebsd.cc",
575 "sys_info_openbsd.cc",
578 "task/cancelable_task_tracker.cc",
579 "task/cancelable_task_tracker.h",
582 "task_runner_util.h",
584 "thread_task_runner_handle.cc",
585 "thread_task_runner_handle.h",
586 "threading/non_thread_safe.h",
587 "threading/non_thread_safe_impl.cc",
588 "threading/non_thread_safe_impl.h",
589 "threading/platform_thread.h",
590 "threading/platform_thread_android.cc",
591 "threading/platform_thread_linux.cc",
592 "threading/platform_thread_mac.mm",
593 "threading/platform_thread_posix.cc",
594 "threading/platform_thread_win.cc",
595 "threading/post_task_and_reply_impl.cc",
596 "threading/post_task_and_reply_impl.h",
597 "threading/sequenced_worker_pool.cc",
598 "threading/sequenced_worker_pool.h",
599 "threading/simple_thread.cc",
600 "threading/simple_thread.h",
601 "threading/thread.cc",
602 "threading/thread.h",
603 "threading/thread_checker.h",
604 "threading/thread_checker_impl.cc",
605 "threading/thread_checker_impl.h",
606 "threading/thread_collision_warner.cc",
607 "threading/thread_collision_warner.h",
608 "threading/thread_id_name_manager.cc",
609 "threading/thread_id_name_manager.h",
610 "threading/thread_local.h",
611 "threading/thread_local_android.cc",
612 "threading/thread_local_posix.cc",
613 "threading/thread_local_storage.cc",
614 "threading/thread_local_storage.h",
615 "threading/thread_local_storage_posix.cc",
616 "threading/thread_local_storage_win.cc",
617 "threading/thread_local_win.cc",
618 "threading/thread_restrictions.h",
619 "threading/thread_restrictions.cc",
620 "threading/watchdog.cc",
621 "threading/watchdog.h",
622 "threading/worker_pool.h",
623 "threading/worker_pool.cc",
624 "threading/worker_pool_posix.cc",
625 "threading/worker_pool_posix.h",
626 "threading/worker_pool_win.cc",
629 "time/default_clock.cc",
630 "time/default_clock.h",
631 "time/default_tick_clock.cc",
632 "time/default_tick_clock.h",
633 "time/tick_clock.cc",
638 "time/time_posix.cc",
640 "timer/elapsed_timer.cc",
641 "timer/elapsed_timer.h",
642 "timer/hi_res_timer_manager.h",
643 "timer/hi_res_timer_manager_posix.cc",
644 "timer/hi_res_timer_manager_win.cc",
645 "timer/mock_timer.cc",
646 "timer/mock_timer.h",
649 "tracked_objects.cc",
656 "value_conversions.cc",
657 "value_conversions.h",
662 "win/enum_variant.cc",
663 "win/enum_variant.h",
664 "win/event_trace_consumer.h",
665 "win/event_trace_controller.cc",
666 "win/event_trace_controller.h",
667 "win/event_trace_provider.cc",
668 "win/event_trace_provider.h",
671 "win/iat_patch_function.cc",
672 "win/iat_patch_function.h",
673 "win/iunknown_impl.cc",
674 "win/iunknown_impl.h",
675 "win/message_window.cc",
676 "win/message_window.h",
679 "win/object_watcher.cc",
680 "win/object_watcher.h",
683 "win/resource_util.cc",
684 "win/resource_util.h",
685 "win/scoped_bstr.cc",
687 "win/scoped_co_mem.h",
688 "win/scoped_com_initializer.h",
689 "win/scoped_comptr.h",
690 "win/scoped_gdi_object.h",
691 "win/scoped_handle.cc",
692 "win/scoped_handle.h",
694 "win/scoped_hglobal.h",
695 "win/scoped_process_information.cc",
696 "win/scoped_process_information.h",
697 "win/scoped_propvariant.h",
698 "win/scoped_select_object.h",
699 "win/scoped_variant.cc",
700 "win/scoped_variant.h",
703 "win/startup_information.cc",
704 "win/startup_information.h",
707 "win/windows_version.cc",
708 "win/windows_version.h",
709 "win/wrapped_window_proc.cc",
710 "win/wrapped_window_proc.h",
714 sources += [ "files/file_path_watcher_stub.cc" ]
718 "process/process_handle_freebsd.cc",
719 "process/process_handle_openbsd.cc",
720 "process/process_iterator_freebsd.cc",
721 "process/process_iterator_openbsd.cc",
722 "process/process_metrics_freebsd.cc",
723 "process/process_metrics_openbsd.cc",
724 "sys_info_freebsd.cc",
725 "sys_info_openbsd.cc",
729 "BASE_IMPLEMENTATION",
734 "//base/allocator:allocator_extension_thunks",
735 "//base/third_party/dynamic_annotations",
736 "//base/third_party/nspr",
737 "//third_party/modp_b64",
742 "memory/discardable_memory_ashmem_allocator.cc",
743 "memory/discardable_memory_ashmem_allocator.h",
744 "memory/discardable_memory_ashmem.cc",
745 "memory/discardable_memory_ashmem.h",
748 "base_paths_posix.cc",
749 "power_monitor/power_monitor_device_source_posix.cc",
752 # Android uses some Linux sources, put those back.
753 set_sources_assignment_filter([])
755 "debug/proc_maps_linux.cc",
756 "files/file_path_watcher_linux.cc",
757 "process/memory_linux.cc",
758 "process/internal_linux.cc",
759 "process/process_handle_linux.cc",
760 "process/process_iterator_linux.cc",
761 "process/process_metrics_linux.cc",
762 "posix/unix_domain_socket_linux.cc",
765 set_sources_assignment_filter(sources_assignment_filter)
769 "//third_party/ashmem",
770 "//third_party/android_tools:cpu_features"
773 # logging.cc uses the Android logging library.
777 "debug/stack_trace_posix.cc",
782 # These things would otherwise be built on a Posix build but aren't
785 "debug/stack_trace_posix.cc",
786 "files/file_enumerator_posix.cc",
787 "file_util_posix.cc",
788 "message_loop/message_pump_libevent.cc",
789 "process/kill_posix.cc",
790 "process/launch_posix.cc",
791 "process/process_metrics_posix.cc",
792 "process/process_posix.cc",
793 "metrics/field_trial.cc",
794 "native_library_posix.cc",
795 "memory/shared_memory_posix.cc",
796 "sync_socket_posix.cc",
805 "memory/shared_memory_nacl.cc",
812 "message_loop/message_pump_libevent.cc",
813 "strings/string16.cc",
814 # Not using sha1_win.cc because it may have caused a
815 # regression to page cycler moz.
824 "/DELAYLOAD:powrprof.dll",
826 } else if (!is_nacl) {
828 deps += [ "//third_party/libevent" ]
834 "base_paths_posix.cc",
835 "native_library_posix.cc",
836 "strings/sys_string_conversions_posix.cc",
838 deps += [ "//third_party/mach_override" ]
842 "files/file_path_watcher_fsevents.cc",
843 "files/file_path_watcher_fsevents.h",
844 "files/file_path_watcher_kqueue.cc",
845 "files/file_path_watcher_kqueue.h",
851 # TODO(brettw) this will need to be parameterized at some point.
853 "//build/config/linux:glib",
856 configs += linux_configs
857 all_dependent_configs = linux_configs
859 # These dependencies are not required on Android, and in the case
860 # of xdg_mime must be excluded due to licensing restrictions.
862 "//base/third_party/symbolize",
863 "//base/third_party/xdg_mime",
864 "//base/third_party/xdg_user_dirs",
869 "nix/mime_util_xdg.cc",
870 "nix/mime_util_xdg.h",
878 "message_loop/message_pump_glib.cc",
879 "message_loop/message_pump_glib.h",
884 # This is the subset of files from base that should not be used with a dynamic
885 # library. Note that this library cannot depend on base because base depends on
887 source_set("base_static") {
897 output_name = "base_i18n"
899 "i18n/base_i18n_export.h",
900 "i18n/bidi_line_iterator.cc",
901 "i18n/bidi_line_iterator.h",
902 "i18n/break_iterator.cc",
903 "i18n/break_iterator.h",
904 "i18n/case_conversion.cc",
905 "i18n/case_conversion.h",
906 "i18n/char_iterator.cc",
907 "i18n/char_iterator.h",
908 "i18n/file_util_icu.cc",
909 "i18n/file_util_icu.h",
910 "i18n/i18n_constants.cc",
911 "i18n/i18n_constants.h",
912 "i18n/icu_encoding_detection.cc",
913 "i18n/icu_encoding_detection.h",
914 "i18n/icu_string_conversions.cc",
915 "i18n/icu_string_conversions.h",
918 "i18n/number_formatting.cc",
919 "i18n/number_formatting.h",
922 "i18n/streaming_utf8_validator.cc",
923 "i18n/streaming_utf8_validator.h",
924 "i18n/string_compare.cc",
925 "i18n/string_compare.h",
926 "i18n/string_search.cc",
927 "i18n/string_search.h",
928 "i18n/time_formatting.cc",
929 "i18n/time_formatting.h",
932 "i18n/utf8_validator_tables.cc",
933 "i18n/utf8_validator_tables.h",
935 defines = [ "BASE_I18N_IMPLEMENTATION" ]
936 configs += [ "//build/config/compiler:wexit_time_destructors" ]
939 "//base/third_party/dynamic_annotations",
944 source_set("prefs") {
946 "prefs/base_prefs_export.h",
947 "prefs/default_pref_store.cc",
948 "prefs/default_pref_store.h",
949 "prefs/json_pref_store.cc",
950 "prefs/json_pref_store.h",
951 "prefs/overlay_user_pref_store.cc",
952 "prefs/overlay_user_pref_store.h",
953 "prefs/persistent_pref_store.h",
954 "prefs/pref_change_registrar.cc",
955 "prefs/pref_change_registrar.h",
956 "prefs/pref_filter.h",
957 "prefs/pref_member.cc",
958 "prefs/pref_member.h",
959 "prefs/pref_notifier.h",
960 "prefs/pref_notifier_impl.cc",
961 "prefs/pref_notifier_impl.h",
962 "prefs/pref_observer.h",
963 "prefs/pref_registry.cc",
964 "prefs/pref_registry.h",
965 "prefs/pref_registry_simple.cc",
966 "prefs/pref_registry_simple.h",
967 "prefs/pref_service.cc",
968 "prefs/pref_service.h",
969 "prefs/pref_service_factory.cc",
970 "prefs/pref_service_factory.h",
971 "prefs/pref_store.cc",
972 "prefs/pref_store.h",
973 "prefs/pref_value_map.cc",
974 "prefs/pref_value_map.h",
975 "prefs/pref_value_store.cc",
976 "prefs/pref_value_store.h",
977 "prefs/scoped_user_pref_update.cc",
978 "prefs/scoped_user_pref_update.h",
979 "prefs/value_map_pref_store.cc",
980 "prefs/value_map_pref_store.h",
981 "prefs/writeable_pref_store.h",
984 defines = [ "BASE_PREFS_IMPLEMENTATION" ]
989 source_set("prefs_test_support") {
991 "prefs/mock_pref_change_callback.cc",
992 "prefs/pref_store_observer_mock.cc",
993 "prefs/pref_store_observer_mock.h",
994 "prefs/testing_pref_service.cc",
995 "prefs/testing_pref_service.h",
996 "prefs/testing_pref_store.cc",
997 "prefs/testing_pref_store.h",
1007 source_set("message_loop_tests") {
1009 "message_loop/message_loop_test.cc",
1010 "message_loop/message_loop_test.h",
1019 test("base_unittests") {
1021 "android/application_status_listener_unittest.cc",
1022 "android/jni_android_unittest.cc",
1023 "android/jni_array_unittest.cc",
1024 "android/jni_string_unittest.cc",
1025 "android/path_utils_unittest.cc",
1026 "android/scoped_java_ref_unittest.cc",
1027 "android/sys_utils_unittest.cc",
1028 "async_socket_io_handler_unittest.cc",
1029 "at_exit_unittest.cc",
1030 "atomicops_unittest.cc",
1031 "barrier_closure_unittest.cc",
1032 "base64_unittest.cc",
1033 "big_endian_unittest.cc",
1037 "build_time_unittest.cc",
1038 "callback_helpers_unittest.cc",
1039 "callback_list_unittest.cc",
1040 "callback_list_unittest.nc",
1041 "callback_unittest.cc",
1042 "callback_unittest.nc",
1043 "cancelable_callback_unittest.cc",
1044 "command_line_unittest.cc",
1045 "containers/hash_tables_unittest.cc",
1046 "containers/linked_list_unittest.cc",
1047 "containers/mru_cache_unittest.cc",
1048 "containers/small_map_unittest.cc",
1049 "containers/stack_container_unittest.cc",
1051 "debug/crash_logging_unittest.cc",
1052 "debug/leak_tracker_unittest.cc",
1053 "debug/proc_maps_linux_unittest.cc",
1054 "debug/stack_trace_unittest.cc",
1055 "debug/trace_event_memory_unittest.cc",
1056 "debug/trace_event_synthetic_delay_unittest.cc",
1057 "debug/trace_event_system_stats_monitor_unittest.cc",
1058 "debug/trace_event_unittest.cc",
1059 "debug/trace_event_unittest.h",
1060 "debug/trace_event_win_unittest.cc",
1061 "deferred_sequenced_task_runner_unittest.cc",
1062 "environment_unittest.cc",
1063 "file_util_unittest.cc",
1064 "file_version_info_unittest.cc",
1065 "files/dir_reader_posix_unittest.cc",
1066 "files/file_path_unittest.cc",
1067 "files/file_proxy_unittest.cc",
1068 "files/file_unittest.cc",
1069 "files/file_util_proxy_unittest.cc",
1070 "files/important_file_writer_unittest.cc",
1071 "files/scoped_temp_dir_unittest.cc",
1072 "gmock_unittest.cc",
1075 "id_map_unittest.cc",
1076 "i18n/break_iterator_unittest.cc",
1077 "i18n/char_iterator_unittest.cc",
1078 "i18n/case_conversion_unittest.cc",
1079 "i18n/file_util_icu_unittest.cc",
1080 "i18n/icu_string_conversions_unittest.cc",
1081 "i18n/number_formatting_unittest.cc",
1082 "i18n/rtl_unittest.cc",
1083 "i18n/streaming_utf8_validator_unittest.cc",
1084 "i18n/string_search_unittest.cc",
1085 "i18n/time_formatting_unittest.cc",
1086 "i18n/timezone_unittest.cc",
1087 "ini_parser_unittest.cc",
1088 "ios/device_util_unittest.mm",
1089 "json/json_parser_unittest.cc",
1090 "json/json_reader_unittest.cc",
1091 "json/json_value_converter_unittest.cc",
1092 "json/json_value_serializer_unittest.cc",
1093 "json/json_writer_unittest.cc",
1094 "json/string_escape_unittest.cc",
1095 "lazy_instance_unittest.cc",
1096 "logging_unittest.cc",
1097 "mac/bind_objc_block_unittest.mm",
1098 "mac/foundation_util_unittest.mm",
1099 "mac/libdispatch_task_runner_unittest.cc",
1100 "mac/mac_util_unittest.mm",
1101 "mac/objc_property_releaser_unittest.mm",
1102 "mac/scoped_nsobject_unittest.mm",
1103 "mac/scoped_sending_event_unittest.mm",
1105 "memory/aligned_memory_unittest.cc",
1106 "memory/discardable_memory_manager_unittest.cc",
1107 "memory/discardable_memory_unittest.cc",
1108 "memory/linked_ptr_unittest.cc",
1109 "memory/ref_counted_memory_unittest.cc",
1110 "memory/ref_counted_unittest.cc",
1111 "memory/scoped_ptr_unittest.cc",
1112 "memory/scoped_ptr_unittest.nc",
1113 "memory/scoped_vector_unittest.cc",
1114 "memory/shared_memory_unittest.cc",
1115 "memory/singleton_unittest.cc",
1116 "memory/weak_ptr_unittest.cc",
1117 "memory/weak_ptr_unittest.nc",
1118 "message_loop/message_loop_proxy_impl_unittest.cc",
1119 "message_loop/message_loop_proxy_unittest.cc",
1120 "message_loop/message_loop_unittest.cc",
1121 "message_loop/message_pump_glib_unittest.cc",
1122 "message_loop/message_pump_io_ios_unittest.cc",
1123 "metrics/sample_map_unittest.cc",
1124 "metrics/sample_vector_unittest.cc",
1125 "metrics/bucket_ranges_unittest.cc",
1126 "metrics/field_trial_unittest.cc",
1127 "metrics/histogram_base_unittest.cc",
1128 "metrics/histogram_delta_serialization_unittest.cc",
1129 "metrics/histogram_snapshot_manager_unittest.cc",
1130 "metrics/histogram_unittest.cc",
1131 "metrics/sparse_histogram_unittest.cc",
1132 "metrics/stats_table_unittest.cc",
1133 "metrics/statistics_recorder_unittest.cc",
1134 "observer_list_unittest.cc",
1135 "os_compat_android_unittest.cc",
1136 "path_service_unittest.cc",
1137 "pickle_unittest.cc",
1138 "posix/file_descriptor_shuffle_unittest.cc",
1139 "posix/unix_domain_socket_linux_unittest.cc",
1140 "power_monitor/power_monitor_unittest.cc",
1141 "prefs/default_pref_store_unittest.cc",
1142 "prefs/json_pref_store_unittest.cc",
1143 "prefs/mock_pref_change_callback.h",
1144 "prefs/overlay_user_pref_store_unittest.cc",
1145 "prefs/pref_change_registrar_unittest.cc",
1146 "prefs/pref_member_unittest.cc",
1147 "prefs/pref_notifier_impl_unittest.cc",
1148 "prefs/pref_service_unittest.cc",
1149 "prefs/pref_value_map_unittest.cc",
1150 "prefs/pref_value_store_unittest.cc",
1151 "prefs/scoped_user_pref_update_unittest.cc",
1152 "process/memory_unittest.cc",
1153 "process/memory_unittest_mac.h",
1154 "process/memory_unittest_mac.mm",
1155 "process/process_metrics_unittest.cc",
1156 "process/process_metrics_unittest_ios.cc",
1157 "process/process_util_unittest.cc",
1158 "process/process_util_unittest_ios.cc",
1159 "profiler/tracked_time_unittest.cc",
1160 "rand_util_unittest.cc",
1161 "numerics/safe_numerics_unittest.cc",
1162 "scoped_clear_errno_unittest.cc",
1163 "scoped_generic_unittest.cc",
1164 "scoped_native_library_unittest.cc",
1165 "scoped_observer.h",
1166 "security_unittest.cc",
1167 "sequence_checker_unittest.cc",
1169 "stl_util_unittest.cc",
1170 "strings/nullable_string16_unittest.cc",
1171 "strings/safe_sprintf_unittest.cc",
1172 "strings/string16_unittest.cc",
1173 "strings/stringprintf_unittest.cc",
1174 "strings/string_number_conversions_unittest.cc",
1175 "strings/string_piece_unittest.cc",
1176 "strings/string_split_unittest.cc",
1177 "strings/string_tokenizer_unittest.cc",
1178 "strings/string_util_unittest.cc",
1179 "strings/stringize_macros_unittest.cc",
1180 "strings/sys_string_conversions_mac_unittest.mm",
1181 "strings/sys_string_conversions_unittest.cc",
1182 "strings/utf_offset_string_conversions_unittest.cc",
1183 "strings/utf_string_conversions_unittest.cc",
1184 "supports_user_data_unittest.cc",
1185 "sync_socket_unittest.cc",
1186 "synchronization/cancellation_flag_unittest.cc",
1187 "synchronization/condition_variable_unittest.cc",
1188 "synchronization/lock_unittest.cc",
1189 "synchronization/waitable_event_unittest.cc",
1190 "synchronization/waitable_event_watcher_unittest.cc",
1191 "sys_info_unittest.cc",
1192 "system_monitor/system_monitor_unittest.cc",
1193 "task/cancelable_task_tracker_unittest.cc",
1194 "task_runner_util_unittest.cc",
1195 "template_util_unittest.cc",
1196 "test/expectations/expectation_unittest.cc",
1197 "test/expectations/parser_unittest.cc",
1198 "test/statistics_delta_reader_unittest.cc",
1199 "test/test_reg_util_win_unittest.cc",
1200 "test/trace_event_analyzer_unittest.cc",
1201 "threading/non_thread_safe_unittest.cc",
1202 "threading/platform_thread_unittest.cc",
1203 "threading/sequenced_worker_pool_unittest.cc",
1204 "threading/simple_thread_unittest.cc",
1205 "threading/thread_checker_unittest.cc",
1206 "threading/thread_collision_warner_unittest.cc",
1207 "threading/thread_id_name_manager_unittest.cc",
1208 "threading/thread_local_storage_unittest.cc",
1209 "threading/thread_local_unittest.cc",
1210 "threading/thread_unittest.cc",
1211 "threading/watchdog_unittest.cc",
1212 "threading/worker_pool_posix_unittest.cc",
1213 "threading/worker_pool_unittest.cc",
1214 "time/pr_time_unittest.cc",
1215 "time/time_unittest.cc",
1216 "time/time_win_unittest.cc",
1217 "timer/hi_res_timer_manager_unittest.cc",
1218 "timer/mock_timer_unittest.cc",
1219 "timer/timer_unittest.cc",
1220 "tools_sanity_unittest.cc",
1221 "tracked_objects_unittest.cc",
1222 "tuple_unittest.cc",
1223 "values_unittest.cc",
1224 "version_unittest.cc",
1227 "win/enum_variant_unittest.cc",
1228 "win/event_trace_consumer_unittest.cc",
1229 "win/event_trace_controller_unittest.cc",
1230 "win/event_trace_provider_unittest.cc",
1231 "win/i18n_unittest.cc",
1232 "win/iunknown_impl_unittest.cc",
1233 "win/message_window_unittest.cc",
1234 "win/object_watcher_unittest.cc",
1235 "win/pe_image_unittest.cc",
1236 "win/registry_unittest.cc",
1237 "win/scoped_bstr_unittest.cc",
1238 "win/scoped_comptr_unittest.cc",
1239 "win/scoped_process_information_unittest.cc",
1240 "win/scoped_variant_unittest.cc",
1241 "win/shortcut_unittest.cc",
1242 "win/startup_information_unittest.cc",
1243 "win/win_util_unittest.cc",
1244 "win/wrapped_window_proc_unittest.cc",
1250 ":message_loop_tests",
1252 ":prefs_test_support",
1254 "//base/test:run_all_unittests",
1255 "//base/test:test_support",
1256 "//base/third_party/dynamic_annotations",
1259 "//third_party/icu",
1264 "metrics/stats_table_uinittest.cc", # Requires spawning a process.
1265 "process/memory_unittest.cc",
1266 "process/memory_unittest_mac.h",
1267 "process/memory_unittest_mac.mm",
1268 "process/process_util_unittest.cc",
1271 # Pull in specific Mac files for iOS (which have been filtered out by file
1273 set_sources_assignment_filter([])
1275 "mac/bind_objc_block_unittest.mm",
1276 "mac/foundation_util_unittest.mm",
1277 "mac/objc_property_releaser_unittest.mm",
1278 "mac/scoped_nsobject_unittest.mm",
1279 "sys_string_conversions_mac_unittest.mm",
1281 set_sources_assignment_filter(sources_assignment_filter)
1283 # TODO(GYP): dep on copy_test_data_ios action.
1287 sources -= [ "file_version_info_unittest.cc" ]
1288 sources += [ "nix/xdg_util_unittest.cc" ]
1289 defines = [ "USE_SYMBOLIZE" ]
1290 configs += [ "//build/config/linux:glib" ]
1293 if (!is_linux || use_ozone) {
1294 sources -= [ "message_loop/message_pump_glib_unittest.cc" ]
1297 if (is_posix || is_ios) {
1298 sources += [ "message_loop/message_pump_libevent_unittest.cc" ]
1299 deps += [ "//third_party/libevent" ]
1303 set_sources_assignment_filter([])
1304 sources += [ "debug/proc_maps_linux_unittest.cc" ]
1305 set_sources_assignment_filter(sources_assignment_filter)
1310 generate_jni("base_jni_headers") {
1312 "android/java/src/org/chromium/base/ApplicationStatus.java",
1313 "android/java/src/org/chromium/base/BuildInfo.java",
1314 "android/java/src/org/chromium/base/CommandLine.java",
1315 "android/java/src/org/chromium/base/ContentUriUtils.java",
1316 "android/java/src/org/chromium/base/CpuFeatures.java",
1317 "android/java/src/org/chromium/base/EventLog.java",
1318 "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java",
1319 "android/java/src/org/chromium/base/library_loader/LibraryLoader.java",
1320 "android/java/src/org/chromium/base/MemoryPressureListener.java",
1321 "android/java/src/org/chromium/base/JavaHandlerThread.java",
1322 "android/java/src/org/chromium/base/PathService.java",
1323 "android/java/src/org/chromium/base/PathUtils.java",
1324 "android/java/src/org/chromium/base/PowerMonitor.java",
1325 "android/java/src/org/chromium/base/SystemMessageHandler.java",
1326 "android/java/src/org/chromium/base/SysUtils.java",
1327 "android/java/src/org/chromium/base/ThreadUtils.java",
1328 "android/java/src/org/chromium/base/TraceEvent.java",
1330 jni_package = "base"
1333 java_cpp_template("base_java_application_state") {
1335 "android/java/src/org/chromium/base/ApplicationState.template",
1338 "android/application_state_list.h"
1341 package_name = "org/chromium/base"
1344 java_cpp_template("base_java_memory_pressure_level_list") {
1346 "android/java/src/org/chromium/base/MemoryPressureLevelList.template",
1349 "memory/memory_pressure_level_list.h"
1352 package_name = "org/chromium/base"
1355 java_cpp_template("base_native_libraries_gen") {
1357 "android/java/templates/NativeLibraries.template",
1360 "android/java/templates/native_libraries_array.h",
1363 package_name = "org/chromium/base/library_loader"
1364 include_path = "android/java/templates"