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")
6 import("//testing/test.gni")
9 import("//build/config/android/rules.gni")
14 "third_party/dmg_fp/dmg_fp.h",
15 "third_party/dmg_fp/g_fmt.cc",
16 "third_party/dmg_fp/dtoa_wrapper.cc",
17 "third_party/icu/icu_utf.cc",
18 "third_party/icu/icu_utf.h",
19 "third_party/superfasthash/superfasthash.c",
20 "allocator/allocator_extension.cc",
21 "allocator/allocator_extension.h",
22 "allocator/type_profiler_control.cc",
23 "allocator/type_profiler_control.h",
24 "android/application_status_listener.cc",
25 "android/application_status_listener.h",
26 "android/base_jni_onload.cc",
27 "android/base_jni_onload.h",
28 "android/base_jni_registrar.cc",
29 "android/base_jni_registrar.h",
30 "android/build_info.cc",
31 "android/build_info.h",
32 "android/command_line_android.cc",
33 "android/command_line_android.h",
34 "android/content_uri_utils.cc",
35 "android/content_uri_utils.h",
36 "android/cpu_features.cc",
37 "android/event_log.cc",
38 "android/event_log.h",
39 "android/field_trial_list.cc",
40 "android/field_trial_list.h",
41 "android/fifo_utils.cc",
42 "android/fifo_utils.h",
43 "android/important_file_writer_android.cc",
44 "android/important_file_writer_android.h",
45 "android/java_handler_thread.cc",
46 "android/java_handler_thread.h",
47 "android/jni_android.cc",
48 "android/jni_android.h",
49 "android/jni_array.cc",
50 "android/jni_array.h",
51 "android/jni_onload_delegate.h",
52 "android/jni_registrar.cc",
53 "android/jni_registrar.h",
54 "android/jni_string.cc",
55 "android/jni_string.h",
56 "android/jni_utils.cc",
57 "android/jni_utils.h",
58 "android/jni_weak_ref.cc",
59 "android/jni_weak_ref.h",
60 "android/library_loader/library_load_from_apk_status_codes.h",
61 "android/library_loader/library_loader_hooks.cc",
62 "android/library_loader/library_loader_hooks.h",
63 "android/locale_utils.cc",
64 "android/locale_utils.h",
65 "android/memory_pressure_listener_android.cc",
66 "android/memory_pressure_listener_android.h",
67 "android/path_service_android.cc",
68 "android/path_service_android.h",
69 "android/path_utils.cc",
70 "android/path_utils.h",
71 "android/record_histogram.cc",
72 "android/record_histogram.h",
73 "android/scoped_java_ref.cc",
74 "android/scoped_java_ref.h",
75 "android/sys_utils.cc",
76 "android/sys_utils.h",
77 "android/thread_utils.h",
78 "android/trace_event_binding.cc",
79 "android/trace_event_binding.h",
80 "async_socket_io_handler.h",
81 "async_socket_io_handler_posix.cc",
82 "async_socket_io_handler_win.cc",
86 "atomic_sequence_num.h",
88 "atomicops_internals_gcc.h",
89 "atomicops_internals_mac.h",
90 "atomicops_internals_portable.h",
91 "atomicops_internals_x86_gcc.cc",
92 "atomicops_internals_x86_gcc.h",
93 "atomicops_internals_x86_msvc.h",
100 "base_paths_android.cc",
101 "base_paths_android.h",
104 "base_paths_posix.cc",
105 "base_paths_posix.h",
118 "bind_internal_win.h",
123 "callback_helpers.cc",
124 "callback_helpers.h",
125 "callback_internal.cc",
126 "callback_internal.h",
127 "cancelable_callback.h",
130 "chromeos/memory_pressure_observer_chromeos.cc",
131 "chromeos/memory_pressure_observer_chromeos.h",
132 "compiler_specific.h",
133 "containers/adapters.h",
134 "containers/hash_tables.h",
135 "containers/linked_list.h",
136 "containers/mru_cache.h",
137 "containers/small_map.h",
138 "containers/stack_container.h",
141 "critical_closure.h",
142 "critical_closure_internal_ios.mm",
145 "debug/asan_invalid_access.cc",
146 "debug/asan_invalid_access.h",
147 "debug/crash_logging.cc",
148 "debug/crash_logging.h",
151 "debug/debugger_posix.cc",
152 "debug/debugger_win.cc",
153 "debug/dump_without_crashing.cc",
154 "debug/dump_without_crashing.h",
155 "debug/gdi_debug_util_win.cc",
156 "debug/gdi_debug_util_win.h",
158 # This file depends on files from the "allocator" target,
159 # but this target does not depend on "allocator" (see
160 # allocator.gyp for details).
161 "debug/leak_annotations.h",
162 "debug/leak_tracker.h",
163 "debug/proc_maps_linux.cc",
164 "debug/proc_maps_linux.h",
167 "debug/stack_trace.cc",
168 "debug/stack_trace.h",
169 "debug/stack_trace_android.cc",
170 "debug/stack_trace_posix.cc",
171 "debug/stack_trace_win.cc",
172 "debug/task_annotator.cc",
173 "debug/task_annotator.h",
174 "debug/trace_event.h",
175 "debug/trace_event_argument.h",
176 "debug/trace_event_impl.h",
177 "debug/trace_event_synthetic_delay.h",
178 "debug/trace_event_win.h",
179 "deferred_sequenced_task_runner.cc",
180 "deferred_sequenced_task_runner.h",
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 "ios/weak_nsobject.h",
249 "ios/weak_nsobject.mm",
250 "json/json_file_value_serializer.cc",
251 "json/json_file_value_serializer.h",
252 "json/json_parser.cc",
253 "json/json_parser.h",
254 "json/json_reader.cc",
255 "json/json_reader.h",
256 "json/json_string_value_serializer.cc",
257 "json/json_string_value_serializer.h",
258 "json/json_value_converter.cc",
259 "json/json_value_converter.h",
260 "json/json_writer.cc",
261 "json/json_writer.h",
262 "json/string_escape.cc",
263 "json/string_escape.h",
274 "mac/authorization_util.h",
275 "mac/authorization_util.mm",
276 "mac/bind_objc_block.h",
277 "mac/bundle_locations.h",
278 "mac/bundle_locations.mm",
279 "mac/cocoa_protocols.h",
280 "mac/foundation_util.h",
281 "mac/foundation_util.mm",
282 "mac/launch_services_util.cc",
283 "mac/launch_services_util.h",
286 "mac/libdispatch_task_runner.cc",
287 "mac/libdispatch_task_runner.h",
289 "mac/mac_logging.cc",
292 "mac/mach_logging.cc",
293 "mac/mach_logging.h",
294 "mac/objc_property_releaser.h",
295 "mac/objc_property_releaser.mm",
296 "mac/os_crash_dumps.cc",
297 "mac/os_crash_dumps.h",
298 "mac/scoped_aedesc.h",
299 "mac/scoped_authorizationref.h",
300 "mac/scoped_block.h",
301 "mac/scoped_cftyperef.h",
302 "mac/scoped_ioobject.h",
303 "mac/scoped_ioplugininterface.h",
304 "mac/scoped_launch_data.h",
305 "mac/scoped_mach_port.cc",
306 "mac/scoped_mach_port.h",
307 "mac/scoped_mach_vm.cc",
308 "mac/scoped_mach_vm.h",
309 "mac/scoped_nsautorelease_pool.h",
310 "mac/scoped_nsautorelease_pool.mm",
311 "mac/scoped_nsexception_enabler.h",
312 "mac/scoped_nsexception_enabler.mm",
313 "mac/scoped_nsobject.h",
314 "mac/scoped_objc_class_swizzler.h",
315 "mac/scoped_objc_class_swizzler.mm",
316 "mac/scoped_sending_event.h",
317 "mac/scoped_sending_event.mm",
318 "mac/sdk_forward_declarations.h",
322 "memory/aligned_memory.cc",
323 "memory/aligned_memory.h",
324 "memory/discardable_memory.cc",
325 "memory/discardable_memory.h",
326 "memory/discardable_memory_android.cc",
327 "memory/discardable_memory_emulated.cc",
328 "memory/discardable_memory_emulated.h",
329 "memory/discardable_memory_linux.cc",
330 "memory/discardable_memory_mac.cc",
331 "memory/discardable_memory_manager.cc",
332 "memory/discardable_memory_manager.h",
333 "memory/discardable_memory_shmem.cc",
334 "memory/discardable_memory_shmem.h",
335 "memory/discardable_memory_shmem_allocator.cc",
336 "memory/discardable_memory_shmem_allocator.h",
337 "memory/discardable_memory_win.cc",
338 "memory/discardable_shared_memory.cc",
339 "memory/discardable_shared_memory.h",
340 "memory/linked_ptr.h",
341 "memory/manual_constructor.h",
342 "memory/memory_pressure_listener.cc",
343 "memory/memory_pressure_listener.h",
344 "memory/raw_scoped_refptr_mismatch_checker.h",
345 "memory/ref_counted.cc",
346 "memory/ref_counted.h",
347 "memory/ref_counted_delete_on_message_loop.h",
348 "memory/ref_counted_memory.cc",
349 "memory/ref_counted_memory.h",
350 "memory/scoped_open_process.h",
351 "memory/scoped_policy.h",
352 "memory/scoped_ptr.h",
353 "memory/scoped_vector.h",
354 "memory/shared_memory.h",
355 "memory/shared_memory_android.cc",
356 "memory/shared_memory_nacl.cc",
357 "memory/shared_memory_posix.cc",
358 "memory/shared_memory_win.cc",
359 "memory/singleton.cc",
360 "memory/singleton.h",
361 "memory/weak_ptr.cc",
363 "message_loop/incoming_task_queue.cc",
364 "message_loop/incoming_task_queue.h",
365 "message_loop/message_loop.cc",
366 "message_loop/message_loop.h",
367 "message_loop/message_loop_proxy.cc",
368 "message_loop/message_loop_proxy.h",
369 "message_loop/message_loop_proxy_impl.cc",
370 "message_loop/message_loop_proxy_impl.h",
371 "message_loop/message_pump.cc",
372 "message_loop/message_pump.h",
373 "message_loop/message_pump_android.cc",
374 "message_loop/message_pump_android.h",
375 "message_loop/message_pump_default.cc",
376 "message_loop/message_pump_default.h",
377 "message_loop/message_pump_glib.cc",
378 "message_loop/message_pump_glib.h",
379 "message_loop/message_pump_io_ios.cc",
380 "message_loop/message_pump_io_ios.h",
381 "message_loop/message_pump_libevent.cc",
382 "message_loop/message_pump_libevent.h",
383 "message_loop/message_pump_mac.h",
384 "message_loop/message_pump_mac.mm",
385 "message_loop/message_pump_win.cc",
386 "message_loop/message_pump_win.h",
387 "metrics/field_trial.cc",
388 "metrics/field_trial.h",
389 "metrics/sample_map.cc",
390 "metrics/sample_map.h",
391 "metrics/sample_vector.cc",
392 "metrics/sample_vector.h",
393 "metrics/bucket_ranges.cc",
394 "metrics/bucket_ranges.h",
395 "metrics/histogram.cc",
396 "metrics/histogram.h",
397 "metrics/histogram_base.cc",
398 "metrics/histogram_base.h",
399 "metrics/histogram_delta_serialization.cc",
400 "metrics/histogram_delta_serialization.",
401 "metrics/histogram_flattener.h",
402 "metrics/histogram_macros.h",
403 "metrics/histogram_samples.cc",
404 "metrics/histogram_samples.h",
405 "metrics/histogram_snapshot_manager.cc",
406 "metrics/histogram_snapshot_manager.h",
407 "metrics/sparse_histogram.cc",
408 "metrics/sparse_histogram.h",
409 "metrics/statistics_recorder.cc",
410 "metrics/statistics_recorder.h",
411 "metrics/stats_counters.cc",
412 "metrics/stats_counters.h",
413 "metrics/stats_table.cc",
414 "metrics/stats_table.h",
415 "metrics/user_metrics.cc",
416 "metrics/user_metrics.h",
417 "metrics/user_metrics_action.h",
420 "native_library_mac.mm",
421 "native_library_posix.cc",
422 "native_library_win.cc",
423 "numerics/safe_conversions.h",
424 "numerics/safe_conversions_impl.h",
425 "numerics/safe_math.h",
426 "numerics/safe_math_impl.h",
427 "nix/mime_util_xdg.cc",
428 "nix/mime_util_xdg.h",
432 "observer_list_threadsafe.h",
433 "os_compat_android.cc",
434 "os_compat_android.h",
444 "posix/eintr_wrapper.h",
445 "posix/file_descriptor_shuffle.cc",
446 "posix/global_descriptors.cc",
447 "posix/global_descriptors.h",
448 "posix/unix_domain_socket_linux.cc",
449 "posix/unix_domain_socket_linux.h",
450 "power_monitor/power_monitor.cc",
451 "power_monitor/power_monitor.h",
452 "power_monitor/power_monitor_device_source.cc",
453 "power_monitor/power_monitor_device_source.h",
454 "power_monitor/power_monitor_device_source_android.cc",
455 "power_monitor/power_monitor_device_source_android.h",
456 "power_monitor/power_monitor_device_source_chromeos.cc",
457 "power_monitor/power_monitor_device_source_ios.mm",
458 "power_monitor/power_monitor_device_source_mac.mm",
459 "power_monitor/power_monitor_device_source_posix.cc",
460 "power_monitor/power_monitor_device_source_win.cc",
461 "power_monitor/power_monitor_source.cc",
462 "power_monitor/power_monitor_source.h",
463 "power_monitor/power_observer.h",
464 "process/internal_linux.cc",
465 "process/internal_linux.h",
468 "process/kill_mac.cc",
469 "process/kill_posix.cc",
470 "process/kill_win.cc",
473 "process/launch_ios.cc",
474 "process/launch_mac.cc",
475 "process/launch_posix.cc",
476 "process/launch_win.cc",
479 "process/memory_linux.cc",
480 "process/memory_mac.mm",
481 "process/memory_win.cc",
483 "process/process_handle_freebsd.cc",
484 "process/process_handle_linux.cc",
485 "process/process_handle_mac.cc",
486 "process/process_handle_openbsd.cc",
487 "process/process_handle_posix.cc",
488 "process/process_handle_win.cc",
489 "process/process_info.h",
490 "process/process_info_linux.cc",
491 "process/process_info_mac.cc",
492 "process/process_info_win.cc",
493 "process/process_iterator.cc",
494 "process/process_iterator.h",
495 "process/process_iterator_freebsd.cc",
496 "process/process_iterator_linux.cc",
497 "process/process_iterator_mac.cc",
498 "process/process_iterator_openbsd.cc",
499 "process/process_iterator_win.cc",
500 "process/process_linux.cc",
501 "process/process_metrics.cc",
502 "process/process_metrics.h",
503 "process/process_metrics_freebsd.cc",
504 "process/process_metrics_ios.cc",
505 "process/process_metrics_linux.cc",
506 "process/process_metrics_mac.cc",
507 "process/process_metrics_openbsd.cc",
508 "process/process_metrics_posix.cc",
509 "process/process_metrics_win.cc",
510 "process/process_posix.cc",
511 "process/process_win.cc",
512 "profiler/alternate_timer.cc",
513 "profiler/alternate_timer.h",
514 "profiler/scoped_profile.cc",
515 "profiler/scoped_profile.h",
516 "profiler/scoped_tracker.cc",
517 "profiler/scoped_tracker.h",
518 "profiler/tracked_time.cc",
519 "profiler/tracked_time.h",
523 "rand_util_posix.cc",
527 "safe_strerror_posix.cc",
528 "safe_strerror_posix.h",
530 "scoped_native_library.cc",
531 "scoped_native_library.h",
533 "sequence_checker.h",
534 "sequence_checker_impl.cc",
535 "sequence_checker_impl.h",
536 "sequenced_task_runner.cc",
537 "sequenced_task_runner.h",
538 "sequenced_task_runner_helpers.h",
542 "single_thread_task_runner.h",
544 "strings/latin1_string_conversions.cc",
545 "strings/latin1_string_conversions.h",
546 "strings/nullable_string16.cc",
547 "strings/nullable_string16.h",
548 "strings/safe_sprintf.cc",
549 "strings/safe_sprintf.h",
550 "strings/string16.cc",
551 "strings/string16.h",
552 "strings/string_number_conversions.cc",
553 "strings/string_split.cc",
554 "strings/string_split.h",
555 "strings/string_number_conversions.h",
556 "strings/string_piece.cc",
557 "strings/string_piece.h",
558 "strings/string_tokenizer.h",
559 "strings/string_util.cc",
560 "strings/string_util.h",
561 "strings/string_util_constants.cc",
562 "strings/string_util_posix.h",
563 "strings/string_util_win.h",
564 "strings/stringize_macros.h",
565 "strings/stringprintf.cc",
566 "strings/stringprintf.h",
567 "strings/sys_string_conversions.h",
568 "strings/sys_string_conversions_mac.mm",
569 "strings/sys_string_conversions_posix.cc",
570 "strings/sys_string_conversions_win.cc",
571 "strings/utf_offset_string_conversions.cc",
572 "strings/utf_offset_string_conversions.h",
573 "strings/utf_string_conversion_utils.cc",
574 "strings/utf_string_conversion_utils.h",
575 "strings/utf_string_conversions.cc",
576 "strings/utf_string_conversions.h",
577 "supports_user_data.cc",
578 "supports_user_data.h",
580 "sync_socket_posix.cc",
581 "sync_socket_win.cc",
582 "synchronization/cancellation_flag.cc",
583 "synchronization/cancellation_flag.h",
584 "synchronization/condition_variable.h",
585 "synchronization/condition_variable_posix.cc",
586 "synchronization/condition_variable_win.cc",
587 "synchronization/lock.cc",
588 "synchronization/lock.h",
589 "synchronization/lock_impl.h",
590 "synchronization/lock_impl_posix.cc",
591 "synchronization/lock_impl_win.cc",
592 "synchronization/spin_wait.h",
593 "synchronization/waitable_event.h",
594 "synchronization/waitable_event_posix.cc",
595 "synchronization/waitable_event_watcher.h",
596 "synchronization/waitable_event_watcher_posix.cc",
597 "synchronization/waitable_event_watcher_win.cc",
598 "synchronization/waitable_event_win.cc",
599 "system_monitor/system_monitor.cc",
600 "system_monitor/system_monitor.h",
604 "sys_info_android.cc",
605 "sys_info_chromeos.cc",
606 "sys_info_freebsd.cc",
610 "sys_info_openbsd.cc",
613 "task/cancelable_task_tracker.cc",
614 "task/cancelable_task_tracker.h",
617 "task_runner_util.h",
619 "thread_task_runner_handle.cc",
620 "thread_task_runner_handle.h",
621 "threading/non_thread_safe.h",
622 "threading/non_thread_safe_impl.cc",
623 "threading/non_thread_safe_impl.h",
624 "threading/platform_thread.h",
625 "threading/platform_thread_android.cc",
626 "threading/platform_thread_linux.cc",
627 "threading/platform_thread_mac.mm",
628 "threading/platform_thread_posix.cc",
629 "threading/platform_thread_win.cc",
630 "threading/post_task_and_reply_impl.cc",
631 "threading/post_task_and_reply_impl.h",
632 "threading/sequenced_worker_pool.cc",
633 "threading/sequenced_worker_pool.h",
634 "threading/simple_thread.cc",
635 "threading/simple_thread.h",
636 "threading/thread.cc",
637 "threading/thread.h",
638 "threading/thread_checker.h",
639 "threading/thread_checker_impl.cc",
640 "threading/thread_checker_impl.h",
641 "threading/thread_collision_warner.cc",
642 "threading/thread_collision_warner.h",
643 "threading/thread_id_name_manager.cc",
644 "threading/thread_id_name_manager.h",
645 "threading/thread_local.h",
646 "threading/thread_local_android.cc",
647 "threading/thread_local_posix.cc",
648 "threading/thread_local_storage.cc",
649 "threading/thread_local_storage.h",
650 "threading/thread_local_storage_posix.cc",
651 "threading/thread_local_storage_win.cc",
652 "threading/thread_local_win.cc",
653 "threading/thread_restrictions.h",
654 "threading/thread_restrictions.cc",
655 "threading/watchdog.cc",
656 "threading/watchdog.h",
657 "threading/worker_pool.h",
658 "threading/worker_pool.cc",
659 "threading/worker_pool_posix.cc",
660 "threading/worker_pool_posix.h",
661 "threading/worker_pool_win.cc",
664 "time/default_clock.cc",
665 "time/default_clock.h",
666 "time/default_tick_clock.cc",
667 "time/default_tick_clock.h",
668 "time/tick_clock.cc",
673 "time/time_posix.cc",
675 "timer/elapsed_timer.cc",
676 "timer/elapsed_timer.h",
677 "timer/hi_res_timer_manager.h",
678 "timer/hi_res_timer_manager_posix.cc",
679 "timer/hi_res_timer_manager_win.cc",
680 "timer/mock_timer.cc",
681 "timer/mock_timer.h",
684 "trace_event/trace_event.h",
685 "trace_event/trace_event_android.cc",
686 "trace_event/trace_event_argument.cc",
687 "trace_event/trace_event_argument.h",
688 "trace_event/trace_event_impl.cc",
689 "trace_event/trace_event_impl.h",
690 "trace_event/trace_event_impl_constants.cc",
691 "trace_event/trace_event_memory.cc",
692 "trace_event/trace_event_memory.h",
693 "trace_event/trace_event_synthetic_delay.cc",
694 "trace_event/trace_event_synthetic_delay.h",
695 "trace_event/trace_event_system_stats_monitor.cc",
696 "trace_event/trace_event_system_stats_monitor.h",
697 "trace_event/trace_event_win.cc",
698 "trace_event/trace_event_win.h",
699 "tracked_objects.cc",
706 "value_conversions.cc",
707 "value_conversions.h",
712 "win/enum_variant.cc",
713 "win/enum_variant.h",
714 "win/event_trace_consumer.h",
715 "win/event_trace_controller.cc",
716 "win/event_trace_controller.h",
717 "win/event_trace_provider.cc",
718 "win/event_trace_provider.h",
721 "win/iat_patch_function.cc",
722 "win/iat_patch_function.h",
723 "win/iunknown_impl.cc",
724 "win/iunknown_impl.h",
725 "win/message_window.cc",
726 "win/message_window.h",
729 "win/object_watcher.cc",
730 "win/object_watcher.h",
733 "win/resource_util.cc",
734 "win/resource_util.h",
735 "win/scoped_bstr.cc",
737 "win/scoped_co_mem.h",
738 "win/scoped_com_initializer.h",
739 "win/scoped_comptr.h",
740 "win/scoped_gdi_object.h",
741 "win/scoped_handle.cc",
742 "win/scoped_handle.h",
744 "win/scoped_hglobal.h",
745 "win/scoped_process_information.cc",
746 "win/scoped_process_information.h",
747 "win/scoped_propvariant.h",
748 "win/scoped_select_object.h",
749 "win/scoped_variant.cc",
750 "win/scoped_variant.h",
753 "win/startup_information.cc",
754 "win/startup_information.h",
757 "win/windows_version.cc",
758 "win/windows_version.h",
759 "win/wrapped_window_proc.cc",
760 "win/wrapped_window_proc.h",
764 sources += [ "files/file_path_watcher_stub.cc" ]
768 "process/process_handle_freebsd.cc",
769 "process/process_handle_openbsd.cc",
770 "process/process_iterator_freebsd.cc",
771 "process/process_iterator_openbsd.cc",
772 "process/process_metrics_freebsd.cc",
773 "process/process_metrics_openbsd.cc",
774 "sys_info_freebsd.cc",
775 "sys_info_openbsd.cc",
778 defines = [ "BASE_IMPLEMENTATION" ]
782 "//base/allocator:allocator_extension_thunks",
783 "//base/third_party/dynamic_annotations",
784 "//base/third_party/nspr",
785 "//third_party/modp_b64",
788 # Allow more direct string conversions on platforms with native utf8
790 if (is_mac || is_ios || is_chromeos) {
791 defines += [ "SYSTEM_NATIVE_UTF8" ]
796 "memory/discardable_memory_ashmem_allocator.cc",
797 "memory/discardable_memory_ashmem_allocator.h",
798 "memory/discardable_memory_ashmem.cc",
799 "memory/discardable_memory_ashmem.h",
802 "base_paths_posix.cc",
803 "power_monitor/power_monitor_device_source_posix.cc",
806 # Android uses some Linux sources, put those back.
807 set_sources_assignment_filter([])
809 "debug/proc_maps_linux.cc",
810 "files/file_path_watcher_linux.cc",
811 "process/memory_linux.cc",
812 "process/internal_linux.cc",
813 "process/process_handle_linux.cc",
814 "process/process_iterator_linux.cc",
815 "process/process_metrics_linux.cc",
816 "posix/unix_domain_socket_linux.cc",
819 set_sources_assignment_filter(sources_assignment_filter)
823 "//third_party/ashmem",
824 "//third_party/android_tools:cpu_features",
827 # logging.cc uses the Android logging library.
830 sources -= [ "debug/stack_trace_posix.cc" ]
834 sources -= [ "power_monitor/power_monitor_device_source_posix.cc" ]
838 # These things would otherwise be built on a Posix build but aren't
841 "debug/stack_trace_posix.cc",
842 "files/file_enumerator_posix.cc",
843 "files/file_util_posix.cc",
844 "message_loop/message_pump_libevent.cc",
845 "process/kill_posix.cc",
846 "process/launch_posix.cc",
847 "process/process_metrics_posix.cc",
848 "process/process_posix.cc",
849 "metrics/field_trial.cc",
850 "native_library_posix.cc",
851 "memory/shared_memory_posix.cc",
852 "sync_socket_posix.cc",
861 "memory/shared_memory_nacl.cc",
868 "message_loop/message_pump_libevent.cc",
869 "strings/string16.cc",
871 # Not using sha1_win.cc because it may have caused a
872 # regression to page cycler moz.
876 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
877 cflags = [ "/wd4267" ]
886 "/DELAYLOAD:cfgmgr32.dll",
887 "/DELAYLOAD:powrprof.dll",
888 "/DELAYLOAD:setupapi.dll",
890 } else if (!is_nacl) {
892 deps += [ "//third_party/libevent" ]
898 "memory/discardable_memory_mach.cc",
899 "memory/discardable_memory_mach.h",
902 "base_paths_posix.cc",
903 "native_library_posix.cc",
904 "strings/sys_string_conversions_posix.cc",
909 "files/file_path_watcher_fsevents.cc",
910 "files/file_path_watcher_fsevents.h",
911 "files/file_path_watcher_kqueue.cc",
912 "files/file_path_watcher_kqueue.h",
918 # TODO(brettw) this will need to be parameterized at some point.
921 linux_configs += [ "//build/config/linux:glib" ]
924 configs += linux_configs
925 all_dependent_configs = linux_configs
927 defines += [ "USE_SYMBOLIZE" ]
929 # These dependencies are not required on Android, and in the case
930 # of xdg_mime must be excluded due to licensing restrictions.
932 "//base/third_party/symbolize",
933 "//base/third_party/xdg_mime",
934 "//base/third_party/xdg_user_dirs",
939 "nix/mime_util_xdg.cc",
940 "nix/mime_util_xdg.h",
955 "message_loop/message_pump_glib.cc",
956 "message_loop/message_pump_glib.h",
960 configs += [ "//build/config/compiler:wexit_time_destructors" ]
961 if (is_android && !is_debug) {
962 configs -= [ "//build/config/compiler:optimize" ]
963 configs += [ "//build/config/compiler:optimize_max" ]
967 # This is the subset of files from base that should not be used with a dynamic
968 # library. Note that this library cannot depend on base because base depends on
970 source_set("base_static") {
978 if (is_android && !is_debug) {
979 configs -= [ "//build/config/compiler:optimize" ]
980 configs += [ "//build/config/compiler:optimize_max" ]
985 output_name = "base_i18n"
987 "i18n/base_i18n_export.h",
988 "i18n/bidi_line_iterator.cc",
989 "i18n/bidi_line_iterator.h",
990 "i18n/break_iterator.cc",
991 "i18n/break_iterator.h",
992 "i18n/case_conversion.cc",
993 "i18n/case_conversion.h",
994 "i18n/char_iterator.cc",
995 "i18n/char_iterator.h",
996 "i18n/file_util_icu.cc",
997 "i18n/file_util_icu.h",
998 "i18n/i18n_constants.cc",
999 "i18n/i18n_constants.h",
1000 "i18n/icu_encoding_detection.cc",
1001 "i18n/icu_encoding_detection.h",
1002 "i18n/icu_string_conversions.cc",
1003 "i18n/icu_string_conversions.h",
1006 "i18n/number_formatting.cc",
1007 "i18n/number_formatting.h",
1010 "i18n/streaming_utf8_validator.cc",
1011 "i18n/streaming_utf8_validator.h",
1012 "i18n/string_compare.cc",
1013 "i18n/string_compare.h",
1014 "i18n/string_search.cc",
1015 "i18n/string_search.h",
1016 "i18n/time_formatting.cc",
1017 "i18n/time_formatting.h",
1020 "i18n/utf8_validator_tables.cc",
1021 "i18n/utf8_validator_tables.h",
1023 defines = [ "BASE_I18N_IMPLEMENTATION" ]
1024 configs += [ "//build/config/compiler:wexit_time_destructors" ]
1027 "//base/third_party/dynamic_annotations",
1028 "//third_party/icu",
1031 if (is_android && !is_debug) {
1032 configs -= [ "//build/config/compiler:optimize" ]
1033 configs += [ "//build/config/compiler:optimize_max" ]
1037 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1038 cflags = [ "/wd4267" ]
1042 source_set("prefs") {
1044 "prefs/base_prefs_export.h",
1045 "prefs/default_pref_store.cc",
1046 "prefs/default_pref_store.h",
1047 "prefs/json_pref_store.cc",
1048 "prefs/json_pref_store.h",
1049 "prefs/overlay_user_pref_store.cc",
1050 "prefs/overlay_user_pref_store.h",
1051 "prefs/persistent_pref_store.h",
1052 "prefs/pref_change_registrar.cc",
1053 "prefs/pref_change_registrar.h",
1054 "prefs/pref_filter.h",
1055 "prefs/pref_member.cc",
1056 "prefs/pref_member.h",
1057 "prefs/pref_notifier.h",
1058 "prefs/pref_notifier_impl.cc",
1059 "prefs/pref_notifier_impl.h",
1060 "prefs/pref_observer.h",
1061 "prefs/pref_registry.cc",
1062 "prefs/pref_registry.h",
1063 "prefs/pref_registry_simple.cc",
1064 "prefs/pref_registry_simple.h",
1065 "prefs/pref_service.cc",
1066 "prefs/pref_service.h",
1067 "prefs/pref_service_factory.cc",
1068 "prefs/pref_service_factory.h",
1069 "prefs/pref_store.cc",
1070 "prefs/pref_store.h",
1071 "prefs/pref_value_map.cc",
1072 "prefs/pref_value_map.h",
1073 "prefs/pref_value_store.cc",
1074 "prefs/pref_value_store.h",
1075 "prefs/scoped_user_pref_update.cc",
1076 "prefs/scoped_user_pref_update.h",
1077 "prefs/value_map_pref_store.cc",
1078 "prefs/value_map_pref_store.h",
1079 "prefs/writeable_pref_store.h",
1082 defines = [ "BASE_PREFS_IMPLEMENTATION" ]
1088 if (is_android && !is_debug) {
1089 configs -= [ "//build/config/compiler:optimize" ]
1090 configs += [ "//build/config/compiler:optimize_max" ]
1094 source_set("prefs_test_support") {
1097 "prefs/mock_pref_change_callback.cc",
1098 "prefs/mock_pref_change_callback.h",
1099 "prefs/pref_store_observer_mock.cc",
1100 "prefs/pref_store_observer_mock.h",
1101 "prefs/testing_pref_service.cc",
1102 "prefs/testing_pref_service.h",
1103 "prefs/testing_pref_store.cc",
1104 "prefs/testing_pref_store.h",
1117 source_set("message_loop_tests") {
1120 "message_loop/message_loop_test.cc",
1121 "message_loop/message_loop_test.h",
1130 # TODO(pasko): Remove this target when crbug.com/424562 is fixed.
1131 source_set("protect_file_posix") {
1133 "files/protect_file_posix.cc",
1137 test("base_unittests") {
1139 "android/application_status_listener_unittest.cc",
1140 "android/content_uri_utils_unittest.cc",
1141 "android/jni_android_unittest.cc",
1142 "android/jni_array_unittest.cc",
1143 "android/jni_string_unittest.cc",
1144 "android/path_utils_unittest.cc",
1145 "android/scoped_java_ref_unittest.cc",
1146 "android/sys_utils_unittest.cc",
1147 "async_socket_io_handler_unittest.cc",
1148 "at_exit_unittest.cc",
1149 "atomicops_unittest.cc",
1150 "barrier_closure_unittest.cc",
1151 "base64_unittest.cc",
1152 "big_endian_unittest.cc",
1156 "build_time_unittest.cc",
1157 "callback_helpers_unittest.cc",
1158 "callback_list_unittest.cc",
1159 "callback_list_unittest.nc",
1160 "callback_unittest.cc",
1161 "callback_unittest.nc",
1162 "cancelable_callback_unittest.cc",
1163 "chromeos/memory_pressure_observer_chromeos_unittest.cc",
1164 "command_line_unittest.cc",
1165 "containers/adapters_unittest.cc",
1166 "containers/hash_tables_unittest.cc",
1167 "containers/linked_list_unittest.cc",
1168 "containers/mru_cache_unittest.cc",
1169 "containers/small_map_unittest.cc",
1170 "containers/stack_container_unittest.cc",
1172 "debug/crash_logging_unittest.cc",
1173 "debug/debugger_unittest.cc",
1174 "debug/leak_tracker_unittest.cc",
1175 "debug/proc_maps_linux_unittest.cc",
1176 "debug/stack_trace_unittest.cc",
1177 "debug/task_annotator_unittest.cc",
1178 "deferred_sequenced_task_runner_unittest.cc",
1179 "environment_unittest.cc",
1180 "file_version_info_unittest.cc",
1181 "files/dir_reader_posix_unittest.cc",
1182 "files/file_path_unittest.cc",
1183 "files/file_proxy_unittest.cc",
1184 "files/file_unittest.cc",
1185 "files/file_util_proxy_unittest.cc",
1186 "files/file_util_unittest.cc",
1187 "files/important_file_writer_unittest.cc",
1188 "files/scoped_temp_dir_unittest.cc",
1189 "gmock_unittest.cc",
1192 "id_map_unittest.cc",
1193 "i18n/break_iterator_unittest.cc",
1194 "i18n/char_iterator_unittest.cc",
1195 "i18n/case_conversion_unittest.cc",
1196 "i18n/file_util_icu_unittest.cc",
1197 "i18n/icu_string_conversions_unittest.cc",
1198 "i18n/number_formatting_unittest.cc",
1199 "i18n/rtl_unittest.cc",
1200 "i18n/streaming_utf8_validator_unittest.cc",
1201 "i18n/string_search_unittest.cc",
1202 "i18n/time_formatting_unittest.cc",
1203 "i18n/timezone_unittest.cc",
1204 "ios/device_util_unittest.mm",
1205 "ios/weak_nsobject_unittest.mm",
1206 "json/json_parser_unittest.cc",
1207 "json/json_reader_unittest.cc",
1208 "json/json_value_converter_unittest.cc",
1209 "json/json_value_serializer_unittest.cc",
1210 "json/json_writer_unittest.cc",
1211 "json/string_escape_unittest.cc",
1212 "lazy_instance_unittest.cc",
1213 "logging_unittest.cc",
1214 "mac/bind_objc_block_unittest.mm",
1215 "mac/foundation_util_unittest.mm",
1216 "mac/libdispatch_task_runner_unittest.cc",
1217 "mac/mac_util_unittest.mm",
1218 "mac/objc_property_releaser_unittest.mm",
1219 "mac/scoped_nsobject_unittest.mm",
1220 "mac/scoped_objc_class_swizzler_unittest.mm",
1221 "mac/scoped_sending_event_unittest.mm",
1223 "memory/aligned_memory_unittest.cc",
1224 "memory/discardable_memory_manager_unittest.cc",
1225 "memory/discardable_memory_unittest.cc",
1226 "memory/discardable_shared_memory_unittest.cc",
1227 "memory/linked_ptr_unittest.cc",
1228 "memory/ref_counted_memory_unittest.cc",
1229 "memory/ref_counted_unittest.cc",
1230 "memory/scoped_ptr_unittest.cc",
1231 "memory/scoped_ptr_unittest.nc",
1232 "memory/scoped_vector_unittest.cc",
1233 "memory/shared_memory_unittest.cc",
1234 "memory/singleton_unittest.cc",
1235 "memory/weak_ptr_unittest.cc",
1236 "memory/weak_ptr_unittest.nc",
1237 "message_loop/message_loop_proxy_impl_unittest.cc",
1238 "message_loop/message_loop_proxy_unittest.cc",
1239 "message_loop/message_loop_unittest.cc",
1240 "message_loop/message_pump_glib_unittest.cc",
1241 "message_loop/message_pump_io_ios_unittest.cc",
1242 "metrics/sample_map_unittest.cc",
1243 "metrics/sample_vector_unittest.cc",
1244 "metrics/bucket_ranges_unittest.cc",
1245 "metrics/field_trial_unittest.cc",
1246 "metrics/histogram_base_unittest.cc",
1247 "metrics/histogram_delta_serialization_unittest.cc",
1248 "metrics/histogram_snapshot_manager_unittest.cc",
1249 "metrics/histogram_unittest.cc",
1250 "metrics/sparse_histogram_unittest.cc",
1251 "metrics/stats_table_unittest.cc",
1252 "metrics/statistics_recorder_unittest.cc",
1253 "observer_list_unittest.cc",
1254 "os_compat_android_unittest.cc",
1255 "path_service_unittest.cc",
1256 "pickle_unittest.cc",
1257 "posix/file_descriptor_shuffle_unittest.cc",
1258 "posix/unix_domain_socket_linux_unittest.cc",
1259 "power_monitor/power_monitor_unittest.cc",
1260 "prefs/default_pref_store_unittest.cc",
1261 "prefs/json_pref_store_unittest.cc",
1262 "prefs/overlay_user_pref_store_unittest.cc",
1263 "prefs/pref_change_registrar_unittest.cc",
1264 "prefs/pref_member_unittest.cc",
1265 "prefs/pref_notifier_impl_unittest.cc",
1266 "prefs/pref_service_unittest.cc",
1267 "prefs/pref_value_map_unittest.cc",
1268 "prefs/pref_value_store_unittest.cc",
1269 "prefs/scoped_user_pref_update_unittest.cc",
1270 "process/memory_unittest.cc",
1271 "process/memory_unittest_mac.h",
1272 "process/memory_unittest_mac.mm",
1273 "process/process_metrics_unittest.cc",
1274 "process/process_metrics_unittest_ios.cc",
1275 "process/process_unittest.cc",
1276 "process/process_util_unittest.cc",
1277 "process/process_util_unittest_ios.cc",
1278 "profiler/tracked_time_unittest.cc",
1279 "rand_util_unittest.cc",
1280 "numerics/safe_numerics_unittest.cc",
1281 "scoped_clear_errno_unittest.cc",
1282 "scoped_generic_unittest.cc",
1283 "scoped_native_library_unittest.cc",
1284 "security_unittest.cc",
1285 "sequence_checker_unittest.cc",
1287 "stl_util_unittest.cc",
1288 "strings/nullable_string16_unittest.cc",
1289 "strings/safe_sprintf_unittest.cc",
1290 "strings/string16_unittest.cc",
1291 "strings/stringprintf_unittest.cc",
1292 "strings/string_number_conversions_unittest.cc",
1293 "strings/string_piece_unittest.cc",
1294 "strings/string_split_unittest.cc",
1295 "strings/string_tokenizer_unittest.cc",
1296 "strings/string_util_unittest.cc",
1297 "strings/stringize_macros_unittest.cc",
1298 "strings/sys_string_conversions_mac_unittest.mm",
1299 "strings/sys_string_conversions_unittest.cc",
1300 "strings/utf_offset_string_conversions_unittest.cc",
1301 "strings/utf_string_conversions_unittest.cc",
1302 "supports_user_data_unittest.cc",
1303 "sync_socket_unittest.cc",
1304 "synchronization/cancellation_flag_unittest.cc",
1305 "synchronization/condition_variable_unittest.cc",
1306 "synchronization/lock_unittest.cc",
1307 "synchronization/waitable_event_unittest.cc",
1308 "synchronization/waitable_event_watcher_unittest.cc",
1309 "sys_info_unittest.cc",
1310 "system_monitor/system_monitor_unittest.cc",
1311 "task/cancelable_task_tracker_unittest.cc",
1312 "task_runner_util_unittest.cc",
1313 "template_util_unittest.cc",
1314 "test/expectations/expectation_unittest.cc",
1315 "test/expectations/parser_unittest.cc",
1316 "test/histogram_tester_unittest.cc",
1317 "test/test_reg_util_win_unittest.cc",
1318 "test/trace_event_analyzer_unittest.cc",
1319 "threading/non_thread_safe_unittest.cc",
1320 "threading/platform_thread_unittest.cc",
1321 "threading/sequenced_worker_pool_unittest.cc",
1322 "threading/simple_thread_unittest.cc",
1323 "threading/thread_checker_unittest.cc",
1324 "threading/thread_collision_warner_unittest.cc",
1325 "threading/thread_id_name_manager_unittest.cc",
1326 "threading/thread_local_storage_unittest.cc",
1327 "threading/thread_local_unittest.cc",
1328 "threading/thread_unittest.cc",
1329 "threading/watchdog_unittest.cc",
1330 "threading/worker_pool_posix_unittest.cc",
1331 "threading/worker_pool_unittest.cc",
1332 "time/pr_time_unittest.cc",
1333 "time/time_unittest.cc",
1334 "time/time_win_unittest.cc",
1335 "timer/hi_res_timer_manager_unittest.cc",
1336 "timer/mock_timer_unittest.cc",
1337 "timer/timer_unittest.cc",
1338 "tools_sanity_unittest.cc",
1339 "trace_event/trace_event_argument_unittest.cc",
1340 "trace_event/trace_event_memory_unittest.cc",
1341 "trace_event/trace_event_synthetic_delay_unittest.cc",
1342 "trace_event/trace_event_system_stats_monitor_unittest.cc",
1343 "trace_event/trace_event_unittest.cc",
1344 "trace_event/trace_event_win_unittest.cc",
1345 "tracked_objects_unittest.cc",
1346 "tuple_unittest.cc",
1347 "values_unittest.cc",
1348 "version_unittest.cc",
1351 "win/enum_variant_unittest.cc",
1352 "win/event_trace_consumer_unittest.cc",
1353 "win/event_trace_controller_unittest.cc",
1354 "win/event_trace_provider_unittest.cc",
1355 "win/i18n_unittest.cc",
1356 "win/iunknown_impl_unittest.cc",
1357 "win/message_window_unittest.cc",
1358 "win/object_watcher_unittest.cc",
1359 "win/pe_image_unittest.cc",
1360 "win/registry_unittest.cc",
1361 "win/scoped_bstr_unittest.cc",
1362 "win/scoped_comptr_unittest.cc",
1363 "win/scoped_process_information_unittest.cc",
1364 "win/scoped_variant_unittest.cc",
1365 "win/shortcut_unittest.cc",
1366 "win/startup_information_unittest.cc",
1367 "win/win_util_unittest.cc",
1368 "win/wrapped_window_proc_unittest.cc",
1374 ":message_loop_tests",
1376 ":prefs_test_support",
1378 "//base/test:run_all_unittests",
1379 "//base/test:test_support",
1380 "//base/third_party/dynamic_annotations",
1383 "//third_party/icu",
1389 ":base_java_unittest_support",
1395 "metrics/stats_table_uinittest.cc", # Requires spawning a process.
1396 "process/memory_unittest.cc",
1397 "process/memory_unittest_mac.h",
1398 "process/memory_unittest_mac.mm",
1399 "process/process_unittest.cc",
1400 "process/process_util_unittest.cc",
1403 # Pull in specific Mac files for iOS (which have been filtered out by file
1405 set_sources_assignment_filter([])
1407 "mac/bind_objc_block_unittest.mm",
1408 "mac/foundation_util_unittest.mm",
1409 "mac/objc_property_releaser_unittest.mm",
1410 "mac/scoped_nsobject_unittest.mm",
1411 "sys_string_conversions_mac_unittest.mm",
1413 set_sources_assignment_filter(sources_assignment_filter)
1415 # TODO(GYP): dep on copy_test_data_ios action.
1419 sources -= [ "file_version_info_unittest.cc" ]
1420 sources += [ "nix/xdg_util_unittest.cc" ]
1421 defines = [ "USE_SYMBOLIZE" ]
1423 configs += [ "//build/config/linux:glib" ]
1427 if (!is_linux || use_ozone) {
1428 sources -= [ "message_loop/message_pump_glib_unittest.cc" ]
1431 if (is_posix || is_ios) {
1432 sources += [ "message_loop/message_pump_libevent_unittest.cc" ]
1433 deps += [ "//third_party/libevent" ]
1437 deps += [ "//testing/android:native_test_native_code" ]
1438 set_sources_assignment_filter([])
1439 sources += [ "debug/proc_maps_linux_unittest.cc" ]
1440 set_sources_assignment_filter(sources_assignment_filter)
1444 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1445 cflags = [ "/wd4267" ]
1450 # GYP: //base.gyp:base_jni_headers
1451 generate_jni("base_jni_headers") {
1453 "android/java/src/org/chromium/base/ApplicationStatus.java",
1454 "android/java/src/org/chromium/base/BuildInfo.java",
1455 "android/java/src/org/chromium/base/CommandLine.java",
1456 "android/java/src/org/chromium/base/ContentUriUtils.java",
1457 "android/java/src/org/chromium/base/CpuFeatures.java",
1458 "android/java/src/org/chromium/base/EventLog.java",
1459 "android/java/src/org/chromium/base/FieldTrialList.java",
1460 "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java",
1461 "android/java/src/org/chromium/base/JNIUtils.java",
1462 "android/java/src/org/chromium/base/JavaHandlerThread.java",
1463 "android/java/src/org/chromium/base/LocaleUtils.java",
1464 "android/java/src/org/chromium/base/MemoryPressureListener.java",
1465 "android/java/src/org/chromium/base/PathService.java",
1466 "android/java/src/org/chromium/base/PathUtils.java",
1467 "android/java/src/org/chromium/base/PowerMonitor.java",
1468 "android/java/src/org/chromium/base/SysUtils.java",
1469 "android/java/src/org/chromium/base/SystemMessageHandler.java",
1470 "android/java/src/org/chromium/base/ThreadUtils.java",
1471 "android/java/src/org/chromium/base/TraceEvent.java",
1472 "android/java/src/org/chromium/base/library_loader/LibraryLoader.java",
1473 "android/java/src/org/chromium/base/metrics/RecordHistogram.java",
1475 jni_package = "base"
1478 # GYP: //base.gyp:base_java
1479 android_library("base_java") {
1481 ":base_android_java_enums_srcjar",
1482 ":base_native_libraries_gen",
1486 "//third_party/jsr-305:jsr_305_javalib",
1489 DEPRECATED_java_in_dir = "android/java/src"
1491 # A new version of NativeLibraries.java (with the actual correct values)
1492 # will be created when creating an apk.
1493 jar_excluded_patterns = [
1494 "*/NativeLibraries.class",
1495 "*/NativeLibraries##*.class",
1499 # GYP: //base.gyp:base_javatests
1500 android_library("base_javatests") {
1503 ":base_java_test_support",
1505 DEPRECATED_java_in_dir = "android/javatests/src"
1508 # GYP: //base.gyp:base_java_test_support
1509 android_library("base_java_test_support") {
1513 DEPRECATED_java_in_dir = "test/android/javatests/src"
1516 # GYP: //base.gyp:base_java_application_state
1517 # GYP: //base.gyp:base_java_library_load_from_apk_status_codes
1518 # GYP: //base.gyp:base_java_memory_pressure_level
1519 java_cpp_enum("base_android_java_enums_srcjar") {
1521 "android/application_status_listener.h",
1522 "android/library_loader/library_load_from_apk_status_codes.h",
1523 "memory/memory_pressure_listener.h",
1526 "org/chromium/base/ApplicationState.java",
1527 "org/chromium/base/library_loader/LibraryLoadFromApkStatusCodes.java",
1528 "org/chromium/base/MemoryPressureLevel.java",
1532 # GYP: //base/base.gyp:base_native_libraries_gen
1533 java_cpp_template("base_native_libraries_gen") {
1535 "android/java/templates/NativeLibraries.template",
1537 package_name = "org/chromium/base/library_loader"
1540 # GYP: //base.gyp:base_java_unittest_support
1541 android_library("base_java_unittest_support") {
1546 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ]