Revert of non-new-profile-management creates a "no-op" style account_reconcilor,...
[chromium-blink-merge.git] / base / BUILD.gn
blobb4faecf84d4330f3cc3d62b686a375e61a850827
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/android/rules.gni")
6 import("//build/config/ui.gni")
8 component("base") {
9   sources = [
10     "third_party/dmg_fp/dmg_fp.h",
11     "third_party/dmg_fp/g_fmt.cc",
12     "third_party/dmg_fp/dtoa_wrapper.cc",
13     "third_party/icu/icu_utf.cc",
14     "third_party/icu/icu_utf.h",
15     "third_party/superfasthash/superfasthash.c",
16     "allocator/allocator_extension.cc",
17     "allocator/allocator_extension.h",
18     "allocator/type_profiler_control.cc",
19     "allocator/type_profiler_control.h",
20     "android/application_status_listener.cc",
21     "android/application_status_listener.h",
22     "android/base_jni_registrar.cc",
23     "android/base_jni_registrar.h",
24     "android/build_info.cc",
25     "android/build_info.h",
26     "android/command_line_android.cc",
27     "android/command_line_android.h",
28     "android/content_uri_utils.cc",
29     "android/content_uri_utils.h",
30     "android/cpu_features.cc",
31     "android/fifo_utils.cc",
32     "android/fifo_utils.h",
33     "android/important_file_writer_android.cc",
34     "android/important_file_writer_android.h",
35     "android/scoped_java_ref.cc",
36     "android/scoped_java_ref.h",
37     "android/jni_android.cc",
38     "android/jni_android.h",
39     "android/jni_array.cc",
40     "android/jni_array.h",
41     "android/jni_registrar.cc",
42     "android/jni_registrar.h",
43     "android/jni_string.cc",
44     "android/jni_string.h",
45     "android/jni_weak_ref.cc",
46     "android/jni_weak_ref.h",
47     "android/library_loader/library_loader_hooks.cc",
48     "android/library_loader/library_loader_hooks.h",
49     "android/memory_pressure_listener_android.cc",
50     "android/memory_pressure_listener_android.h",
51     "android/java_handler_thread.cc",
52     "android/java_handler_thread.h",
53     "android/path_service_android.cc",
54     "android/path_service_android.h",
55     "android/path_utils.cc",
56     "android/path_utils.h",
57     "android/sys_utils.cc",
58     "android/sys_utils.h",
59     "android/thread_utils.h",
60     "android/trace_event_binding.cc",
61     "android/trace_event_binding.h",
62     "async_socket_io_handler.h",
63     "async_socket_io_handler_posix.cc",
64     "async_socket_io_handler_win.cc",
65     "at_exit.cc",
66     "at_exit.h",
67     "atomic_ref_count.h",
68     "atomic_sequence_num.h",
69     "atomicops.h",
70     "atomicops_internals_gcc.h",
71     "atomicops_internals_mac.h",
72     "atomicops_internals_tsan.h",
73     "atomicops_internals_x86_gcc.cc",
74     "atomicops_internals_x86_gcc.h",
75     "atomicops_internals_x86_msvc.h",
76     "barrier_closure.cc",
77     "barrier_closure.h",
78     "base_export.h",
79     "base_paths.cc",
80     "base_paths.h",
81     "base_paths_android.cc",
82     "base_paths_android.h",
83     "base_paths_mac.h",
84     "base_paths_mac.mm",
85     "base_paths_posix.cc",
86     "base_paths_posix.h",
87     "base_paths_win.cc",
88     "base_paths_win.h",
89     "base_switches.h",
90     "base64.cc",
91     "base64.h",
92     "basictypes.h",
93     "big_endian.cc",
94     "big_endian.h",
95     "bind.h",
96     "bind_helpers.cc",
97     "bind_helpers.h",
98     "bind_internal.h",
99     "bind_internal_win.h",
100     "bits.h",
101     "build_time.cc",
102     "build_time.h",
103     "callback.h",
104     "callback_helpers.cc",
105     "callback_helpers.h",
106     "callback_internal.cc",
107     "callback_internal.h",
108     "cancelable_callback.h",
109     "command_line.cc",
110     "command_line.h",
111     "compiler_specific.h",
112     "containers/hash_tables.h",
113     "containers/linked_list.h",
114     "containers/mru_cache.h",
115     "containers/small_map.h",
116     "containers/stack_container.h",
117     "cpu.cc",
118     "cpu.h",
119     "critical_closure.h",
120     "critical_closure_internal_ios.mm",
121     "debug/alias.cc",
122     "debug/alias.h",
123     "debug/crash_logging.cc",
124     "debug/crash_logging.h",
125     "debug/debugger.cc",
126     "debug/debugger.h",
127     "debug/debugger_posix.cc",
128     "debug/debugger_win.cc",
129     # This file depends on files from the "allocator" target,
130     # but this target does not depend on "allocator" (see
131     # allocator.gyp for details).
132     "debug/leak_annotations.h",
133     "debug/leak_tracker.h",
134     "debug/proc_maps_linux.cc",
135     "debug/proc_maps_linux.h",
136     "debug/profiler.cc",
137     "debug/profiler.h",
138     "debug/stack_trace.cc",
139     "debug/stack_trace.h",
140     "debug/stack_trace_android.cc",
141     "debug/stack_trace_posix.cc",
142     "debug/stack_trace_win.cc",
143     "debug/trace_event.h",
144     "debug/trace_event_android.cc",
145     "debug/trace_event_impl.cc",
146     "debug/trace_event_impl.h",
147     "debug/trace_event_impl_constants.cc",
148     "debug/trace_event_memory.cc",
149     "debug/trace_event_memory.h",
150     "debug/trace_event_synthetic_delay.cc",
151     "debug/trace_event_synthetic_delay.h",
152     "debug/trace_event_system_stats_monitor.cc",
153     "debug/trace_event_system_stats_monitor.h",
154     "debug/trace_event_win.cc",
155     "deferred_sequenced_task_runner.cc",
156     "deferred_sequenced_task_runner.h",
157     "environment.cc",
158     "environment.h",
159     "file_descriptor_posix.h",
160     "file_util.cc",
161     "file_util.h",
162     "file_util_android.cc",
163     "file_util_linux.cc",
164     "file_util_mac.mm",
165     "file_util_posix.cc",
166     "file_util_win.cc",
167     "file_version_info.h",
168     "file_version_info_mac.h",
169     "file_version_info_mac.mm",
170     "file_version_info_win.cc",
171     "file_version_info_win.h",
172     "files/dir_reader_fallback.h",
173     "files/dir_reader_linux.h",
174     "files/dir_reader_posix.h",
175     "files/file.cc",
176     "files/file_posix.cc",
177     "files/file_win.cc",
178     "files/file_enumerator.cc",
179     "files/file_enumerator.h",
180     "files/file_enumerator_posix.cc",
181     "files/file_enumerator_win.cc",
182     "files/file_path.cc",
183     "files/file_path.h",
184     "files/file_path_constants.cc",
185     "files/file_path_watcher.cc",
186     "files/file_path_watcher.h",
187     "files/file_path_watcher_kqueue.cc",
188     "files/file_path_watcher_linux.cc",
189     "files/file_path_watcher_win.cc",
190     "files/file_proxy.cc",
191     "files/file_proxy.h",
192     "files/file_util_proxy.cc",
193     "files/file_util_proxy.h",
194     "files/important_file_writer.cc",
195     "files/important_file_writer.h",
196     "files/memory_mapped_file.cc",
197     "files/memory_mapped_file.h",
198     "files/memory_mapped_file_posix.cc",
199     "files/memory_mapped_file_win.cc",
200     "files/scoped_file.cc",
201     "files/scoped_file.h",
202     "files/scoped_temp_dir.cc",
203     "files/scoped_temp_dir.h",
204     "float_util.h",
205     "format_macros.h",
206     "gtest_prod_util.h",
207     "guid.cc",
208     "guid.h",
209     "guid_posix.cc",
210     "guid_win.cc",
211     "hash.cc",
212     "hash.h",
213     "id_map.h",
214     "ini_parser.cc",
215     "ini_parser.h",
216     "ios/device_util.h",
217     "ios/device_util.mm",
218     "ios/ios_util.h",
219     "ios/ios_util.mm",
220     "ios/scoped_critical_action.h",
221     "ios/scoped_critical_action.mm",
222     "json/json_file_value_serializer.cc",
223     "json/json_file_value_serializer.h",
224     "json/json_parser.cc",
225     "json/json_parser.h",
226     "json/json_reader.cc",
227     "json/json_reader.h",
228     "json/json_string_value_serializer.cc",
229     "json/json_string_value_serializer.h",
230     "json/json_value_converter.h",
231     "json/json_writer.cc",
232     "json/json_writer.h",
233     "json/string_escape.cc",
234     "json/string_escape.h",
235     "lazy_instance.cc",
236     "lazy_instance.h",
237     "location.cc",
238     "location.h",
239     "logging.cc",
240     "logging.h",
241     "logging_win.cc",
242     "logging_win.h",
243     "mac/authorization_util.h",
244     "mac/authorization_util.mm",
245     "mac/bind_objc_block.h",
246     "mac/bundle_locations.h",
247     "mac/bundle_locations.mm",
248     "mac/cocoa_protocols.h",
249     "mac/foundation_util.h",
250     "mac/foundation_util.mm",
251     "mac/launch_services_util.cc",
252     "mac/launch_services_util.h",
253     "mac/launchd.cc",
254     "mac/launchd.h",
255     "mac/libdispatch_task_runner.cc",
256     "mac/libdispatch_task_runner.h",
257     "mac/mac_logging.h",
258     "mac/mac_logging.cc",
259     "mac/mac_util.h",
260     "mac/mac_util.mm",
261     "mac/mach_logging.cc",
262     "mac/mach_logging.h",
263     "mac/objc_property_releaser.h",
264     "mac/objc_property_releaser.mm",
265     "mac/os_crash_dumps.cc",
266     "mac/os_crash_dumps.h",
267     "mac/scoped_aedesc.h",
268     "mac/scoped_authorizationref.h",
269     "mac/scoped_block.h",
270     "mac/scoped_cftyperef.h",
271     "mac/scoped_ioobject.h",
272     "mac/scoped_ioplugininterface.h",
273     "mac/scoped_launch_data.h",
274     "mac/scoped_mach_port.cc",
275     "mac/scoped_mach_port.h",
276     "mac/scoped_nsautorelease_pool.h",
277     "mac/scoped_nsautorelease_pool.mm",
278     "mac/scoped_nsexception_enabler.h",
279     "mac/scoped_nsexception_enabler.mm",
280     "mac/scoped_nsobject.h",
281     "mac/scoped_sending_event.h",
282     "mac/scoped_sending_event.mm",
283     "mac/sdk_forward_declarations.h",
284     "macros.h",
285     "md5.cc",
286     "md5.h",
287     "memory/aligned_memory.cc",
288     "memory/aligned_memory.h",
289     "memory/discardable_memory.cc",
290     "memory/discardable_memory.h",
291     "memory/discardable_memory_android.cc",
292     "memory/discardable_memory_emulated.cc",
293     "memory/discardable_memory_emulated.h",
294     "memory/discardable_memory_linux.cc",
295     "memory/discardable_memory_mac.cc",
296     "memory/discardable_memory_malloc.cc",
297     "memory/discardable_memory_malloc.h",
298     "memory/discardable_memory_manager.cc",
299     "memory/discardable_memory_manager.h",
300     "memory/discardable_memory_win.cc",
301     "memory/linked_ptr.h",
302     "memory/manual_constructor.h",
303     "memory/memory_pressure_listener.cc",
304     "memory/memory_pressure_listener.h",
305     "memory/raw_scoped_refptr_mismatch_checker.h",
306     "memory/ref_counted.cc",
307     "memory/ref_counted.h",
308     "memory/ref_counted_delete_on_message_loop.h",
309     "memory/ref_counted_memory.cc",
310     "memory/ref_counted_memory.h",
311     "memory/scoped_handle.h",
312     "memory/scoped_open_process.h",
313     "memory/scoped_policy.h",
314     "memory/scoped_ptr.h",
315     "memory/scoped_vector.h",
316     "memory/shared_memory.h",
317     "memory/shared_memory_android.cc",
318     "memory/shared_memory_nacl.cc",
319     "memory/shared_memory_posix.cc",
320     "memory/shared_memory_win.cc",
321     "memory/singleton.cc",
322     "memory/singleton.h",
323     "memory/weak_ptr.cc",
324     "memory/weak_ptr.h",
325     "message_loop/incoming_task_queue.cc",
326     "message_loop/incoming_task_queue.h",
327     "message_loop/message_loop.cc",
328     "message_loop/message_loop.h",
329     "message_loop/message_loop_proxy.cc",
330     "message_loop/message_loop_proxy.h",
331     "message_loop/message_loop_proxy_impl.cc",
332     "message_loop/message_loop_proxy_impl.h",
333     "message_loop/message_pump.cc",
334     "message_loop/message_pump.h",
335     "message_loop/message_pump_android.cc",
336     "message_loop/message_pump_android.h",
337     "message_loop/message_pump_default.cc",
338     "message_loop/message_pump_default.h",
339     "message_loop/message_pump_glib.cc",
340     "message_loop/message_pump_glib.h",
341     "message_loop/message_pump_io_ios.cc",
342     "message_loop/message_pump_io_ios.h",
343     "message_loop/message_pump_libevent.cc",
344     "message_loop/message_pump_libevent.h",
345     "message_loop/message_pump_mac.h",
346     "message_loop/message_pump_mac.mm",
347     "message_loop/message_pump_observer.h",
348     "message_loop/message_pump_win.cc",
349     "message_loop/message_pump_win.h",
350     "metrics/field_trial.cc",
351     "metrics/field_trial.h",
352     "metrics/sample_map.cc",
353     "metrics/sample_map.h",
354     "metrics/sample_vector.cc",
355     "metrics/sample_vector.h",
356     "metrics/bucket_ranges.cc",
357     "metrics/bucket_ranges.h",
358     "metrics/histogram.cc",
359     "metrics/histogram.h",
360     "metrics/histogram_base.cc",
361     "metrics/histogram_base.h",
362     "metrics/histogram_delta_serialization.cc",
363     "metrics/histogram_delta_serialization.",
364     "metrics/histogram_flattener.h",
365     "metrics/histogram_samples.cc",
366     "metrics/histogram_samples.h",
367     "metrics/histogram_snapshot_manager.cc",
368     "metrics/histogram_snapshot_manager.h",
369     "metrics/sparse_histogram.cc",
370     "metrics/sparse_histogram.h",
371     "metrics/statistics_recorder.cc",
372     "metrics/statistics_recorder.h",
373     "metrics/stats_counters.cc",
374     "metrics/stats_counters.h",
375     "metrics/stats_table.cc",
376     "metrics/stats_table.h",
377     "metrics/user_metrics.cc",
378     "metrics/user_metrics.h",
379     "metrics/user_metrics_action.h",
380     "move.h",
381     "native_library.h",
382     "native_library_mac.mm",
383     "native_library_posix.cc",
384     "native_library_win.cc",
385     "numerics/safe_conversions.h",
386     "numerics/safe_conversions_impl.h",
387     "numerics/safe_math.h",
388     "numerics/safe_math_impl.h",
389     "nix/mime_util_xdg.cc",
390     "nix/mime_util_xdg.h",
391     "nix/xdg_util.cc",
392     "nix/xdg_util.h",
393     "observer_list.h",
394     "observer_list_threadsafe.h",
395     "os_compat_android.cc",
396     "os_compat_android.h",
397     "os_compat_nacl.cc",
398     "os_compat_nacl.h",
399     "path_service.cc",
400     "path_service.h",
401     "pending_task.cc",
402     "pending_task.h",
403     "pickle.cc",
404     "pickle.h",
405     "platform_file.cc",
406     "platform_file.h",
407     "platform_file_posix.cc",
408     "platform_file_win.cc",
409     "port.h",
410     "posix/eintr_wrapper.h",
411     "posix/file_descriptor_shuffle.cc",
412     "posix/global_descriptors.cc",
413     "posix/global_descriptors.h",
414     "posix/unix_domain_socket_linux.cc",
415     "posix/unix_domain_socket_linux.h",
416     "power_monitor/power_monitor.cc",
417     "power_monitor/power_monitor.h",
418     "power_monitor/power_monitor_device_source.cc",
419     "power_monitor/power_monitor_device_source.h",
420     "power_monitor/power_monitor_device_source_android.cc",
421     "power_monitor/power_monitor_device_source_android.h",
422     "power_monitor/power_monitor_device_source_ios.mm",
423     "power_monitor/power_monitor_device_source_mac.mm",
424     "power_monitor/power_monitor_device_source_posix.cc",
425     "power_monitor/power_monitor_device_source_win.cc",
426     "power_monitor/power_monitor_source.cc",
427     "power_monitor/power_monitor_source.h",
428     "power_monitor/power_observer.h",
429     "process/internal_linux.cc",
430     "process/internal_linux.h",
431     "process/kill.cc",
432     "process/kill.h",
433     "process/kill_mac.cc",
434     "process/kill_posix.cc",
435     "process/kill_win.cc",
436     "process/launch.cc",
437     "process/launch.h",
438     "process/launch_ios.cc",
439     "process/launch_mac.cc",
440     "process/launch_posix.cc",
441     "process/launch_win.cc",
442     "process/memory.cc",
443     "process/memory.h",
444     "process/memory_linux.cc",
445     "process/memory_mac.mm",
446     "process/memory_win.cc",
447     "process/process.h",
448     "process/process_handle_freebsd.cc",
449     "process/process_handle_linux.cc",
450     "process/process_handle_mac.cc",
451     "process/process_handle_openbsd.cc",
452     "process/process_handle_posix.cc",
453     "process/process_handle_win.cc",
454     "process/process_info.h",
455     "process/process_info_mac.cc",
456     "process/process_info_win.cc",
457     "process/process_iterator.cc",
458     "process/process_iterator.h",
459     "process/process_iterator_freebsd.cc",
460     "process/process_iterator_linux.cc",
461     "process/process_iterator_mac.cc",
462     "process/process_iterator_openbsd.cc",
463     "process/process_iterator_win.cc",
464     "process/process_linux.cc",
465     "process/process_metrics.cc",
466     "process/process_metrics.h",
467     "process/process_metrics_freebsd.cc",
468     "process/process_metrics_ios.cc",
469     "process/process_metrics_linux.cc",
470     "process/process_metrics_mac.cc",
471     "process/process_metrics_openbsd.cc",
472     "process/process_metrics_posix.cc",
473     "process/process_metrics_win.cc",
474     "process/process_posix.cc",
475     "process/process_win.cc",
476     "profiler/scoped_profile.cc",
477     "profiler/scoped_profile.h",
478     "profiler/alternate_timer.cc",
479     "profiler/alternate_timer.h",
480     "profiler/tracked_time.cc",
481     "profiler/tracked_time.h",
482     "rand_util.cc",
483     "rand_util.h",
484     "rand_util_nacl.cc",
485     "rand_util_posix.cc",
486     "rand_util_win.cc",
487     "run_loop.cc",
488     "run_loop.h",
489     "safe_strerror_posix.cc",
490     "safe_strerror_posix.h",
491     "scoped_generic.h",
492     "scoped_native_library.cc",
493     "scoped_native_library.h",
494     "sequence_checker.h",
495     "sequence_checker_impl.cc",
496     "sequence_checker_impl.h",
497     "sequenced_task_runner.cc",
498     "sequenced_task_runner.h",
499     "sequenced_task_runner_helpers.h",
500     "sha1.h",
501     "sha1_portable.cc",
502     "sha1_win.cc",
503     "single_thread_task_runner.h",
504     "stl_util.h",
505     "strings/latin1_string_conversions.cc",
506     "strings/latin1_string_conversions.h",
507     "strings/nullable_string16.cc",
508     "strings/nullable_string16.h",
509     "strings/safe_sprintf.cc",
510     "strings/safe_sprintf.h",
511     "strings/string16.cc",
512     "strings/string16.h",
513     "strings/string_number_conversions.cc",
514     "strings/string_split.cc",
515     "strings/string_split.h",
516     "strings/string_number_conversions.h",
517     "strings/string_piece.cc",
518     "strings/string_piece.h",
519     "strings/string_tokenizer.h",
520     "strings/string_util.cc",
521     "strings/string_util.h",
522     "strings/string_util_constants.cc",
523     "strings/string_util_posix.h",
524     "strings/string_util_win.h",
525     "strings/stringize_macros.h",
526     "strings/stringprintf.cc",
527     "strings/stringprintf.h",
528     "strings/sys_string_conversions.h",
529     "strings/sys_string_conversions_mac.mm",
530     "strings/sys_string_conversions_posix.cc",
531     "strings/sys_string_conversions_win.cc",
532     "strings/utf_offset_string_conversions.cc",
533     "strings/utf_offset_string_conversions.h",
534     "strings/utf_string_conversion_utils.cc",
535     "strings/utf_string_conversion_utils.h",
536     "strings/utf_string_conversions.cc",
537     "strings/utf_string_conversions.h",
538     "supports_user_data.cc",
539     "supports_user_data.h",
540     "sync_socket.h",
541     "sync_socket_posix.cc",
542     "sync_socket_win.cc",
543     "synchronization/cancellation_flag.cc",
544     "synchronization/cancellation_flag.h",
545     "synchronization/condition_variable.h",
546     "synchronization/condition_variable_posix.cc",
547     "synchronization/condition_variable_win.cc",
548     "synchronization/lock.cc",
549     "synchronization/lock.h",
550     "synchronization/lock_impl.h",
551     "synchronization/lock_impl_posix.cc",
552     "synchronization/lock_impl_win.cc",
553     "synchronization/spin_wait.h",
554     "synchronization/waitable_event.h",
555     "synchronization/waitable_event_posix.cc",
556     "synchronization/waitable_event_watcher.h",
557     "synchronization/waitable_event_watcher_posix.cc",
558     "synchronization/waitable_event_watcher_win.cc",
559     "synchronization/waitable_event_win.cc",
560     "system_monitor/system_monitor.cc",
561     "system_monitor/system_monitor.h",
562     "sys_byteorder.h",
563     "sys_info.cc",
564     "sys_info.h",
565     "sys_info_android.cc",
566     "sys_info_chromeos.cc",
567     "sys_info_freebsd.cc",
568     "sys_info_ios.mm",
569     "sys_info_linux.cc",
570     "sys_info_mac.cc",
571     "sys_info_openbsd.cc",
572     "sys_info_posix.cc",
573     "sys_info_win.cc",
574     "task/cancelable_task_tracker.cc",
575     "task/cancelable_task_tracker.h",
576     "task_runner.cc",
577     "task_runner.h",
578     "task_runner_util.h",
579     "template_util.h",
580     "thread_task_runner_handle.cc",
581     "thread_task_runner_handle.h",
582     "threading/non_thread_safe.h",
583     "threading/non_thread_safe_impl.cc",
584     "threading/non_thread_safe_impl.h",
585     "threading/platform_thread.h",
586     "threading/platform_thread_android.cc",
587     "threading/platform_thread_linux.cc",
588     "threading/platform_thread_mac.mm",
589     "threading/platform_thread_posix.cc",
590     "threading/platform_thread_win.cc",
591     "threading/post_task_and_reply_impl.cc",
592     "threading/post_task_and_reply_impl.h",
593     "threading/sequenced_worker_pool.cc",
594     "threading/sequenced_worker_pool.h",
595     "threading/simple_thread.cc",
596     "threading/simple_thread.h",
597     "threading/thread.cc",
598     "threading/thread.h",
599     "threading/thread_checker.h",
600     "threading/thread_checker_impl.cc",
601     "threading/thread_checker_impl.h",
602     "threading/thread_collision_warner.cc",
603     "threading/thread_collision_warner.h",
604     "threading/thread_id_name_manager.cc",
605     "threading/thread_id_name_manager.h",
606     "threading/thread_local.h",
607     "threading/thread_local_android.cc",
608     "threading/thread_local_posix.cc",
609     "threading/thread_local_storage.cc",
610     "threading/thread_local_storage.h",
611     "threading/thread_local_storage_posix.cc",
612     "threading/thread_local_storage_win.cc",
613     "threading/thread_local_win.cc",
614     "threading/thread_restrictions.h",
615     "threading/thread_restrictions.cc",
616     "threading/watchdog.cc",
617     "threading/watchdog.h",
618     "threading/worker_pool.h",
619     "threading/worker_pool.cc",
620     "threading/worker_pool_posix.cc",
621     "threading/worker_pool_posix.h",
622     "threading/worker_pool_win.cc",
623     "time/clock.cc",
624     "time/clock.h",
625     "time/default_clock.cc",
626     "time/default_clock.h",
627     "time/default_tick_clock.cc",
628     "time/default_tick_clock.h",
629     "time/tick_clock.cc",
630     "time/tick_clock.h",
631     "time/time.cc",
632     "time/time.h",
633     "time/time_mac.cc",
634     "time/time_posix.cc",
635     "time/time_win.cc",
636     "timer/elapsed_timer.cc",
637     "timer/elapsed_timer.h",
638     "timer/hi_res_timer_manager.h",
639     "timer/hi_res_timer_manager_posix.cc",
640     "timer/hi_res_timer_manager_win.cc",
641     "timer/mock_timer.cc",
642     "timer/mock_timer.h",
643     "timer/timer.cc",
644     "timer/timer.h",
645     "tracked_objects.cc",
646     "tracked_objects.h",
647     "tracking_info.cc",
648     "tracking_info.h",
649     "tuple.h",
650     "values.cc",
651     "values.h",
652     "value_conversions.cc",
653     "value_conversions.h",
654     "version.cc",
655     "version.h",
656     "vlog.cc",
657     "vlog.h",
658     "win/enum_variant.cc",
659     "win/enum_variant.h",
660     "win/event_trace_consumer.h",
661     "win/event_trace_controller.cc",
662     "win/event_trace_controller.h",
663     "win/event_trace_provider.cc",
664     "win/event_trace_provider.h",
665     "win/i18n.cc",
666     "win/i18n.h",
667     "win/iat_patch_function.cc",
668     "win/iat_patch_function.h",
669     "win/iunknown_impl.cc",
670     "win/iunknown_impl.h",
671     "win/message_window.cc",
672     "win/message_window.h",
673     "win/metro.cc",
674     "win/metro.h",
675     "win/object_watcher.cc",
676     "win/object_watcher.h",
677     "win/registry.cc",
678     "win/registry.h",
679     "win/resource_util.cc",
680     "win/resource_util.h",
681     "win/scoped_bstr.cc",
682     "win/scoped_bstr.h",
683     "win/scoped_co_mem.h",
684     "win/scoped_com_initializer.h",
685     "win/scoped_comptr.h",
686     "win/scoped_gdi_object.h",
687     "win/scoped_handle.cc",
688     "win/scoped_handle.h",
689     "win/scoped_hdc.h",
690     "win/scoped_hglobal.h",
691     "win/scoped_process_information.cc",
692     "win/scoped_process_information.h",
693     "win/scoped_propvariant.h",
694     "win/scoped_select_object.h",
695     "win/scoped_variant.cc",
696     "win/scoped_variant.h",
697     "win/shortcut.cc",
698     "win/shortcut.h",
699     "win/startup_information.cc",
700     "win/startup_information.h",
701     "win/win_util.cc",
702     "win/win_util.h",
703     "win/windows_version.cc",
704     "win/windows_version.h",
705     "win/wrapped_window_proc.cc",
706     "win/wrapped_window_proc.h",
707   ]
709   if (is_nacl) {
710     sources += [ "files/file_path_watcher_stub.cc" ]
711   }
713   sources -= [
714     "process/process_handle_freebsd.cc",
715     "process/process_handle_openbsd.cc",
716     "process/process_iterator_freebsd.cc",
717     "process/process_iterator_openbsd.cc",
718     "process/process_metrics_freebsd.cc",
719     "process/process_metrics_openbsd.cc",
720     "sys_info_freebsd.cc",
721     "sys_info_openbsd.cc",
722   ]
724   defines = [
725     "BASE_IMPLEMENTATION",
726   ]
728   deps = [
729     ":base_static",
730     "//base/allocator:allocator_extension_thunks",
731     "//base/third_party/dynamic_annotations",
732     "//base/third_party/nspr",
733     "//third_party/modp_b64",
734   ]
736   if (is_android) {
737     sources += [
738        "memory/discardable_memory_ashmem_allocator.cc",
739        "memory/discardable_memory_ashmem_allocator.h",
740        "memory/discardable_memory_ashmem.cc",
741        "memory/discardable_memory_ashmem.h",
742     ]
743     sources -= [
744       "base_paths_posix.cc",
745       "power_monitor/power_monitor_device_source_posix.cc",
746     ]
748     # Android uses some Linux sources, put those back.
749     set_sources_assignment_filter([])
750     sources += [
751       "debug/proc_maps_linux.cc",
752       "files/file_path_watcher_linux.cc",
753       "process/memory_linux.cc",
754       "process/internal_linux.cc",
755       "process/process_handle_linux.cc",
756       "process/process_iterator_linux.cc",
757       "process/process_metrics_linux.cc",
758       "posix/unix_domain_socket_linux.cc",
759       "sys_info_linux.cc",
760     ]
761     set_sources_assignment_filter(sources_assignment_filter)
763     deps += [
764       ":base_jni_headers",
765       "//third_party/ashmem",
766       "//third_party/android_tools:cpu_features"
767     ]
769     # logging.cc uses the Android logging library.
770     libs = [ "log" ]
772     sources -= [
773       "debug/stack_trace_posix.cc",
774     ]
775   }
777   if (is_nacl) {
778     # These things would otherwise be built on a Posix build but aren't
779     # supported on NaCl.
780     sources -= [
781       "debug/stack_trace_posix.cc",
782       "files/file_enumerator_posix.cc",
783       "file_util_posix.cc",
784       "message_loop/message_pump_libevent.cc",
785       "process/kill_posix.cc",
786       "process/launch_posix.cc",
787       "process/process_metrics_posix.cc",
788       "process/process_posix.cc",
789       "metrics/field_trial.cc",
790       "native_library_posix.cc",
791       "memory/shared_memory_posix.cc",
792       "sync_socket_posix.cc",
793       "sys_info_posix.cc",
794     ]
795   } else {
796     # Remove nacl stuff.
797     sources -= [
798       "os_compat_nacl.cc",
799       "os_compat_nacl.h",
800       "rand_util_nacl.cc",
801       "memory/shared_memory_nacl.cc",
802     ]
803   }
805   # Windows.
806   if (is_win) {
807     sources -= [
808       "message_loop/message_pump_libevent.cc",
809       "strings/string16.cc",
810       # Not using sha1_win.cc because it may have caused a
811       # regression to page cycler moz.
812       "sha1_win.cc",
813     ]
815     libs = [
816       "netapi32.lib",
817       "powrprof.lib",
818     ]
819     ldflags = [
820       "/DELAYLOAD:powrprof.dll",
821     ]
822   } else if (!is_nacl) {
823     # Non-Windows.
824     deps += [ "//third_party/libevent" ]
825   }
827   # Mac.
828   if (is_mac) {
829     sources -= [
830       "base_paths_posix.cc",
831       "native_library_posix.cc",
832       "strings/sys_string_conversions_posix.cc",
833     ]
834     deps += [ "//third_party/mach_override" ]
835   } else {
836     # Non-Mac.
837     sources -= [ "files/file_path_watcher_kqueue.cc" ]
838   }
840   # Linux.
841   if (is_linux) {
842     # TODO(brettw) this will need to be parameterized at some point.
843     linux_configs = [
844       "//build/config/linux:glib",
845     ]
847     configs += linux_configs
848     all_dependent_configs = linux_configs
850     # These dependencies are not required on Android, and in the case
851     # of xdg_mime must be excluded due to licensing restrictions.
852     deps += [
853       "//base/third_party/symbolize",
854       "//base/third_party/xdg_mime",
855       "//base/third_party/xdg_user_dirs",
856     ]
857   } else {
858     # Non-Linux.
859     sources -= [
860       "nix/mime_util_xdg.cc",
861       "nix/mime_util_xdg.h",
862       "nix/xdg_util.cc",
863       "nix/xdg_util.h",
864     ]
865   }
867   if (!use_glib) {
868     sources -= [
869       "message_loop/message_pump_glib.cc",
870       "message_loop/message_pump_glib.h",
871     ]
872   }
875 # This is the subset of files from base that should not be used with a dynamic
876 # library. Note that this library cannot depend on base because base depends on
877 # base_static.
878 source_set("base_static") {
879   sources = [
880     "base_switches.cc",
881     "base_switches.h",
882     "win/pe_image.cc",
883     "win/pe_image.h",
884   ]
887 component("i18n") {
888   output_name = "base_i18n"
889   sources = [
890     "i18n/base_i18n_export.h",
891     "i18n/bidi_line_iterator.cc",
892     "i18n/bidi_line_iterator.h",
893     "i18n/break_iterator.cc",
894     "i18n/break_iterator.h",
895     "i18n/case_conversion.cc",
896     "i18n/case_conversion.h",
897     "i18n/char_iterator.cc",
898     "i18n/char_iterator.h",
899     "i18n/file_util_icu.cc",
900     "i18n/file_util_icu.h",
901     "i18n/i18n_constants.cc",
902     "i18n/i18n_constants.h",
903     "i18n/icu_encoding_detection.cc",
904     "i18n/icu_encoding_detection.h",
905     "i18n/icu_string_conversions.cc",
906     "i18n/icu_string_conversions.h",
907     "i18n/icu_util.cc",
908     "i18n/icu_util.h",
909     "i18n/number_formatting.cc",
910     "i18n/number_formatting.h",
911     "i18n/rtl.cc",
912     "i18n/rtl.h",
913     "i18n/streaming_utf8_validator.cc",
914     "i18n/streaming_utf8_validator.h",
915     "i18n/string_compare.cc",
916     "i18n/string_compare.h",
917     "i18n/string_search.cc",
918     "i18n/string_search.h",
919     "i18n/time_formatting.cc",
920     "i18n/time_formatting.h",
921     "i18n/timezone.cc",
922     "i18n/timezone.h",
923     "i18n/utf8_validator_tables.cc",
924     "i18n/utf8_validator_tables.h",
925   ]
926   defines = [ "BASE_I18N_IMPLEMENTATION" ]
927   configs += [ "//build/config/compiler:wexit_time_destructors" ]
928   deps = [
929     ":base",
930     "//base/third_party/dynamic_annotations",
931     "//third_party/icu",
932   ]
935 source_set("prefs") {
936   sources = [
937     "prefs/base_prefs_export.h",
938     "prefs/default_pref_store.cc",
939     "prefs/default_pref_store.h",
940     "prefs/json_pref_store.cc",
941     "prefs/json_pref_store.h",
942     "prefs/overlay_user_pref_store.cc",
943     "prefs/overlay_user_pref_store.h",
944     "prefs/persistent_pref_store.h",
945     "prefs/pref_change_registrar.cc",
946     "prefs/pref_change_registrar.h",
947     "prefs/pref_filter.h",
948     "prefs/pref_member.cc",
949     "prefs/pref_member.h",
950     "prefs/pref_notifier.h",
951     "prefs/pref_notifier_impl.cc",
952     "prefs/pref_notifier_impl.h",
953     "prefs/pref_observer.h",
954     "prefs/pref_registry.cc",
955     "prefs/pref_registry.h",
956     "prefs/pref_registry_simple.cc",
957     "prefs/pref_registry_simple.h",
958     "prefs/pref_service.cc",
959     "prefs/pref_service.h",
960     "prefs/pref_service_factory.cc",
961     "prefs/pref_service_factory.h",
962     "prefs/pref_store.cc",
963     "prefs/pref_store.h",
964     "prefs/pref_value_map.cc",
965     "prefs/pref_value_map.h",
966     "prefs/pref_value_store.cc",
967     "prefs/pref_value_store.h",
968     "prefs/scoped_user_pref_update.cc",
969     "prefs/scoped_user_pref_update.h",
970     "prefs/value_map_pref_store.cc",
971     "prefs/value_map_pref_store.h",
972     "prefs/writeable_pref_store.h",
973   ]
975   defines = [ "BASE_PREFS_IMPLEMENTATION" ]
977   deps = [ ":base" ]
980 source_set("prefs_test_support") {
981   sources = [
982     "prefs/mock_pref_change_callback.cc",
983     "prefs/pref_store_observer_mock.cc",
984     "prefs/pref_store_observer_mock.h",
985     "prefs/testing_pref_service.cc",
986     "prefs/testing_pref_service.h",
987     "prefs/testing_pref_store.cc",
988     "prefs/testing_pref_store.h",
989   ]
991   deps = [
992     ":base",
993     ":prefs",
994     "//testing/gmock",
995   ]
998 source_set("message_loop_tests") {
999   sources = [
1000     "message_loop/message_loop_test.cc",
1001     "message_loop/message_loop_test.h",
1002   ]
1004   deps = [
1005     ":base",
1006     "//testing/gtest",
1007   ]
1010 test("base_unittests") {
1011   sources = [
1012     "android/application_status_listener_unittest.cc",
1013     "android/jni_android_unittest.cc",
1014     "android/jni_array_unittest.cc",
1015     "android/jni_string_unittest.cc",
1016     "android/path_utils_unittest.cc",
1017     "android/scoped_java_ref_unittest.cc",
1018     "android/sys_utils_unittest.cc",
1019     "async_socket_io_handler_unittest.cc",
1020     "at_exit_unittest.cc",
1021     "atomicops_unittest.cc",
1022     "barrier_closure_unittest.cc",
1023     "base64_unittest.cc",
1024     "big_endian_unittest.cc",
1025     "bind_unittest.cc",
1026     "bind_unittest.nc",
1027     "bits_unittest.cc",
1028     "build_time_unittest.cc",
1029     "callback_helpers_unittest.cc",
1030     "callback_list_unittest.cc",
1031     "callback_list_unittest.nc",
1032     "callback_unittest.cc",
1033     "callback_unittest.nc",
1034     "cancelable_callback_unittest.cc",
1035     "command_line_unittest.cc",
1036     "containers/hash_tables_unittest.cc",
1037     "containers/linked_list_unittest.cc",
1038     "containers/mru_cache_unittest.cc",
1039     "containers/small_map_unittest.cc",
1040     "containers/stack_container_unittest.cc",
1041     "cpu_unittest.cc",
1042     "debug/crash_logging_unittest.cc",
1043     "debug/leak_tracker_unittest.cc",
1044     "debug/proc_maps_linux_unittest.cc",
1045     "debug/stack_trace_unittest.cc",
1046     "debug/trace_event_memory_unittest.cc",
1047     "debug/trace_event_synthetic_delay_unittest.cc",
1048     "debug/trace_event_system_stats_monitor_unittest.cc",
1049     "debug/trace_event_unittest.cc",
1050     "debug/trace_event_unittest.h",
1051     "debug/trace_event_win_unittest.cc",
1052     "deferred_sequenced_task_runner_unittest.cc",
1053     "environment_unittest.cc",
1054     "file_util_unittest.cc",
1055     "file_version_info_unittest.cc",
1056     "files/dir_reader_posix_unittest.cc",
1057     "files/file_path_unittest.cc",
1058     "files/file_proxy_unittest.cc",
1059     "files/file_unittest.cc",
1060     "files/file_util_proxy_unittest.cc",
1061     "files/important_file_writer_unittest.cc",
1062     "files/scoped_temp_dir_unittest.cc",
1063     "gmock_unittest.cc",
1064     "guid_unittest.cc",
1065     "hash_unittest.cc",
1066     "id_map_unittest.cc",
1067     "i18n/break_iterator_unittest.cc",
1068     "i18n/char_iterator_unittest.cc",
1069     "i18n/case_conversion_unittest.cc",
1070     "i18n/file_util_icu_unittest.cc",
1071     "i18n/icu_string_conversions_unittest.cc",
1072     "i18n/number_formatting_unittest.cc",
1073     "i18n/rtl_unittest.cc",
1074     "i18n/streaming_utf8_validator_unittest.cc",
1075     "i18n/string_search_unittest.cc",
1076     "i18n/time_formatting_unittest.cc",
1077     "i18n/timezone_unittest.cc",
1078     "ini_parser_unittest.cc",
1079     "ios/device_util_unittest.mm",
1080     "json/json_parser_unittest.cc",
1081     "json/json_reader_unittest.cc",
1082     "json/json_value_converter_unittest.cc",
1083     "json/json_value_serializer_unittest.cc",
1084     "json/json_writer_unittest.cc",
1085     "json/string_escape_unittest.cc",
1086     "lazy_instance_unittest.cc",
1087     "logging_unittest.cc",
1088     "mac/bind_objc_block_unittest.mm",
1089     "mac/foundation_util_unittest.mm",
1090     "mac/libdispatch_task_runner_unittest.cc",
1091     "mac/mac_util_unittest.mm",
1092     "mac/objc_property_releaser_unittest.mm",
1093     "mac/scoped_nsobject_unittest.mm",
1094     "mac/scoped_sending_event_unittest.mm",
1095     "md5_unittest.cc",
1096     "memory/aligned_memory_unittest.cc",
1097     "memory/discardable_memory_manager_unittest.cc",
1098     "memory/discardable_memory_unittest.cc",
1099     "memory/linked_ptr_unittest.cc",
1100     "memory/ref_counted_memory_unittest.cc",
1101     "memory/ref_counted_unittest.cc",
1102     "memory/scoped_ptr_unittest.cc",
1103     "memory/scoped_ptr_unittest.nc",
1104     "memory/scoped_vector_unittest.cc",
1105     "memory/shared_memory_unittest.cc",
1106     "memory/singleton_unittest.cc",
1107     "memory/weak_ptr_unittest.cc",
1108     "memory/weak_ptr_unittest.nc",
1109     "message_loop/message_loop_proxy_impl_unittest.cc",
1110     "message_loop/message_loop_proxy_unittest.cc",
1111     "message_loop/message_loop_unittest.cc",
1112     "message_loop/message_pump_glib_unittest.cc",
1113     "message_loop/message_pump_io_ios_unittest.cc",
1114     "metrics/sample_map_unittest.cc",
1115     "metrics/sample_vector_unittest.cc",
1116     "metrics/bucket_ranges_unittest.cc",
1117     "metrics/field_trial_unittest.cc",
1118     "metrics/histogram_base_unittest.cc",
1119     "metrics/histogram_delta_serialization_unittest.cc",
1120     "metrics/histogram_snapshot_manager_unittest.cc",
1121     "metrics/histogram_unittest.cc",
1122     "metrics/sparse_histogram_unittest.cc",
1123     "metrics/stats_table_unittest.cc",
1124     "metrics/statistics_recorder_unittest.cc",
1125     "observer_list_unittest.cc",
1126     "os_compat_android_unittest.cc",
1127     "path_service_unittest.cc",
1128     "pickle_unittest.cc",
1129     "platform_file_unittest.cc",
1130     "posix/file_descriptor_shuffle_unittest.cc",
1131     "posix/unix_domain_socket_linux_unittest.cc",
1132     "power_monitor/power_monitor_unittest.cc",
1133     "prefs/default_pref_store_unittest.cc",
1134     "prefs/json_pref_store_unittest.cc",
1135     "prefs/mock_pref_change_callback.h",
1136     "prefs/overlay_user_pref_store_unittest.cc",
1137     "prefs/pref_change_registrar_unittest.cc",
1138     "prefs/pref_member_unittest.cc",
1139     "prefs/pref_notifier_impl_unittest.cc",
1140     "prefs/pref_service_unittest.cc",
1141     "prefs/pref_value_map_unittest.cc",
1142     "prefs/pref_value_store_unittest.cc",
1143     "prefs/scoped_user_pref_update_unittest.cc",
1144     "process/memory_unittest.cc",
1145     "process/memory_unittest_mac.h",
1146     "process/memory_unittest_mac.mm",
1147     "process/process_metrics_unittest.cc",
1148     "process/process_metrics_unittest_ios.cc",
1149     "process/process_util_unittest.cc",
1150     "process/process_util_unittest_ios.cc",
1151     "profiler/tracked_time_unittest.cc",
1152     "rand_util_unittest.cc",
1153     "numerics/safe_numerics_unittest.cc",
1154     "scoped_clear_errno_unittest.cc",
1155     "scoped_generic_unittest.cc",
1156     "scoped_native_library_unittest.cc",
1157     "scoped_observer.h",
1158     "security_unittest.cc",
1159     "sequence_checker_unittest.cc",
1160     "sha1_unittest.cc",
1161     "stl_util_unittest.cc",
1162     "strings/nullable_string16_unittest.cc",
1163     "strings/safe_sprintf_unittest.cc",
1164     "strings/string16_unittest.cc",
1165     "strings/stringprintf_unittest.cc",
1166     "strings/string_number_conversions_unittest.cc",
1167     "strings/string_piece_unittest.cc",
1168     "strings/string_split_unittest.cc",
1169     "strings/string_tokenizer_unittest.cc",
1170     "strings/string_util_unittest.cc",
1171     "strings/stringize_macros_unittest.cc",
1172     "strings/sys_string_conversions_mac_unittest.mm",
1173     "strings/sys_string_conversions_unittest.cc",
1174     "strings/utf_offset_string_conversions_unittest.cc",
1175     "strings/utf_string_conversions_unittest.cc",
1176     "sync_socket_unittest.cc",
1177     "synchronization/cancellation_flag_unittest.cc",
1178     "synchronization/condition_variable_unittest.cc",
1179     "synchronization/lock_unittest.cc",
1180     "synchronization/waitable_event_unittest.cc",
1181     "synchronization/waitable_event_watcher_unittest.cc",
1182     "sys_info_unittest.cc",
1183     "system_monitor/system_monitor_unittest.cc",
1184     "task/cancelable_task_tracker_unittest.cc",
1185     "task_runner_util_unittest.cc",
1186     "template_util_unittest.cc",
1187     "test/expectations/expectation_unittest.cc",
1188     "test/expectations/parser_unittest.cc",
1189     "test/statistics_delta_reader_unittest.cc",
1190     "test/test_reg_util_win_unittest.cc",
1191     "test/trace_event_analyzer_unittest.cc",
1192     "threading/non_thread_safe_unittest.cc",
1193     "threading/platform_thread_unittest.cc",
1194     "threading/sequenced_worker_pool_unittest.cc",
1195     "threading/simple_thread_unittest.cc",
1196     "threading/thread_checker_unittest.cc",
1197     "threading/thread_collision_warner_unittest.cc",
1198     "threading/thread_id_name_manager_unittest.cc",
1199     "threading/thread_local_storage_unittest.cc",
1200     "threading/thread_local_unittest.cc",
1201     "threading/thread_unittest.cc",
1202     "threading/watchdog_unittest.cc",
1203     "threading/worker_pool_posix_unittest.cc",
1204     "threading/worker_pool_unittest.cc",
1205     "time/pr_time_unittest.cc",
1206     "time/time_unittest.cc",
1207     "time/time_win_unittest.cc",
1208     "timer/hi_res_timer_manager_unittest.cc",
1209     "timer/mock_timer_unittest.cc",
1210     "timer/timer_unittest.cc",
1211     "tools_sanity_unittest.cc",
1212     "tracked_objects_unittest.cc",
1213     "tuple_unittest.cc",
1214     "values_unittest.cc",
1215     "version_unittest.cc",
1216     "vlog_unittest.cc",
1217     "win/dllmain.cc",
1218     "win/enum_variant_unittest.cc",
1219     "win/event_trace_consumer_unittest.cc",
1220     "win/event_trace_controller_unittest.cc",
1221     "win/event_trace_provider_unittest.cc",
1222     "win/i18n_unittest.cc",
1223     "win/iunknown_impl_unittest.cc",
1224     "win/message_window_unittest.cc",
1225     "win/object_watcher_unittest.cc",
1226     "win/pe_image_unittest.cc",
1227     "win/registry_unittest.cc",
1228     "win/scoped_bstr_unittest.cc",
1229     "win/scoped_comptr_unittest.cc",
1230     "win/scoped_process_information_unittest.cc",
1231     "win/scoped_variant_unittest.cc",
1232     "win/shortcut_unittest.cc",
1233     "win/startup_information_unittest.cc",
1234     "win/win_util_unittest.cc",
1235     "win/wrapped_window_proc_unittest.cc",
1236   ]
1238   deps = [
1239     ":base",
1240     ":i18n",
1241     ":message_loop_tests",
1242     ":prefs",
1243     ":prefs_test_support",
1244     "//base/allocator",
1245     "//base/test:run_all_unittests",
1246     "//base/test:test_support",
1247     "//base/third_party/dynamic_annotations",
1248     "//testing/gmock",
1249     "//testing/gtest",
1250     "//third_party/icu",
1251   ]
1253   if (is_ios) {
1254     sources -= [
1255       "metrics/stats_table_uinittest.cc",  # Requires spawning a process.
1256       "process/memory_unittest.cc",
1257       "process/memory_unittest_mac.h",
1258       "process/memory_unittest_mac.mm",
1259       "process/process_util_unittest.cc",
1260     ]
1262     # Pull in specific Mac files for iOS (which have been filtered out by file
1263     # name rules).
1264     set_sources_assignment_filter([])
1265     sources += [
1266       "mac/bind_objc_block_unittest.mm",
1267       "mac/foundation_util_unittest.mm",
1268       "mac/objc_property_releaser_unittest.mm",
1269       "mac/scoped_nsobject_unittest.mm",
1270       "sys_string_conversions_mac_unittest.mm",
1271     ]
1272     set_sources_assignment_filter(sources_assignment_filter)
1274     # TODO(GYP): dep on copy_test_data_ios action.
1275   }
1277   if (is_linux) {
1278     sources -= [ "file_version_info_unittest.cc" ]
1279     sources += [ "nix/xdg_util_unittest.cc" ]
1280     defines = [ "USE_SYMBOLIZE" ]
1281     configs += [ "//build/config/linux:glib" ]
1282   }
1284   if (!is_linux || use_ozone) {
1285     sources -= [ "message_loop/message_pump_glib_unittest.cc" ]
1286   }
1288   if (is_posix || is_ios) {
1289     sources += [ "message_loop/message_pump_libevent_unittest.cc" ]
1290     deps += [ "//third_party/libevent" ]
1291   }
1293   if (is_android) {
1294     set_sources_assignment_filter([])
1295     sources += [ "debug/proc_maps_linux_unittest.cc" ]
1296     set_sources_assignment_filter(sources_assignment_filter)
1297   }
1300 if (is_android) {
1301   generate_jni("base_jni_headers") {
1302     sources = [
1303       "android/java/src/org/chromium/base/ApplicationStatus.java",
1304       "android/java/src/org/chromium/base/BuildInfo.java",
1305       "android/java/src/org/chromium/base/CommandLine.java",
1306       "android/java/src/org/chromium/base/ContentUriUtils.java",
1307       "android/java/src/org/chromium/base/CpuFeatures.java",
1308       "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java",
1309       "android/java/src/org/chromium/base/library_loader/LibraryLoader.java",
1310       "android/java/src/org/chromium/base/MemoryPressureListener.java",
1311       "android/java/src/org/chromium/base/JavaHandlerThread.java",
1312       "android/java/src/org/chromium/base/PathService.java",
1313       "android/java/src/org/chromium/base/PathUtils.java",
1314       "android/java/src/org/chromium/base/PowerMonitor.java",
1315       "android/java/src/org/chromium/base/SystemMessageHandler.java",
1316       "android/java/src/org/chromium/base/SysUtils.java",
1317       "android/java/src/org/chromium/base/ThreadUtils.java",
1318       "android/java/src/org/chromium/base/TraceEvent.java",
1319     ]
1320     jni_package = "base"
1321   }
1323   java_cpp_template("base_java_application_state") {
1324     sources = [
1325       "android/java/src/org/chromium/base/ApplicationState.template",
1326       ]
1327     source_prereqs = [
1328       "android/application_state_list.h"
1329       ]
1331     package_name = "org/chromium/base"
1332   }
1334   java_cpp_template("base_java_memory_pressure_level_list") {
1335     sources = [
1336       "android/java/src/org/chromium/base/MemoryPressureLevelList.template",
1337       ]
1338     source_prereqs = [
1339       "memory/memory_pressure_level_list.h"
1340       ]
1342     package_name = "org/chromium/base"
1343   }
1345   java_cpp_template("base_native_libraries_gen") {
1346     sources = [
1347       "android/java/templates/NativeLibraries.template",
1348       ]
1349     source_prereqs = [
1350       "android/java/templates/native_libraries_array.h",
1351       ]
1353     package_name = "org/chromium/base/library_loader"
1354     include_path = "android/java/templates"
1355   }