Update strings for turning off Smart Lock.
[chromium-blink-merge.git] / base / BUILD.gn
blob84beb15e2c6368595fc0245dfd4b88cd20767cf3
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")
7 if (is_android) {
8   import("//build/config/android/rules.gni")
11 component("base") {
12   sources = [
13     "third_party/dmg_fp/dmg_fp.h",
14     "third_party/dmg_fp/g_fmt.cc",
15     "third_party/dmg_fp/dtoa_wrapper.cc",
16     "third_party/icu/icu_utf.cc",
17     "third_party/icu/icu_utf.h",
18     "third_party/superfasthash/superfasthash.c",
19     "allocator/allocator_extension.cc",
20     "allocator/allocator_extension.h",
21     "allocator/type_profiler_control.cc",
22     "allocator/type_profiler_control.h",
23     "android/application_status_listener.cc",
24     "android/application_status_listener.h",
25     "android/base_jni_registrar.cc",
26     "android/base_jni_registrar.h",
27     "android/build_info.cc",
28     "android/build_info.h",
29     "android/command_line_android.cc",
30     "android/command_line_android.h",
31     "android/content_uri_utils.cc",
32     "android/content_uri_utils.h",
33     "android/cpu_features.cc",
34     "android/event_log.cc",
35     "android/event_log.h",
36     "android/field_trial_list.cc",
37     "android/field_trial_list.h",
38     "android/fifo_utils.cc",
39     "android/fifo_utils.h",
40     "android/important_file_writer_android.cc",
41     "android/important_file_writer_android.h",
42     "android/locale_utils.cc",
43     "android/locale_utils.h",
44     "android/scoped_java_ref.cc",
45     "android/scoped_java_ref.h",
46     "android/jni_android.cc",
47     "android/jni_android.h",
48     "android/jni_array.cc",
49     "android/jni_array.h",
50     "android/jni_registrar.cc",
51     "android/jni_registrar.h",
52     "android/jni_string.cc",
53     "android/jni_string.h",
54     "android/jni_utils.cc",
55     "android/jni_utils.h",
56     "android/jni_weak_ref.cc",
57     "android/jni_weak_ref.h",
58     "android/library_loader/library_loader_hooks.cc",
59     "android/library_loader/library_loader_hooks.h",
60     "android/library_loader/library_load_from_apk_status_codes.h",
61     "android/memory_pressure_listener_android.cc",
62     "android/memory_pressure_listener_android.h",
63     "android/java_handler_thread.cc",
64     "android/java_handler_thread.h",
65     "android/path_service_android.cc",
66     "android/path_service_android.h",
67     "android/path_utils.cc",
68     "android/path_utils.h",
69     "android/sys_utils.cc",
70     "android/sys_utils.h",
71     "android/thread_utils.h",
72     "android/trace_event_binding.cc",
73     "android/trace_event_binding.h",
74     "async_socket_io_handler.h",
75     "async_socket_io_handler_posix.cc",
76     "async_socket_io_handler_win.cc",
77     "at_exit.cc",
78     "at_exit.h",
79     "atomic_ref_count.h",
80     "atomic_sequence_num.h",
81     "atomicops.h",
82     "atomicops_internals_gcc.h",
83     "atomicops_internals_mac.h",
84     "atomicops_internals_portable.h",
85     "atomicops_internals_x86_gcc.cc",
86     "atomicops_internals_x86_gcc.h",
87     "atomicops_internals_x86_msvc.h",
88     "auto_reset.h",
89     "barrier_closure.cc",
90     "barrier_closure.h",
91     "base_export.h",
92     "base_paths.cc",
93     "base_paths.h",
94     "base_paths_android.cc",
95     "base_paths_android.h",
96     "base_paths_mac.h",
97     "base_paths_mac.mm",
98     "base_paths_posix.cc",
99     "base_paths_posix.h",
100     "base_paths_win.cc",
101     "base_paths_win.h",
102     "base_switches.h",
103     "base64.cc",
104     "base64.h",
105     "basictypes.h",
106     "big_endian.cc",
107     "big_endian.h",
108     "bind.h",
109     "bind_helpers.cc",
110     "bind_helpers.h",
111     "bind_internal.h",
112     "bind_internal_win.h",
113     "bits.h",
114     "build_time.cc",
115     "build_time.h",
116     "callback.h",
117     "callback_helpers.cc",
118     "callback_helpers.h",
119     "callback_internal.cc",
120     "callback_internal.h",
121     "cancelable_callback.h",
122     "command_line.cc",
123     "command_line.h",
124     "compiler_specific.h",
125     "containers/adapters.h",
126     "containers/hash_tables.h",
127     "containers/linked_list.h",
128     "containers/mru_cache.h",
129     "containers/small_map.h",
130     "containers/stack_container.h",
131     "cpu.cc",
132     "cpu.h",
133     "critical_closure.h",
134     "critical_closure_internal_ios.mm",
135     "debug/alias.cc",
136     "debug/alias.h",
137     "debug/asan_invalid_access.cc",
138     "debug/asan_invalid_access.h",
139     "debug/crash_logging.cc",
140     "debug/crash_logging.h",
141     "debug/debugger.cc",
142     "debug/debugger.h",
143     "debug/debugger_posix.cc",
144     "debug/debugger_win.cc",
145     "debug/dump_without_crashing.cc",
146     "debug/dump_without_crashing.h",
147     "debug/gdi_debug_util_win.cc",
148     "debug/gdi_debug_util_win.h",
149     # This file depends on files from the "allocator" target,
150     # but this target does not depend on "allocator" (see
151     # allocator.gyp for details).
152     "debug/leak_annotations.h",
153     "debug/leak_tracker.h",
154     "debug/proc_maps_linux.cc",
155     "debug/proc_maps_linux.h",
156     "debug/profiler.cc",
157     "debug/profiler.h",
158     "debug/stack_trace.cc",
159     "debug/stack_trace.h",
160     "debug/stack_trace_android.cc",
161     "debug/stack_trace_posix.cc",
162     "debug/stack_trace_win.cc",
163     "debug/task_annotator.cc",
164     "debug/task_annotator.h",
165     "debug/trace_event.h",
166     "debug/trace_event_android.cc",
167     "debug/trace_event_argument.cc",
168     "debug/trace_event_argument.h",
169     "debug/trace_event_impl.cc",
170     "debug/trace_event_impl.h",
171     "debug/trace_event_impl_constants.cc",
172     "debug/trace_event_memory.cc",
173     "debug/trace_event_memory.h",
174     "debug/trace_event_synthetic_delay.cc",
175     "debug/trace_event_synthetic_delay.h",
176     "debug/trace_event_system_stats_monitor.cc",
177     "debug/trace_event_system_stats_monitor.h",
178     "debug/trace_event_win.cc",
179     "deferred_sequenced_task_runner.cc",
180     "deferred_sequenced_task_runner.h",
181     "environment.cc",
182     "environment.h",
183     "event_recorder.h",
184     "event_recorder_stubs.cc",
185     "event_recorder_win.cc",
186     "file_descriptor_posix.h",
187     "file_version_info.h",
188     "file_version_info_mac.h",
189     "file_version_info_mac.mm",
190     "file_version_info_win.cc",
191     "file_version_info_win.h",
192     "files/dir_reader_fallback.h",
193     "files/dir_reader_linux.h",
194     "files/dir_reader_posix.h",
195     "files/file.cc",
196     "files/file_posix.cc",
197     "files/file_win.cc",
198     "files/file_enumerator.cc",
199     "files/file_enumerator.h",
200     "files/file_enumerator_posix.cc",
201     "files/file_enumerator_win.cc",
202     "files/file_path.cc",
203     "files/file_path.h",
204     "files/file_path_constants.cc",
205     "files/file_path_watcher.cc",
206     "files/file_path_watcher.h",
207     "files/file_path_watcher_fsevents.cc",
208     "files/file_path_watcher_fsevents.h",
209     "files/file_path_watcher_kqueue.cc",
210     "files/file_path_watcher_kqueue.h",
211     "files/file_path_watcher_linux.cc",
212     "files/file_path_watcher_mac.cc",
213     "files/file_path_watcher_win.cc",
214     "files/file_proxy.cc",
215     "files/file_proxy.h",
216     "files/file_util.cc",
217     "files/file_util.h",
218     "files/file_util_android.cc",
219     "files/file_util_linux.cc",
220     "files/file_util_mac.mm",
221     "files/file_util_posix.cc",
222     "files/file_util_proxy.cc",
223     "files/file_util_proxy.h",
224     "files/file_util_win.cc",
225     "files/important_file_writer.cc",
226     "files/important_file_writer.h",
227     "files/memory_mapped_file.cc",
228     "files/memory_mapped_file.h",
229     "files/memory_mapped_file_posix.cc",
230     "files/memory_mapped_file_win.cc",
231     "files/scoped_file.cc",
232     "files/scoped_file.h",
233     "files/scoped_temp_dir.cc",
234     "files/scoped_temp_dir.h",
235     "float_util.h",
236     "format_macros.h",
237     "gtest_prod_util.h",
238     "guid.cc",
239     "guid.h",
240     "guid_posix.cc",
241     "guid_win.cc",
242     "hash.cc",
243     "hash.h",
244     "id_map.h",
245     "ios/device_util.h",
246     "ios/device_util.mm",
247     "ios/ios_util.h",
248     "ios/ios_util.mm",
249     "ios/scoped_critical_action.h",
250     "ios/scoped_critical_action.mm",
251     "json/json_file_value_serializer.cc",
252     "json/json_file_value_serializer.h",
253     "json/json_parser.cc",
254     "json/json_parser.h",
255     "json/json_reader.cc",
256     "json/json_reader.h",
257     "json/json_string_value_serializer.cc",
258     "json/json_string_value_serializer.h",
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",
264     "lazy_instance.cc",
265     "lazy_instance.h",
266     "linux_util.cc",
267     "linux_util.h",
268     "location.cc",
269     "location.h",
270     "logging.cc",
271     "logging.h",
272     "logging_win.cc",
273     "logging_win.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",
284     "mac/launchd.cc",
285     "mac/launchd.h",
286     "mac/libdispatch_task_runner.cc",
287     "mac/libdispatch_task_runner.h",
288     "mac/mac_logging.h",
289     "mac/mac_logging.cc",
290     "mac/mac_util.h",
291     "mac/mac_util.mm",
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",
319     "macros.h",
320     "md5.cc",
321     "md5.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",
362     "memory/weak_ptr.h",
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_samples.cc",
403     "metrics/histogram_samples.h",
404     "metrics/histogram_snapshot_manager.cc",
405     "metrics/histogram_snapshot_manager.h",
406     "metrics/sparse_histogram.cc",
407     "metrics/sparse_histogram.h",
408     "metrics/statistics_recorder.cc",
409     "metrics/statistics_recorder.h",
410     "metrics/stats_counters.cc",
411     "metrics/stats_counters.h",
412     "metrics/stats_table.cc",
413     "metrics/stats_table.h",
414     "metrics/user_metrics.cc",
415     "metrics/user_metrics.h",
416     "metrics/user_metrics_action.h",
417     "move.h",
418     "native_library.h",
419     "native_library_mac.mm",
420     "native_library_posix.cc",
421     "native_library_win.cc",
422     "numerics/safe_conversions.h",
423     "numerics/safe_conversions_impl.h",
424     "numerics/safe_math.h",
425     "numerics/safe_math_impl.h",
426     "nix/mime_util_xdg.cc",
427     "nix/mime_util_xdg.h",
428     "nix/xdg_util.cc",
429     "nix/xdg_util.h",
430     "observer_list.h",
431     "observer_list_threadsafe.h",
432     "os_compat_android.cc",
433     "os_compat_android.h",
434     "os_compat_nacl.cc",
435     "os_compat_nacl.h",
436     "path_service.cc",
437     "path_service.h",
438     "pending_task.cc",
439     "pending_task.h",
440     "pickle.cc",
441     "pickle.h",
442     "port.h",
443     "posix/eintr_wrapper.h",
444     "posix/file_descriptor_shuffle.cc",
445     "posix/global_descriptors.cc",
446     "posix/global_descriptors.h",
447     "posix/unix_domain_socket_linux.cc",
448     "posix/unix_domain_socket_linux.h",
449     "power_monitor/power_monitor.cc",
450     "power_monitor/power_monitor.h",
451     "power_monitor/power_monitor_device_source.cc",
452     "power_monitor/power_monitor_device_source.h",
453     "power_monitor/power_monitor_device_source_android.cc",
454     "power_monitor/power_monitor_device_source_android.h",
455     "power_monitor/power_monitor_device_source_chromeos.cc",
456     "power_monitor/power_monitor_device_source_ios.mm",
457     "power_monitor/power_monitor_device_source_mac.mm",
458     "power_monitor/power_monitor_device_source_posix.cc",
459     "power_monitor/power_monitor_device_source_win.cc",
460     "power_monitor/power_monitor_source.cc",
461     "power_monitor/power_monitor_source.h",
462     "power_monitor/power_observer.h",
463     "process/internal_linux.cc",
464     "process/internal_linux.h",
465     "process/kill.cc",
466     "process/kill.h",
467     "process/kill_mac.cc",
468     "process/kill_posix.cc",
469     "process/kill_win.cc",
470     "process/launch.cc",
471     "process/launch.h",
472     "process/launch_ios.cc",
473     "process/launch_mac.cc",
474     "process/launch_posix.cc",
475     "process/launch_win.cc",
476     "process/memory.cc",
477     "process/memory.h",
478     "process/memory_linux.cc",
479     "process/memory_mac.mm",
480     "process/memory_win.cc",
481     "process/process.h",
482     "process/process_handle_freebsd.cc",
483     "process/process_handle_linux.cc",
484     "process/process_handle_mac.cc",
485     "process/process_handle_openbsd.cc",
486     "process/process_handle_posix.cc",
487     "process/process_handle_win.cc",
488     "process/process_info.h",
489     "process/process_info_linux.cc",
490     "process/process_info_mac.cc",
491     "process/process_info_win.cc",
492     "process/process_iterator.cc",
493     "process/process_iterator.h",
494     "process/process_iterator_freebsd.cc",
495     "process/process_iterator_linux.cc",
496     "process/process_iterator_mac.cc",
497     "process/process_iterator_openbsd.cc",
498     "process/process_iterator_win.cc",
499     "process/process_linux.cc",
500     "process/process_metrics.cc",
501     "process/process_metrics.h",
502     "process/process_metrics_freebsd.cc",
503     "process/process_metrics_ios.cc",
504     "process/process_metrics_linux.cc",
505     "process/process_metrics_mac.cc",
506     "process/process_metrics_openbsd.cc",
507     "process/process_metrics_posix.cc",
508     "process/process_metrics_win.cc",
509     "process/process_posix.cc",
510     "process/process_win.cc",
511     "profiler/alternate_timer.cc",
512     "profiler/alternate_timer.h",
513     "profiler/scoped_profile.cc",
514     "profiler/scoped_profile.h",
515     "profiler/scoped_tracker.cc",
516     "profiler/scoped_tracker.h",
517     "profiler/tracked_time.cc",
518     "profiler/tracked_time.h",
519     "rand_util.cc",
520     "rand_util.h",
521     "rand_util_nacl.cc",
522     "rand_util_posix.cc",
523     "rand_util_win.cc",
524     "run_loop.cc",
525     "run_loop.h",
526     "safe_strerror_posix.cc",
527     "safe_strerror_posix.h",
528     "scoped_generic.h",
529     "scoped_native_library.cc",
530     "scoped_native_library.h",
531     "scoped_observer.h",
532     "sequence_checker.h",
533     "sequence_checker_impl.cc",
534     "sequence_checker_impl.h",
535     "sequenced_task_runner.cc",
536     "sequenced_task_runner.h",
537     "sequenced_task_runner_helpers.h",
538     "sha1.h",
539     "sha1_portable.cc",
540     "sha1_win.cc",
541     "single_thread_task_runner.h",
542     "stl_util.h",
543     "strings/latin1_string_conversions.cc",
544     "strings/latin1_string_conversions.h",
545     "strings/nullable_string16.cc",
546     "strings/nullable_string16.h",
547     "strings/safe_sprintf.cc",
548     "strings/safe_sprintf.h",
549     "strings/string16.cc",
550     "strings/string16.h",
551     "strings/string_number_conversions.cc",
552     "strings/string_split.cc",
553     "strings/string_split.h",
554     "strings/string_number_conversions.h",
555     "strings/string_piece.cc",
556     "strings/string_piece.h",
557     "strings/string_tokenizer.h",
558     "strings/string_util.cc",
559     "strings/string_util.h",
560     "strings/string_util_constants.cc",
561     "strings/string_util_posix.h",
562     "strings/string_util_win.h",
563     "strings/stringize_macros.h",
564     "strings/stringprintf.cc",
565     "strings/stringprintf.h",
566     "strings/sys_string_conversions.h",
567     "strings/sys_string_conversions_mac.mm",
568     "strings/sys_string_conversions_posix.cc",
569     "strings/sys_string_conversions_win.cc",
570     "strings/utf_offset_string_conversions.cc",
571     "strings/utf_offset_string_conversions.h",
572     "strings/utf_string_conversion_utils.cc",
573     "strings/utf_string_conversion_utils.h",
574     "strings/utf_string_conversions.cc",
575     "strings/utf_string_conversions.h",
576     "supports_user_data.cc",
577     "supports_user_data.h",
578     "sync_socket.h",
579     "sync_socket_posix.cc",
580     "sync_socket_win.cc",
581     "synchronization/cancellation_flag.cc",
582     "synchronization/cancellation_flag.h",
583     "synchronization/condition_variable.h",
584     "synchronization/condition_variable_posix.cc",
585     "synchronization/condition_variable_win.cc",
586     "synchronization/lock.cc",
587     "synchronization/lock.h",
588     "synchronization/lock_impl.h",
589     "synchronization/lock_impl_posix.cc",
590     "synchronization/lock_impl_win.cc",
591     "synchronization/spin_wait.h",
592     "synchronization/waitable_event.h",
593     "synchronization/waitable_event_posix.cc",
594     "synchronization/waitable_event_watcher.h",
595     "synchronization/waitable_event_watcher_posix.cc",
596     "synchronization/waitable_event_watcher_win.cc",
597     "synchronization/waitable_event_win.cc",
598     "system_monitor/system_monitor.cc",
599     "system_monitor/system_monitor.h",
600     "sys_byteorder.h",
601     "sys_info.cc",
602     "sys_info.h",
603     "sys_info_android.cc",
604     "sys_info_chromeos.cc",
605     "sys_info_freebsd.cc",
606     "sys_info_ios.mm",
607     "sys_info_linux.cc",
608     "sys_info_mac.cc",
609     "sys_info_openbsd.cc",
610     "sys_info_posix.cc",
611     "sys_info_win.cc",
612     "task/cancelable_task_tracker.cc",
613     "task/cancelable_task_tracker.h",
614     "task_runner.cc",
615     "task_runner.h",
616     "task_runner_util.h",
617     "template_util.h",
618     "thread_task_runner_handle.cc",
619     "thread_task_runner_handle.h",
620     "threading/non_thread_safe.h",
621     "threading/non_thread_safe_impl.cc",
622     "threading/non_thread_safe_impl.h",
623     "threading/platform_thread.h",
624     "threading/platform_thread_android.cc",
625     "threading/platform_thread_linux.cc",
626     "threading/platform_thread_mac.mm",
627     "threading/platform_thread_posix.cc",
628     "threading/platform_thread_win.cc",
629     "threading/post_task_and_reply_impl.cc",
630     "threading/post_task_and_reply_impl.h",
631     "threading/sequenced_worker_pool.cc",
632     "threading/sequenced_worker_pool.h",
633     "threading/simple_thread.cc",
634     "threading/simple_thread.h",
635     "threading/thread.cc",
636     "threading/thread.h",
637     "threading/thread_checker.h",
638     "threading/thread_checker_impl.cc",
639     "threading/thread_checker_impl.h",
640     "threading/thread_collision_warner.cc",
641     "threading/thread_collision_warner.h",
642     "threading/thread_id_name_manager.cc",
643     "threading/thread_id_name_manager.h",
644     "threading/thread_local.h",
645     "threading/thread_local_android.cc",
646     "threading/thread_local_posix.cc",
647     "threading/thread_local_storage.cc",
648     "threading/thread_local_storage.h",
649     "threading/thread_local_storage_posix.cc",
650     "threading/thread_local_storage_win.cc",
651     "threading/thread_local_win.cc",
652     "threading/thread_restrictions.h",
653     "threading/thread_restrictions.cc",
654     "threading/watchdog.cc",
655     "threading/watchdog.h",
656     "threading/worker_pool.h",
657     "threading/worker_pool.cc",
658     "threading/worker_pool_posix.cc",
659     "threading/worker_pool_posix.h",
660     "threading/worker_pool_win.cc",
661     "time/clock.cc",
662     "time/clock.h",
663     "time/default_clock.cc",
664     "time/default_clock.h",
665     "time/default_tick_clock.cc",
666     "time/default_tick_clock.h",
667     "time/tick_clock.cc",
668     "time/tick_clock.h",
669     "time/time.cc",
670     "time/time.h",
671     "time/time_mac.cc",
672     "time/time_posix.cc",
673     "time/time_win.cc",
674     "timer/elapsed_timer.cc",
675     "timer/elapsed_timer.h",
676     "timer/hi_res_timer_manager.h",
677     "timer/hi_res_timer_manager_posix.cc",
678     "timer/hi_res_timer_manager_win.cc",
679     "timer/mock_timer.cc",
680     "timer/mock_timer.h",
681     "timer/timer.cc",
682     "timer/timer.h",
683     "tracked_objects.cc",
684     "tracked_objects.h",
685     "tracking_info.cc",
686     "tracking_info.h",
687     "tuple.h",
688     "values.cc",
689     "values.h",
690     "value_conversions.cc",
691     "value_conversions.h",
692     "version.cc",
693     "version.h",
694     "vlog.cc",
695     "vlog.h",
696     "win/enum_variant.cc",
697     "win/enum_variant.h",
698     "win/event_trace_consumer.h",
699     "win/event_trace_controller.cc",
700     "win/event_trace_controller.h",
701     "win/event_trace_provider.cc",
702     "win/event_trace_provider.h",
703     "win/i18n.cc",
704     "win/i18n.h",
705     "win/iat_patch_function.cc",
706     "win/iat_patch_function.h",
707     "win/iunknown_impl.cc",
708     "win/iunknown_impl.h",
709     "win/message_window.cc",
710     "win/message_window.h",
711     "win/metro.cc",
712     "win/metro.h",
713     "win/object_watcher.cc",
714     "win/object_watcher.h",
715     "win/registry.cc",
716     "win/registry.h",
717     "win/resource_util.cc",
718     "win/resource_util.h",
719     "win/scoped_bstr.cc",
720     "win/scoped_bstr.h",
721     "win/scoped_co_mem.h",
722     "win/scoped_com_initializer.h",
723     "win/scoped_comptr.h",
724     "win/scoped_gdi_object.h",
725     "win/scoped_handle.cc",
726     "win/scoped_handle.h",
727     "win/scoped_hdc.h",
728     "win/scoped_hglobal.h",
729     "win/scoped_process_information.cc",
730     "win/scoped_process_information.h",
731     "win/scoped_propvariant.h",
732     "win/scoped_select_object.h",
733     "win/scoped_variant.cc",
734     "win/scoped_variant.h",
735     "win/shortcut.cc",
736     "win/shortcut.h",
737     "win/startup_information.cc",
738     "win/startup_information.h",
739     "win/win_util.cc",
740     "win/win_util.h",
741     "win/windows_version.cc",
742     "win/windows_version.h",
743     "win/wrapped_window_proc.cc",
744     "win/wrapped_window_proc.h",
745   ]
747   if (is_nacl) {
748     sources += [ "files/file_path_watcher_stub.cc" ]
749   }
751   sources -= [
752     "process/process_handle_freebsd.cc",
753     "process/process_handle_openbsd.cc",
754     "process/process_iterator_freebsd.cc",
755     "process/process_iterator_openbsd.cc",
756     "process/process_metrics_freebsd.cc",
757     "process/process_metrics_openbsd.cc",
758     "sys_info_freebsd.cc",
759     "sys_info_openbsd.cc",
760   ]
762   defines = [
763     "BASE_IMPLEMENTATION",
764   ]
766   deps = [
767     ":base_static",
768     "//base/allocator:allocator_extension_thunks",
769     "//base/third_party/dynamic_annotations",
770     "//base/third_party/nspr",
771     "//third_party/modp_b64",
772   ]
774   if (is_android) {
775     sources += [
776        "memory/discardable_memory_ashmem_allocator.cc",
777        "memory/discardable_memory_ashmem_allocator.h",
778        "memory/discardable_memory_ashmem.cc",
779        "memory/discardable_memory_ashmem.h",
780     ]
781     sources -= [
782       "base_paths_posix.cc",
783       "power_monitor/power_monitor_device_source_posix.cc",
784     ]
786     # Android uses some Linux sources, put those back.
787     set_sources_assignment_filter([])
788     sources += [
789       "debug/proc_maps_linux.cc",
790       "files/file_path_watcher_linux.cc",
791       "process/memory_linux.cc",
792       "process/internal_linux.cc",
793       "process/process_handle_linux.cc",
794       "process/process_iterator_linux.cc",
795       "process/process_metrics_linux.cc",
796       "posix/unix_domain_socket_linux.cc",
797       "sys_info_linux.cc",
798     ]
799     set_sources_assignment_filter(sources_assignment_filter)
801     deps += [
802       ":base_jni_headers",
803       "//third_party/ashmem",
804       "//third_party/android_tools:cpu_features"
805     ]
807     # logging.cc uses the Android logging library.
808     libs = [ "log" ]
810     sources -= [
811       "debug/stack_trace_posix.cc",
812     ]
813   }
815   if (is_chromeos) {
816     sources -= [
817       "power_monitor/power_monitor_device_source_posix.cc",
818     ]
819   }
821   if (is_nacl) {
822     # These things would otherwise be built on a Posix build but aren't
823     # supported on NaCl.
824     sources -= [
825       "debug/stack_trace_posix.cc",
826       "files/file_enumerator_posix.cc",
827       "files/file_util_posix.cc",
828       "message_loop/message_pump_libevent.cc",
829       "process/kill_posix.cc",
830       "process/launch_posix.cc",
831       "process/process_metrics_posix.cc",
832       "process/process_posix.cc",
833       "metrics/field_trial.cc",
834       "native_library_posix.cc",
835       "memory/shared_memory_posix.cc",
836       "sync_socket_posix.cc",
837       "sys_info_posix.cc",
838     ]
839   } else {
840     # Remove nacl stuff.
841     sources -= [
842       "os_compat_nacl.cc",
843       "os_compat_nacl.h",
844       "rand_util_nacl.cc",
845       "memory/shared_memory_nacl.cc",
846     ]
847   }
849   # Windows.
850   if (is_win) {
851     sources -= [
852       "event_recorder_stubs.cc",
853       "message_loop/message_pump_libevent.cc",
854       "strings/string16.cc",
855       # Not using sha1_win.cc because it may have caused a
856       # regression to page cycler moz.
857       "sha1_win.cc",
858     ]
860     # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
861     #cflags = [ "/wd4267" ]
863     libs = [
864       "cfgmgr32.lib",
865       "netapi32.lib",
866       "powrprof.lib",
867       "setupapi.lib",
868     ]
869     ldflags = [
870       "/DELAYLOAD:cfgmgr32.dll",
871       "/DELAYLOAD:powrprof.dll",
872       "/DELAYLOAD:setupapi.dll",
873     ]
874   } else if (!is_nacl) {
875     # Non-Windows.
876     deps += [ "//third_party/libevent" ]
877   }
879   # Mac.
880   if (is_mac) {
881     sources += [
882        "memory/discardable_memory_mach.cc",
883        "memory/discardable_memory_mach.h",
884     ]
885     sources -= [
886       "base_paths_posix.cc",
887       "native_library_posix.cc",
888       "strings/sys_string_conversions_posix.cc",
889     ]
890     deps += [ "//third_party/mach_override" ]
891   } else {
892     # Non-Mac.
893     sources -= [
894       "files/file_path_watcher_fsevents.cc",
895       "files/file_path_watcher_fsevents.h",
896       "files/file_path_watcher_kqueue.cc",
897       "files/file_path_watcher_kqueue.h",
898     ]
899   }
901   # Linux.
902   if (is_linux) {
903     # TODO(brettw) this will need to be parameterized at some point.
904     linux_configs = [
905       "//build/config/linux:glib",
906     ]
908     configs += linux_configs
909     all_dependent_configs = linux_configs
911     defines += [ "USE_SYMBOLIZE" ]
913     # These dependencies are not required on Android, and in the case
914     # of xdg_mime must be excluded due to licensing restrictions.
915     deps += [
916       "//base/third_party/symbolize",
917       "//base/third_party/xdg_mime",
918       "//base/third_party/xdg_user_dirs",
919     ]
920   } else {
921     # Non-Linux.
922     sources -= [
923       "nix/mime_util_xdg.cc",
924       "nix/mime_util_xdg.h",
925       "nix/xdg_util.cc",
926       "nix/xdg_util.h",
927     ]
929     if (!is_android) {
930       sources -= [
931         "linux_util.cc",
932         "linux_util.h",
933       ]
934     }
935   }
937   if (!use_glib) {
938     sources -= [
939       "message_loop/message_pump_glib.cc",
940       "message_loop/message_pump_glib.h",
941     ]
942   }
944   configs += [ "//build/config/compiler:wexit_time_destructors" ]
945   if (is_android && !is_debug) {
946     configs -= [ "//build/config/compiler:optimize" ]
947     configs += [ "//build/config/compiler:optimize_max" ]
948   }
951 # This is the subset of files from base that should not be used with a dynamic
952 # library. Note that this library cannot depend on base because base depends on
953 # base_static.
954 source_set("base_static") {
955   sources = [
956     "base_switches.cc",
957     "base_switches.h",
958     "win/pe_image.cc",
959     "win/pe_image.h",
960   ]
962   if (is_android && !is_debug) {
963     configs -= [ "//build/config/compiler:optimize" ]
964     configs += [ "//build/config/compiler:optimize_max" ]
965   }
968 component("i18n") {
969   output_name = "base_i18n"
970   sources = [
971     "i18n/base_i18n_export.h",
972     "i18n/bidi_line_iterator.cc",
973     "i18n/bidi_line_iterator.h",
974     "i18n/break_iterator.cc",
975     "i18n/break_iterator.h",
976     "i18n/case_conversion.cc",
977     "i18n/case_conversion.h",
978     "i18n/char_iterator.cc",
979     "i18n/char_iterator.h",
980     "i18n/file_util_icu.cc",
981     "i18n/file_util_icu.h",
982     "i18n/i18n_constants.cc",
983     "i18n/i18n_constants.h",
984     "i18n/icu_encoding_detection.cc",
985     "i18n/icu_encoding_detection.h",
986     "i18n/icu_string_conversions.cc",
987     "i18n/icu_string_conversions.h",
988     "i18n/icu_util.cc",
989     "i18n/icu_util.h",
990     "i18n/number_formatting.cc",
991     "i18n/number_formatting.h",
992     "i18n/rtl.cc",
993     "i18n/rtl.h",
994     "i18n/streaming_utf8_validator.cc",
995     "i18n/streaming_utf8_validator.h",
996     "i18n/string_compare.cc",
997     "i18n/string_compare.h",
998     "i18n/string_search.cc",
999     "i18n/string_search.h",
1000     "i18n/time_formatting.cc",
1001     "i18n/time_formatting.h",
1002     "i18n/timezone.cc",
1003     "i18n/timezone.h",
1004     "i18n/utf8_validator_tables.cc",
1005     "i18n/utf8_validator_tables.h",
1006   ]
1007   defines = [ "BASE_I18N_IMPLEMENTATION" ]
1008   configs += [ "//build/config/compiler:wexit_time_destructors" ]
1009   deps = [
1010     ":base",
1011     "//base/third_party/dynamic_annotations",
1012     "//third_party/icu",
1013   ]
1015   if (is_android && !is_debug) {
1016     configs -= [ "//build/config/compiler:optimize" ]
1017     configs += [ "//build/config/compiler:optimize_max" ]
1018   }
1021 source_set("prefs") {
1022   sources = [
1023     "prefs/base_prefs_export.h",
1024     "prefs/default_pref_store.cc",
1025     "prefs/default_pref_store.h",
1026     "prefs/json_pref_store.cc",
1027     "prefs/json_pref_store.h",
1028     "prefs/overlay_user_pref_store.cc",
1029     "prefs/overlay_user_pref_store.h",
1030     "prefs/persistent_pref_store.h",
1031     "prefs/pref_change_registrar.cc",
1032     "prefs/pref_change_registrar.h",
1033     "prefs/pref_filter.h",
1034     "prefs/pref_member.cc",
1035     "prefs/pref_member.h",
1036     "prefs/pref_notifier.h",
1037     "prefs/pref_notifier_impl.cc",
1038     "prefs/pref_notifier_impl.h",
1039     "prefs/pref_observer.h",
1040     "prefs/pref_registry.cc",
1041     "prefs/pref_registry.h",
1042     "prefs/pref_registry_simple.cc",
1043     "prefs/pref_registry_simple.h",
1044     "prefs/pref_service.cc",
1045     "prefs/pref_service.h",
1046     "prefs/pref_service_factory.cc",
1047     "prefs/pref_service_factory.h",
1048     "prefs/pref_store.cc",
1049     "prefs/pref_store.h",
1050     "prefs/pref_value_map.cc",
1051     "prefs/pref_value_map.h",
1052     "prefs/pref_value_store.cc",
1053     "prefs/pref_value_store.h",
1054     "prefs/scoped_user_pref_update.cc",
1055     "prefs/scoped_user_pref_update.h",
1056     "prefs/value_map_pref_store.cc",
1057     "prefs/value_map_pref_store.h",
1058     "prefs/writeable_pref_store.h",
1059   ]
1061   defines = [ "BASE_PREFS_IMPLEMENTATION" ]
1063   deps = [ ":base" ]
1065   if (is_android && !is_debug) {
1066     configs -= [ "//build/config/compiler:optimize" ]
1067     configs += [ "//build/config/compiler:optimize_max" ]
1068   }
1071 source_set("prefs_test_support") {
1072   testonly = true
1073   sources = [
1074     "prefs/mock_pref_change_callback.cc",
1075     "prefs/mock_pref_change_callback.h",
1076     "prefs/pref_store_observer_mock.cc",
1077     "prefs/pref_store_observer_mock.h",
1078     "prefs/testing_pref_service.cc",
1079     "prefs/testing_pref_service.h",
1080     "prefs/testing_pref_store.cc",
1081     "prefs/testing_pref_store.h",
1082   ]
1084   deps = [
1085     ":base",
1086     ":prefs",
1087     "//testing/gmock",
1088     "//testing/gtest",
1089   ]
1092 source_set("message_loop_tests") {
1093   testonly = true
1094   sources = [
1095     "message_loop/message_loop_test.cc",
1096     "message_loop/message_loop_test.h",
1097   ]
1099   deps = [
1100     ":base",
1101     "//testing/gtest",
1102   ]
1105 test("base_unittests") {
1106   sources = [
1107     "android/application_status_listener_unittest.cc",
1108     "android/jni_android_unittest.cc",
1109     "android/jni_array_unittest.cc",
1110     "android/jni_string_unittest.cc",
1111     "android/path_utils_unittest.cc",
1112     "android/scoped_java_ref_unittest.cc",
1113     "android/sys_utils_unittest.cc",
1114     "async_socket_io_handler_unittest.cc",
1115     "at_exit_unittest.cc",
1116     "atomicops_unittest.cc",
1117     "barrier_closure_unittest.cc",
1118     "base64_unittest.cc",
1119     "big_endian_unittest.cc",
1120     "bind_unittest.cc",
1121     "bind_unittest.nc",
1122     "bits_unittest.cc",
1123     "build_time_unittest.cc",
1124     "callback_helpers_unittest.cc",
1125     "callback_list_unittest.cc",
1126     "callback_list_unittest.nc",
1127     "callback_unittest.cc",
1128     "callback_unittest.nc",
1129     "cancelable_callback_unittest.cc",
1130     "command_line_unittest.cc",
1131     "containers/adapters_unittest.cc",
1132     "containers/hash_tables_unittest.cc",
1133     "containers/linked_list_unittest.cc",
1134     "containers/mru_cache_unittest.cc",
1135     "containers/small_map_unittest.cc",
1136     "containers/stack_container_unittest.cc",
1137     "cpu_unittest.cc",
1138     "debug/crash_logging_unittest.cc",
1139     "debug/leak_tracker_unittest.cc",
1140     "debug/proc_maps_linux_unittest.cc",
1141     "debug/stack_trace_unittest.cc",
1142     "debug/task_annotator_unittest.cc",
1143     "debug/trace_event_argument_unittest.cc",
1144     "debug/trace_event_memory_unittest.cc",
1145     "debug/trace_event_synthetic_delay_unittest.cc",
1146     "debug/trace_event_system_stats_monitor_unittest.cc",
1147     "debug/trace_event_unittest.cc",
1148     "debug/trace_event_unittest.h",
1149     "debug/trace_event_win_unittest.cc",
1150     "deferred_sequenced_task_runner_unittest.cc",
1151     "environment_unittest.cc",
1152     "file_version_info_unittest.cc",
1153     "files/dir_reader_posix_unittest.cc",
1154     "files/file_path_unittest.cc",
1155     "files/file_proxy_unittest.cc",
1156     "files/file_unittest.cc",
1157     "files/file_util_proxy_unittest.cc",
1158     "files/file_util_unittest.cc",
1159     "files/important_file_writer_unittest.cc",
1160     "files/scoped_temp_dir_unittest.cc",
1161     "gmock_unittest.cc",
1162     "guid_unittest.cc",
1163     "hash_unittest.cc",
1164     "id_map_unittest.cc",
1165     "i18n/break_iterator_unittest.cc",
1166     "i18n/char_iterator_unittest.cc",
1167     "i18n/case_conversion_unittest.cc",
1168     "i18n/file_util_icu_unittest.cc",
1169     "i18n/icu_string_conversions_unittest.cc",
1170     "i18n/number_formatting_unittest.cc",
1171     "i18n/rtl_unittest.cc",
1172     "i18n/streaming_utf8_validator_unittest.cc",
1173     "i18n/string_search_unittest.cc",
1174     "i18n/time_formatting_unittest.cc",
1175     "i18n/timezone_unittest.cc",
1176     "ios/device_util_unittest.mm",
1177     "json/json_parser_unittest.cc",
1178     "json/json_reader_unittest.cc",
1179     "json/json_value_converter_unittest.cc",
1180     "json/json_value_serializer_unittest.cc",
1181     "json/json_writer_unittest.cc",
1182     "json/string_escape_unittest.cc",
1183     "lazy_instance_unittest.cc",
1184     "logging_unittest.cc",
1185     "mac/bind_objc_block_unittest.mm",
1186     "mac/foundation_util_unittest.mm",
1187     "mac/libdispatch_task_runner_unittest.cc",
1188     "mac/mac_util_unittest.mm",
1189     "mac/objc_property_releaser_unittest.mm",
1190     "mac/scoped_nsobject_unittest.mm",
1191     "mac/scoped_objc_class_swizzler_unittest.mm",
1192     "mac/scoped_sending_event_unittest.mm",
1193     "md5_unittest.cc",
1194     "memory/aligned_memory_unittest.cc",
1195     "memory/discardable_memory_manager_unittest.cc",
1196     "memory/discardable_memory_unittest.cc",
1197     "memory/discardable_shared_memory_unittest.cc",
1198     "memory/linked_ptr_unittest.cc",
1199     "memory/ref_counted_memory_unittest.cc",
1200     "memory/ref_counted_unittest.cc",
1201     "memory/scoped_ptr_unittest.cc",
1202     "memory/scoped_ptr_unittest.nc",
1203     "memory/scoped_vector_unittest.cc",
1204     "memory/shared_memory_unittest.cc",
1205     "memory/singleton_unittest.cc",
1206     "memory/weak_ptr_unittest.cc",
1207     "memory/weak_ptr_unittest.nc",
1208     "message_loop/message_loop_proxy_impl_unittest.cc",
1209     "message_loop/message_loop_proxy_unittest.cc",
1210     "message_loop/message_loop_unittest.cc",
1211     "message_loop/message_pump_glib_unittest.cc",
1212     "message_loop/message_pump_io_ios_unittest.cc",
1213     "metrics/sample_map_unittest.cc",
1214     "metrics/sample_vector_unittest.cc",
1215     "metrics/bucket_ranges_unittest.cc",
1216     "metrics/field_trial_unittest.cc",
1217     "metrics/histogram_base_unittest.cc",
1218     "metrics/histogram_delta_serialization_unittest.cc",
1219     "metrics/histogram_snapshot_manager_unittest.cc",
1220     "metrics/histogram_unittest.cc",
1221     "metrics/sparse_histogram_unittest.cc",
1222     "metrics/stats_table_unittest.cc",
1223     "metrics/statistics_recorder_unittest.cc",
1224     "observer_list_unittest.cc",
1225     "os_compat_android_unittest.cc",
1226     "path_service_unittest.cc",
1227     "pickle_unittest.cc",
1228     "posix/file_descriptor_shuffle_unittest.cc",
1229     "posix/unix_domain_socket_linux_unittest.cc",
1230     "power_monitor/power_monitor_unittest.cc",
1231     "prefs/default_pref_store_unittest.cc",
1232     "prefs/json_pref_store_unittest.cc",
1233     "prefs/overlay_user_pref_store_unittest.cc",
1234     "prefs/pref_change_registrar_unittest.cc",
1235     "prefs/pref_member_unittest.cc",
1236     "prefs/pref_notifier_impl_unittest.cc",
1237     "prefs/pref_service_unittest.cc",
1238     "prefs/pref_value_map_unittest.cc",
1239     "prefs/pref_value_store_unittest.cc",
1240     "prefs/scoped_user_pref_update_unittest.cc",
1241     "process/memory_unittest.cc",
1242     "process/memory_unittest_mac.h",
1243     "process/memory_unittest_mac.mm",
1244     "process/process_metrics_unittest.cc",
1245     "process/process_metrics_unittest_ios.cc",
1246     "process/process_unittest.cc",
1247     "process/process_util_unittest.cc",
1248     "process/process_util_unittest_ios.cc",
1249     "profiler/tracked_time_unittest.cc",
1250     "rand_util_unittest.cc",
1251     "numerics/safe_numerics_unittest.cc",
1252     "scoped_clear_errno_unittest.cc",
1253     "scoped_generic_unittest.cc",
1254     "scoped_native_library_unittest.cc",
1255     "security_unittest.cc",
1256     "sequence_checker_unittest.cc",
1257     "sha1_unittest.cc",
1258     "stl_util_unittest.cc",
1259     "strings/nullable_string16_unittest.cc",
1260     "strings/safe_sprintf_unittest.cc",
1261     "strings/string16_unittest.cc",
1262     "strings/stringprintf_unittest.cc",
1263     "strings/string_number_conversions_unittest.cc",
1264     "strings/string_piece_unittest.cc",
1265     "strings/string_split_unittest.cc",
1266     "strings/string_tokenizer_unittest.cc",
1267     "strings/string_util_unittest.cc",
1268     "strings/stringize_macros_unittest.cc",
1269     "strings/sys_string_conversions_mac_unittest.mm",
1270     "strings/sys_string_conversions_unittest.cc",
1271     "strings/utf_offset_string_conversions_unittest.cc",
1272     "strings/utf_string_conversions_unittest.cc",
1273     "supports_user_data_unittest.cc",
1274     "sync_socket_unittest.cc",
1275     "synchronization/cancellation_flag_unittest.cc",
1276     "synchronization/condition_variable_unittest.cc",
1277     "synchronization/lock_unittest.cc",
1278     "synchronization/waitable_event_unittest.cc",
1279     "synchronization/waitable_event_watcher_unittest.cc",
1280     "sys_info_unittest.cc",
1281     "system_monitor/system_monitor_unittest.cc",
1282     "task/cancelable_task_tracker_unittest.cc",
1283     "task_runner_util_unittest.cc",
1284     "template_util_unittest.cc",
1285     "test/expectations/expectation_unittest.cc",
1286     "test/expectations/parser_unittest.cc",
1287     "test/histogram_tester_unittest.cc",
1288     "test/test_reg_util_win_unittest.cc",
1289     "test/trace_event_analyzer_unittest.cc",
1290     "threading/non_thread_safe_unittest.cc",
1291     "threading/platform_thread_unittest.cc",
1292     "threading/sequenced_worker_pool_unittest.cc",
1293     "threading/simple_thread_unittest.cc",
1294     "threading/thread_checker_unittest.cc",
1295     "threading/thread_collision_warner_unittest.cc",
1296     "threading/thread_id_name_manager_unittest.cc",
1297     "threading/thread_local_storage_unittest.cc",
1298     "threading/thread_local_unittest.cc",
1299     "threading/thread_unittest.cc",
1300     "threading/watchdog_unittest.cc",
1301     "threading/worker_pool_posix_unittest.cc",
1302     "threading/worker_pool_unittest.cc",
1303     "time/pr_time_unittest.cc",
1304     "time/time_unittest.cc",
1305     "time/time_win_unittest.cc",
1306     "timer/hi_res_timer_manager_unittest.cc",
1307     "timer/mock_timer_unittest.cc",
1308     "timer/timer_unittest.cc",
1309     "tools_sanity_unittest.cc",
1310     "tracked_objects_unittest.cc",
1311     "tuple_unittest.cc",
1312     "values_unittest.cc",
1313     "version_unittest.cc",
1314     "vlog_unittest.cc",
1315     "win/dllmain.cc",
1316     "win/enum_variant_unittest.cc",
1317     "win/event_trace_consumer_unittest.cc",
1318     "win/event_trace_controller_unittest.cc",
1319     "win/event_trace_provider_unittest.cc",
1320     "win/i18n_unittest.cc",
1321     "win/iunknown_impl_unittest.cc",
1322     "win/message_window_unittest.cc",
1323     "win/object_watcher_unittest.cc",
1324     "win/pe_image_unittest.cc",
1325     "win/registry_unittest.cc",
1326     "win/scoped_bstr_unittest.cc",
1327     "win/scoped_comptr_unittest.cc",
1328     "win/scoped_process_information_unittest.cc",
1329     "win/scoped_variant_unittest.cc",
1330     "win/shortcut_unittest.cc",
1331     "win/startup_information_unittest.cc",
1332     "win/win_util_unittest.cc",
1333     "win/wrapped_window_proc_unittest.cc",
1334   ]
1336   deps = [
1337     ":base",
1338     ":i18n",
1339     ":message_loop_tests",
1340     ":prefs",
1341     ":prefs_test_support",
1342     "//base/allocator",
1343     "//base/test:run_all_unittests",
1344     "//base/test:test_support",
1345     "//base/third_party/dynamic_annotations",
1346     "//testing/gmock",
1347     "//testing/gtest",
1348     "//third_party/icu",
1349   ]
1351   if (is_ios) {
1352     sources -= [
1353       "metrics/stats_table_uinittest.cc",  # Requires spawning a process.
1354       "process/memory_unittest.cc",
1355       "process/memory_unittest_mac.h",
1356       "process/memory_unittest_mac.mm",
1357       "process/process_unittest.cc",
1358       "process/process_util_unittest.cc",
1359     ]
1361     # Pull in specific Mac files for iOS (which have been filtered out by file
1362     # name rules).
1363     set_sources_assignment_filter([])
1364     sources += [
1365       "mac/bind_objc_block_unittest.mm",
1366       "mac/foundation_util_unittest.mm",
1367       "mac/objc_property_releaser_unittest.mm",
1368       "mac/scoped_nsobject_unittest.mm",
1369       "sys_string_conversions_mac_unittest.mm",
1370     ]
1371     set_sources_assignment_filter(sources_assignment_filter)
1373     # TODO(GYP): dep on copy_test_data_ios action.
1374   }
1376   if (is_linux) {
1377     sources -= [ "file_version_info_unittest.cc" ]
1378     sources += [ "nix/xdg_util_unittest.cc" ]
1379     defines = [ "USE_SYMBOLIZE" ]
1380     configs += [ "//build/config/linux:glib" ]
1381   }
1383   if (!is_linux || use_ozone) {
1384     sources -= [ "message_loop/message_pump_glib_unittest.cc" ]
1385   }
1387   if (is_posix || is_ios) {
1388     sources += [ "message_loop/message_pump_libevent_unittest.cc" ]
1389     deps += [ "//third_party/libevent" ]
1390   }
1392   if (is_android) {
1393     deps += [
1394       "//testing/android:native_test_native_code",
1395     ]
1396     set_sources_assignment_filter([])
1397     sources += [ "debug/proc_maps_linux_unittest.cc" ]
1398     set_sources_assignment_filter(sources_assignment_filter)
1399   }
1402 if (is_android) {
1403   # GYP: //base.gyp:base_jni_headers
1404   generate_jni("base_jni_headers") {
1405     sources = [
1406       "android/java/src/org/chromium/base/ApplicationStatus.java",
1407       "android/java/src/org/chromium/base/BuildInfo.java",
1408       "android/java/src/org/chromium/base/CommandLine.java",
1409       "android/java/src/org/chromium/base/ContentUriUtils.java",
1410       "android/java/src/org/chromium/base/CpuFeatures.java",
1411       "android/java/src/org/chromium/base/EventLog.java",
1412       "android/java/src/org/chromium/base/FieldTrialList.java",
1413       "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java",
1414       "android/java/src/org/chromium/base/JNIUtils.java",
1415       "android/java/src/org/chromium/base/library_loader/LibraryLoader.java",
1416       "android/java/src/org/chromium/base/LocaleUtils.java",
1417       "android/java/src/org/chromium/base/MemoryPressureListener.java",
1418       "android/java/src/org/chromium/base/JavaHandlerThread.java",
1419       "android/java/src/org/chromium/base/PathService.java",
1420       "android/java/src/org/chromium/base/PathUtils.java",
1421       "android/java/src/org/chromium/base/PowerMonitor.java",
1422       "android/java/src/org/chromium/base/SystemMessageHandler.java",
1423       "android/java/src/org/chromium/base/SysUtils.java",
1424       "android/java/src/org/chromium/base/ThreadUtils.java",
1425       "android/java/src/org/chromium/base/TraceEvent.java",
1426     ]
1427     jni_package = "base"
1428   }
1430   # GYP: //base.gyp:base_java
1431   android_library("base_java") {
1432     srcjar_deps = [
1433       ":base_android_java_enums_srcjar",
1434       ":base_native_libraries_gen",
1435     ]
1437     deps = [
1438       "//third_party/jsr-305:jsr_305_javalib"
1439     ]
1441     DEPRECATED_java_in_dir = "android/java/src"
1443     # A new version of NativeLibraries.java (with the actual correct values)
1444     # will be created when creating an apk.
1445     jar_excluded_patterns = [
1446       "*/NativeLibraries.class",
1447       "*/NativeLibraries##*.class",
1448     ]
1449   }
1451   # GYP: //base.gyp:base_javatests
1452   android_library("base_javatests") {
1453     deps = [
1454       ":base_java",
1455       ":base_java_test_support",
1456     ]
1457     DEPRECATED_java_in_dir = "android/javatests/src"
1458   }
1460   # GYP: //base.gyp:base_java_test_support
1461   android_library("base_java_test_support") {
1462     deps = [
1463       ":base_java",
1464     ]
1465     DEPRECATED_java_in_dir = "test/android/javatests/src"
1466   }
1468   # GYP: //base.gyp:base_java_application_state
1469   # GYP: //base.gyp:base_java_library_load_from_apk_status_codes
1470   # GYP: //base.gyp:base_java_memory_pressure_level
1471   java_cpp_enum("base_android_java_enums_srcjar") {
1472     sources = [
1473       "android/application_status_listener.h",
1474       "android/library_loader/library_load_from_apk_status_codes.h",
1475       "memory/memory_pressure_listener.h",
1476     ]
1477     outputs = [
1478       "org/chromium/base/ApplicationState.java",
1479       "org/chromium/base/library_loader/LibraryLoadFromApkStatusCodes.java",
1480       "org/chromium/base/MemoryPressureLevel.java",
1481     ]
1482   }
1484   # GYP: //base/base.gyp:base_native_libraries_gen
1485   java_cpp_template("base_native_libraries_gen") {
1486     sources = [
1487       "android/java/templates/NativeLibraries.template",
1488     ]
1489     package_name = "org/chromium/base/library_loader"
1490   }
1492   # GYP: //base.gyp:base_java_unittest_support
1493   android_library("base_java_unittest_support") {
1494     deps = [":base_java"]
1495     java_files = [
1496       "test/android/java/src/org/chromium/base/ContentUriTestUtils.java"
1497     ]
1498   }
1500   # GYP: //base.gyp:base_unittests_apk
1501   unittest_apk("base_unittests_apk") {
1502     deps = [
1503       ":base_java",
1504       ":base_java_unittest_support",
1505       ":base_unittests",
1506     ]
1507     unittests_dep = ":base_unittests"
1508   }