Add a string for translation.
[chromium-blink-merge.git] / base / BUILD.gn
blob32f75a2526d6034f426c28c18a370feb40a58f62
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/ui.gni")
6 import("//build/config/android/rules.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_helper.h",
42     "android/jni_registrar.cc",
43     "android/jni_registrar.h",
44     "android/jni_string.cc",
45     "android/jni_string.h",
46     "android/jni_weak_ref.cc",
47     "android/jni_weak_ref.h",
48     "android/library_loader/library_loader_hooks.cc",
49     "android/library_loader/library_loader_hooks.h",
50     "android/memory_pressure_listener_android.cc",
51     "android/memory_pressure_listener_android.h",
52     "android/java_handler_thread.cc",
53     "android/java_handler_thread.h",
54     "android/path_service_android.cc",
55     "android/path_service_android.h",
56     "android/path_utils.cc",
57     "android/path_utils.h",
58     "android/sys_utils.cc",
59     "android/sys_utils.h",
60     "android/thread_utils.h",
61     "android/trace_event_binding.cc",
62     "android/trace_event_binding.h",
63     "at_exit.cc",
64     "at_exit.h",
65     "atomic_ref_count.h",
66     "atomic_sequence_num.h",
67     "atomicops.h",
68     "atomicops_internals_gcc.h",
69     "atomicops_internals_mac.h",
70     "atomicops_internals_tsan.h",
71     "atomicops_internals_x86_gcc.cc",
72     "atomicops_internals_x86_gcc.h",
73     "atomicops_internals_x86_msvc.h",
74     "base_export.h",
75     "base_paths.cc",
76     "base_paths.h",
77     "base_paths_android.cc",
78     "base_paths_android.h",
79     "base_paths_mac.h",
80     "base_paths_mac.mm",
81     "base_paths_posix.cc",
82     "base_paths_posix.h",
83     "base_paths_win.cc",
84     "base_paths_win.h",
85     "base_switches.h",
86     "base64.cc",
87     "base64.h",
88     "basictypes.h",
89     "big_endian.cc",
90     "big_endian.h",
91     "bind.h",
92     "bind_helpers.cc",
93     "bind_helpers.h",
94     "bind_internal.h",
95     "bind_internal_win.h",
96     "bits.h",
97     "build_time.cc",
98     "build_time.h",
99     "callback.h",
100     "callback_helpers.h",
101     "callback_internal.cc",
102     "callback_internal.h",
103     "cancelable_callback.h",
104     "command_line.cc",
105     "command_line.h",
106     "compiler_specific.h",
107     "containers/hash_tables.h",
108     "containers/linked_list.h",
109     "containers/mru_cache.h",
110     "containers/small_map.h",
111     "containers/stack_container.h",
112     "cpu.cc",
113     "cpu.h",
114     "critical_closure.h",
115     "critical_closure_ios.mm",
116     "debug/alias.cc",
117     "debug/alias.h",
118     "debug/crash_logging.cc",
119     "debug/crash_logging.h",
120     "debug/debugger.cc",
121     "debug/debugger.h",
122     "debug/debugger_posix.cc",
123     "debug/debugger_win.cc",
124     # This file depends on files from the "allocator" target,
125     # but this target does not depend on "allocator" (see
126     # allocator.gyp for details).
127     "debug/leak_annotations.h",
128     "debug/leak_tracker.h",
129     "debug/proc_maps_linux.cc",
130     "debug/proc_maps_linux.h",
131     "debug/profiler.cc",
132     "debug/profiler.h",
133     "debug/stack_trace.cc",
134     "debug/stack_trace.h",
135     "debug/stack_trace_android.cc",
136     "debug/stack_trace_posix.cc",
137     "debug/stack_trace_win.cc",
138     "debug/trace_event.h",
139     "debug/trace_event_android.cc",
140     "debug/trace_event_impl.cc",
141     "debug/trace_event_impl.h",
142     "debug/trace_event_impl_constants.cc",
143     "debug/trace_event_memory.cc",
144     "debug/trace_event_memory.h",
145     "debug/trace_event_synthetic_delay.cc",
146     "debug/trace_event_synthetic_delay.h",
147     "debug/trace_event_win.cc",
148     "deferred_sequenced_task_runner.cc",
149     "deferred_sequenced_task_runner.h",
150     "environment.cc",
151     "environment.h",
152     "file_descriptor_posix.h",
153     "file_util.cc",
154     "file_util.h",
155     "file_util_android.cc",
156     "file_util_linux.cc",
157     "file_util_mac.mm",
158     "file_util_posix.cc",
159     "file_util_win.cc",
160     "file_version_info.h",
161     "file_version_info_mac.h",
162     "file_version_info_mac.mm",
163     "file_version_info_win.cc",
164     "file_version_info_win.h",
165     "files/dir_reader_fallback.h",
166     "files/dir_reader_linux.h",
167     "files/dir_reader_posix.h",
168     "files/file.cc",
169     "files/file_posix.cc",
170     "files/file_win.cc",
171     "files/file_enumerator.cc",
172     "files/file_enumerator.h",
173     "files/file_enumerator_posix.cc",
174     "files/file_enumerator_win.cc",
175     "files/file_path.cc",
176     "files/file_path.h",
177     "files/file_path_constants.cc",
178     "files/file_path_watcher.cc",
179     "files/file_path_watcher.h",
180     "files/file_path_watcher_kqueue.cc",
181     "files/file_path_watcher_linux.cc",
182     "files/file_path_watcher_stub.cc",
183     "files/file_path_watcher_win.cc",
184     "files/file_util_proxy.cc",
185     "files/file_util_proxy.h",
186     "files/important_file_writer.cc",
187     "files/important_file_writer.h",
188     "files/memory_mapped_file.cc",
189     "files/memory_mapped_file.h",
190     "files/memory_mapped_file_posix.cc",
191     "files/memory_mapped_file_win.cc",
192     "files/scoped_file.cc",
193     "files/scoped_file.h",
194     "files/scoped_temp_dir.cc",
195     "files/scoped_temp_dir.h",
196     "float_util.h",
197     "format_macros.h",
198     "gtest_prod_util.h",
199     "guid.cc",
200     "guid.h",
201     "guid_posix.cc",
202     "guid_win.cc",
203     "hash.cc",
204     "hash.h",
205     "id_map.h",
206     "ini_parser.cc",
207     "ini_parser.h",
208     "ios/device_util.h",
209     "ios/device_util.mm",
210     "ios/ios_util.h",
211     "ios/ios_util.mm",
212     "ios/scoped_critical_action.h",
213     "ios/scoped_critical_action.mm",
214     "json/json_file_value_serializer.cc",
215     "json/json_file_value_serializer.h",
216     "json/json_parser.cc",
217     "json/json_parser.h",
218     "json/json_reader.cc",
219     "json/json_reader.h",
220     "json/json_string_value_serializer.cc",
221     "json/json_string_value_serializer.h",
222     "json/json_value_converter.h",
223     "json/json_writer.cc",
224     "json/json_writer.h",
225     "json/string_escape.cc",
226     "json/string_escape.h",
227     "lazy_instance.cc",
228     "lazy_instance.h",
229     "location.cc",
230     "location.h",
231     "logging.cc",
232     "logging.h",
233     "logging_win.cc",
234     "logging_win.h",
235     "mac/authorization_util.h",
236     "mac/authorization_util.mm",
237     "mac/bind_objc_block.h",
238     "mac/bundle_locations.h",
239     "mac/bundle_locations.mm",
240     "mac/cocoa_protocols.h",
241     "mac/foundation_util.h",
242     "mac/foundation_util.mm",
243     "mac/launch_services_util.cc",
244     "mac/launch_services_util.h",
245     "mac/launchd.cc",
246     "mac/launchd.h",
247     "mac/libdispatch_task_runner.cc",
248     "mac/libdispatch_task_runner.h",
249     "mac/mac_logging.h",
250     "mac/mac_logging.cc",
251     "mac/mac_util.h",
252     "mac/mac_util.mm",
253     "mac/objc_property_releaser.h",
254     "mac/objc_property_releaser.mm",
255     "mac/os_crash_dumps.cc",
256     "mac/os_crash_dumps.h",
257     "mac/scoped_aedesc.h",
258     "mac/scoped_authorizationref.h",
259     "mac/scoped_block.h",
260     "mac/scoped_cftyperef.h",
261     "mac/scoped_ioobject.h",
262     "mac/scoped_ioplugininterface.h",
263     "mac/scoped_launch_data.h",
264     "mac/scoped_mach_port.cc",
265     "mac/scoped_mach_port.h",
266     "mac/scoped_nsautorelease_pool.h",
267     "mac/scoped_nsautorelease_pool.mm",
268     "mac/scoped_nsexception_enabler.h",
269     "mac/scoped_nsexception_enabler.mm",
270     "mac/scoped_nsobject.h",
271     "mac/scoped_sending_event.h",
272     "mac/scoped_sending_event.mm",
273     "mac/sdk_forward_declarations.h",
274     "macros.h",
275     "md5.cc",
276     "md5.h",
277     "memory/aligned_memory.cc",
278     "memory/aligned_memory.h",
279     "memory/discardable_memory.cc",
280     "memory/discardable_memory.h",
281     "memory/discardable_memory_allocator_android.cc",
282     "memory/discardable_memory_allocator_android.h",
283     "memory/discardable_memory_android.cc",
284     "memory/discardable_memory_emulated.cc",
285     "memory/discardable_memory_emulated.h",
286     "memory/discardable_memory_linux.cc",
287     "memory/discardable_memory_mac.cc",
288     "memory/discardable_memory_malloc.cc",
289     "memory/discardable_memory_malloc.h",
290     "memory/discardable_memory_manager.cc",
291     "memory/discardable_memory_manager.h",
292     "memory/discardable_memory_win.cc",
293     "memory/linked_ptr.h",
294     "memory/manual_constructor.h",
295     "memory/memory_pressure_listener.cc",
296     "memory/memory_pressure_listener.h",
297     "memory/raw_scoped_refptr_mismatch_checker.h",
298     "memory/ref_counted.cc",
299     "memory/ref_counted.h",
300     "memory/ref_counted_delete_on_message_loop.h",
301     "memory/ref_counted_memory.cc",
302     "memory/ref_counted_memory.h",
303     "memory/scoped_handle.h",
304     "memory/scoped_open_process.h",
305     "memory/scoped_policy.h",
306     "memory/scoped_ptr.h",
307     "memory/scoped_vector.h",
308     "memory/shared_memory.h",
309     "memory/shared_memory_android.cc",
310     "memory/shared_memory_nacl.cc",
311     "memory/shared_memory_posix.cc",
312     "memory/shared_memory_win.cc",
313     "memory/singleton.cc",
314     "memory/singleton.h",
315     "memory/weak_ptr.cc",
316     "memory/weak_ptr.h",
317     "message_loop/incoming_task_queue.cc",
318     "message_loop/incoming_task_queue.h",
319     "message_loop/message_loop.cc",
320     "message_loop/message_loop.h",
321     "message_loop/message_loop_proxy.cc",
322     "message_loop/message_loop_proxy.h",
323     "message_loop/message_loop_proxy_impl.cc",
324     "message_loop/message_loop_proxy_impl.h",
325     "message_loop/message_pump.cc",
326     "message_loop/message_pump.h",
327     "message_loop/message_pump_android.cc",
328     "message_loop/message_pump_android.h",
329     "message_loop/message_pump_default.cc",
330     "message_loop/message_pump_default.h",
331     "message_loop/message_pump_glib.cc",
332     "message_loop/message_pump_glib.h",
333     "message_loop/message_pump_gtk.cc",
334     "message_loop/message_pump_gtk.h",
335     "message_loop/message_pump_io_ios.cc",
336     "message_loop/message_pump_io_ios.h",
337     "message_loop/message_pump_libevent.cc",
338     "message_loop/message_pump_libevent.h",
339     "message_loop/message_pump_mac.h",
340     "message_loop/message_pump_mac.mm",
341     "message_loop/message_pump_observer.h",
342     "message_loop/message_pump_win.cc",
343     "message_loop/message_pump_win.h",
344     "metrics/field_trial.cc",
345     "metrics/field_trial.h",
346     "metrics/sample_map.cc",
347     "metrics/sample_map.h",
348     "metrics/sample_vector.cc",
349     "metrics/sample_vector.h",
350     "metrics/bucket_ranges.cc",
351     "metrics/bucket_ranges.h",
352     "metrics/histogram.cc",
353     "metrics/histogram.h",
354     "metrics/histogram_base.cc",
355     "metrics/histogram_base.h",
356     "metrics/histogram_flattener.h",
357     "metrics/histogram_samples.cc",
358     "metrics/histogram_samples.h",
359     "metrics/histogram_snapshot_manager.cc",
360     "metrics/histogram_snapshot_manager.h",
361     "metrics/sparse_histogram.cc",
362     "metrics/sparse_histogram.h",
363     "metrics/statistics_recorder.cc",
364     "metrics/statistics_recorder.h",
365     "metrics/stats_counters.cc",
366     "metrics/stats_counters.h",
367     "metrics/stats_table.cc",
368     "metrics/stats_table.h",
369     "metrics/user_metrics.cc",
370     "metrics/user_metrics.h",
371     "metrics/user_metrics_action.h",
372     "move.h",
373     "native_library.h",
374     "native_library_mac.mm",
375     "native_library_posix.cc",
376     "native_library_win.cc",
377     "numerics/safe_conversions.h",
378     "numerics/safe_conversions_impl.h",
379     "numerics/safe_math.h",
380     "numerics/safe_math_impl.h",
381     "nix/mime_util_xdg.cc",
382     "nix/mime_util_xdg.h",
383     "nix/xdg_util.cc",
384     "nix/xdg_util.h",
385     "observer_list.h",
386     "observer_list_threadsafe.h",
387     "os_compat_android.cc",
388     "os_compat_android.h",
389     "os_compat_nacl.cc",
390     "os_compat_nacl.h",
391     "path_service.cc",
392     "path_service.h",
393     "pending_task.cc",
394     "pending_task.h",
395     "pickle.cc",
396     "pickle.h",
397     "platform_file.cc",
398     "platform_file.h",
399     "platform_file_posix.cc",
400     "platform_file_win.cc",
401     "port.h",
402     "posix/eintr_wrapper.h",
403     "posix/file_descriptor_shuffle.cc",
404     "posix/global_descriptors.cc",
405     "posix/global_descriptors.h",
406     "posix/unix_domain_socket_linux.cc",
407     "posix/unix_domain_socket_linux.h",
408     "power_monitor/power_monitor.cc",
409     "power_monitor/power_monitor.h",
410     "power_monitor/power_monitor_device_source.cc",
411     "power_monitor/power_monitor_device_source.h",
412     "power_monitor/power_monitor_device_source_android.cc",
413     "power_monitor/power_monitor_device_source_android.h",
414     "power_monitor/power_monitor_device_source_ios.mm",
415     "power_monitor/power_monitor_device_source_mac.mm",
416     "power_monitor/power_monitor_device_source_posix.cc",
417     "power_monitor/power_monitor_device_source_win.cc",
418     "power_monitor/power_monitor_source.cc",
419     "power_monitor/power_monitor_source.h",
420     "power_monitor/power_observer.h",
421     "process/internal_linux.cc",
422     "process/internal_linux.h",
423     "process/kill.cc",
424     "process/kill.h",
425     "process/kill_mac.cc",
426     "process/kill_posix.cc",
427     "process/kill_win.cc",
428     "process/launch.cc",
429     "process/launch.h",
430     "process/launch_ios.cc",
431     "process/launch_mac.cc",
432     "process/launch_posix.cc",
433     "process/launch_win.cc",
434     "process/memory.cc",
435     "process/memory.h",
436     "process/memory_linux.cc",
437     "process/memory_mac.mm",
438     "process/memory_win.cc",
439     "process/process.h",
440     "process/process_handle_freebsd.cc",
441     "process/process_handle_linux.cc",
442     "process/process_handle_mac.cc",
443     "process/process_handle_openbsd.cc",
444     "process/process_handle_posix.cc",
445     "process/process_handle_win.cc",
446     "process/process_info.h",
447     "process/process_info_mac.cc",
448     "process/process_info_win.cc",
449     "process/process_iterator.cc",
450     "process/process_iterator.h",
451     "process/process_iterator_freebsd.cc",
452     "process/process_iterator_linux.cc",
453     "process/process_iterator_mac.cc",
454     "process/process_iterator_openbsd.cc",
455     "process/process_iterator_win.cc",
456     "process/process_linux.cc",
457     "process/process_metrics.h",
458     "process/process_metrics_freebsd.cc",
459     "process/process_metrics_ios.cc",
460     "process/process_metrics_linux.cc",
461     "process/process_metrics_mac.cc",
462     "process/process_metrics_openbsd.cc",
463     "process/process_metrics_posix.cc",
464     "process/process_metrics_win.cc",
465     "process/process_posix.cc",
466     "process/process_win.cc",
467     "profiler/scoped_profile.cc",
468     "profiler/scoped_profile.h",
469     "profiler/alternate_timer.cc",
470     "profiler/alternate_timer.h",
471     "profiler/tracked_time.cc",
472     "profiler/tracked_time.h",
473     "rand_util.cc",
474     "rand_util.h",
475     "rand_util_nacl.cc",
476     "rand_util_posix.cc",
477     "rand_util_win.cc",
478     "run_loop.cc",
479     "run_loop.h",
480     "safe_strerror_posix.cc",
481     "safe_strerror_posix.h",
482     "scoped_generic.h",
483     "scoped_native_library.cc",
484     "scoped_native_library.h",
485     "sequence_checker.h",
486     "sequence_checker_impl.cc",
487     "sequence_checker_impl.h",
488     "sequenced_task_runner.cc",
489     "sequenced_task_runner.h",
490     "sequenced_task_runner_helpers.h",
491     "sha1.h",
492     "sha1_portable.cc",
493     "sha1_win.cc",
494     "single_thread_task_runner.h",
495     "stl_util.h",
496     "strings/latin1_string_conversions.cc",
497     "strings/latin1_string_conversions.h",
498     "strings/nullable_string16.cc",
499     "strings/nullable_string16.h",
500     "strings/string16.cc",
501     "strings/string16.h",
502     "strings/string_number_conversions.cc",
503     "strings/string_split.cc",
504     "strings/string_split.h",
505     "strings/string_number_conversions.h",
506     "strings/string_piece.cc",
507     "strings/string_piece.h",
508     "strings/string_tokenizer.h",
509     "strings/string_util.cc",
510     "strings/string_util.h",
511     "strings/string_util_constants.cc",
512     "strings/string_util_posix.h",
513     "strings/string_util_win.h",
514     "strings/stringize_macros.h",
515     "strings/stringprintf.cc",
516     "strings/stringprintf.h",
517     "strings/sys_string_conversions.h",
518     "strings/sys_string_conversions_mac.mm",
519     "strings/sys_string_conversions_posix.cc",
520     "strings/sys_string_conversions_win.cc",
521     "strings/utf_offset_string_conversions.cc",
522     "strings/utf_offset_string_conversions.h",
523     "strings/utf_string_conversion_utils.cc",
524     "strings/utf_string_conversion_utils.h",
525     "strings/utf_string_conversions.cc",
526     "strings/utf_string_conversions.h",
527     "supports_user_data.cc",
528     "supports_user_data.h",
529     "sync_socket.h",
530     "sync_socket_posix.cc",
531     "sync_socket_win.cc",
532     "synchronization/cancellation_flag.cc",
533     "synchronization/cancellation_flag.h",
534     "synchronization/condition_variable.h",
535     "synchronization/condition_variable_posix.cc",
536     "synchronization/condition_variable_win.cc",
537     "synchronization/lock.cc",
538     "synchronization/lock.h",
539     "synchronization/lock_impl.h",
540     "synchronization/lock_impl_posix.cc",
541     "synchronization/lock_impl_win.cc",
542     "synchronization/spin_wait.h",
543     "synchronization/waitable_event.h",
544     "synchronization/waitable_event_posix.cc",
545     "synchronization/waitable_event_watcher.h",
546     "synchronization/waitable_event_watcher_posix.cc",
547     "synchronization/waitable_event_watcher_win.cc",
548     "synchronization/waitable_event_win.cc",
549     "system_monitor/system_monitor.cc",
550     "system_monitor/system_monitor.h",
551     "sys_byteorder.h",
552     "sys_info.cc",
553     "sys_info.h",
554     "sys_info_android.cc",
555     "sys_info_chromeos.cc",
556     "sys_info_freebsd.cc",
557     "sys_info_ios.mm",
558     "sys_info_linux.cc",
559     "sys_info_mac.cc",
560     "sys_info_openbsd.cc",
561     "sys_info_posix.cc",
562     "sys_info_win.cc",
563     "task_runner.cc",
564     "task_runner.h",
565     "task_runner_util.h",
566     "template_util.h",
567     "thread_task_runner_handle.cc",
568     "thread_task_runner_handle.h",
569     "threading/non_thread_safe.h",
570     "threading/non_thread_safe_impl.cc",
571     "threading/non_thread_safe_impl.h",
572     "threading/platform_thread.h",
573     "threading/platform_thread_android.cc",
574     "threading/platform_thread_linux.cc",
575     "threading/platform_thread_mac.mm",
576     "threading/platform_thread_posix.cc",
577     "threading/platform_thread_win.cc",
578     "threading/post_task_and_reply_impl.cc",
579     "threading/post_task_and_reply_impl.h",
580     "threading/sequenced_worker_pool.cc",
581     "threading/sequenced_worker_pool.h",
582     "threading/simple_thread.cc",
583     "threading/simple_thread.h",
584     "threading/thread.cc",
585     "threading/thread.h",
586     "threading/thread_checker.h",
587     "threading/thread_checker_impl.cc",
588     "threading/thread_checker_impl.h",
589     "threading/thread_collision_warner.cc",
590     "threading/thread_collision_warner.h",
591     "threading/thread_id_name_manager.cc",
592     "threading/thread_id_name_manager.h",
593     "threading/thread_local.h",
594     "threading/thread_local_posix.cc",
595     "threading/thread_local_storage.cc",
596     "threading/thread_local_storage.h",
597     "threading/thread_local_storage_posix.cc",
598     "threading/thread_local_storage_win.cc",
599     "threading/thread_local_win.cc",
600     "threading/thread_restrictions.h",
601     "threading/thread_restrictions.cc",
602     "threading/watchdog.cc",
603     "threading/watchdog.h",
604     "threading/worker_pool.h",
605     "threading/worker_pool.cc",
606     "threading/worker_pool_posix.cc",
607     "threading/worker_pool_posix.h",
608     "threading/worker_pool_win.cc",
609     "time/clock.cc",
610     "time/clock.h",
611     "time/default_clock.cc",
612     "time/default_clock.h",
613     "time/default_tick_clock.cc",
614     "time/default_tick_clock.h",
615     "time/tick_clock.cc",
616     "time/tick_clock.h",
617     "time/time.cc",
618     "time/time.h",
619     "time/time_mac.cc",
620     "time/time_posix.cc",
621     "time/time_win.cc",
622     "timer/elapsed_timer.cc",
623     "timer/elapsed_timer.h",
624     "timer/hi_res_timer_manager.h",
625     "timer/hi_res_timer_manager_posix.cc",
626     "timer/hi_res_timer_manager_win.cc",
627     "timer/timer.cc",
628     "timer/timer.h",
629     "tracked_objects.cc",
630     "tracked_objects.h",
631     "tracking_info.cc",
632     "tracking_info.h",
633     "tuple.h",
634     "values.cc",
635     "values.h",
636     "value_conversions.cc",
637     "value_conversions.h",
638     "version.cc",
639     "version.h",
640     "vlog.cc",
641     "vlog.h",
642     "win/enum_variant.cc",
643     "win/enum_variant.h",
644     "win/event_trace_consumer.h",
645     "win/event_trace_controller.cc",
646     "win/event_trace_controller.h",
647     "win/event_trace_provider.cc",
648     "win/event_trace_provider.h",
649     "win/i18n.cc",
650     "win/i18n.h",
651     "win/iat_patch_function.cc",
652     "win/iat_patch_function.h",
653     "win/iunknown_impl.cc",
654     "win/iunknown_impl.h",
655     "win/message_window.cc",
656     "win/message_window.h",
657     "win/metro.cc",
658     "win/metro.h",
659     "win/object_watcher.cc",
660     "win/object_watcher.h",
661     "win/registry.cc",
662     "win/registry.h",
663     "win/resource_util.cc",
664     "win/resource_util.h",
665     "win/scoped_bstr.cc",
666     "win/scoped_bstr.h",
667     "win/scoped_co_mem.h",
668     "win/scoped_com_initializer.h",
669     "win/scoped_comptr.h",
670     "win/scoped_gdi_object.h",
671     "win/scoped_handle.cc",
672     "win/scoped_handle.h",
673     "win/scoped_hdc.h",
674     "win/scoped_hglobal.h",
675     "win/scoped_process_information.cc",
676     "win/scoped_process_information.h",
677     "win/scoped_propvariant.h",
678     "win/scoped_select_object.h",
679     "win/scoped_variant.cc",
680     "win/scoped_variant.h",
681     "win/shortcut.cc",
682     "win/shortcut.h",
683     "win/startup_information.cc",
684     "win/startup_information.h",
685     "win/win_util.cc",
686     "win/win_util.h",
687     "win/windows_version.cc",
688     "win/windows_version.h",
689     "win/wrapped_window_proc.cc",
690     "win/wrapped_window_proc.h",
691   ]
693   # TODO(brettw) I don't understand the conditions this file is used.
694   sources -= [ "files/file_path_watcher_stub.cc" ]
696   sources -= [
697     "process/process_handle_freebsd.cc",
698     "process/process_handle_openbsd.cc",
699     "process/process_iterator_freebsd.cc",
700     "process/process_iterator_openbsd.cc",
701     "process/process_metrics_freebsd.cc",
702     "process/process_metrics_openbsd.cc",
703     "sys_info_freebsd.cc",
704     "sys_info_openbsd.cc",
705   ]
707   defines = [
708     "BASE_IMPLEMENTATION",
709   ]
711   deps = [
712     ":base_static",
713     "//base/allocator:allocator_extension_thunks",
714     "//base/third_party/dynamic_annotations",
715     "//base/third_party/nspr",
716     "//third_party/modp_b64",
717   ]
719   if (is_android) {
720     deps += [
721       ":base_jni_headers",
722       "//third_party/android_tools:cpu_features"
723     ]
725     sources -= [
726       "debug/stack_trace_posix.cc",
727     ]
728   }
730   if (is_nacl) {
731     # These things would otherwise be built on a Posix build but aren't
732     # supported on NaCl.
733     sources -= [
734       "debug/stack_trace_posix.cc",
735       "files/file_enumerator_posix.cc",
736       "file_util_posix.cc",
737       "message_loop/message_pump_libevent.cc",
738       "process/kill_posix.cc",
739       "process/launch_posix.cc",
740       "process/process_metrics_posix.cc",
741       "process/process_posix.cc",
742       "metrics/field_trial.cc",
743       "native_library_posix.cc",
744       "memory/shared_memory_posix.cc",
745       "sync_socket_posix.cc",
746       "sys_info_posix.cc",
747     ]
748   } else {
749     # Remove nacl stuff.
750     sources -= [
751       "os_compat_nacl.cc",
752       "os_compat_nacl.h",
753       "rand_util_nacl.cc",
754       "memory/shared_memory_nacl.cc",
755     ]
756   }
758   # Windows.
759   if (is_win) {
760     sources -= [
761       "message_loop/message_pump_libevent.cc",
762       "strings/string16.cc",
763       # Not using sha1_win.cc because it may have caused a
764       # regression to page cycler moz.
765       "sha1_win.cc",
766     ]
768     if (is_component_build) {
769       sources -= [ "debug/debug_on_start_win.cc" ]
770     }
772     # Needed by win_util.h
773     libs = [ "netapi32.lib" ]
774   } else if (!is_nacl) {
775     # Non-Windows.
776     deps += [ "//third_party/libevent" ]
777   }
779   # Mac.
780   if (is_mac) {
781     sources -= [
782       "base_paths_posix.cc",
783       "native_library_posix.cc",
784       "strings/sys_string_conversions_posix.cc",
785     ]
786     deps += [ "//third_party/mach_override" ]
787   } else {
788     # Non-Mac.
789     sources -= [ "files/file_path_watcher_kqueue.cc" ]
790   }
792   # Linux.
793   if (is_linux) {
794     # TODO(brettw) this will need to be parameterized at some point.
795     linux_configs = [
796       "//build/config/linux:glib",
797     ]
798     if (toolkit_uses_gtk) {
799       linux_configs += [ "//build/config/linux:gtk" ]
800     }
802     configs += linux_configs
803     all_dependent_configs = linux_configs
805     if (!is_android) {
806       # These dependencies are not required on Android, and in the case
807       # of xdg_mime must be excluded due to licensing restrictions.
808       deps += [
809         "//base/third_party/symbolize",
810         "//base/third_party/xdg_mime",
811         "//base/third_party/xdg_user_dirs",
812       ]
813     }
814   } else {
815     # Non-Linux.
816     sources -= [
817       "nix/mime_util_xdg.cc",
818       "nix/mime_util_xdg.h",
819       "nix/xdg_util.cc",
820       "nix/xdg_util.h",
821     ]
822   }
824   if (!use_glib) {
825     sources -= [
826       "message_loop/message_pump_glib.cc",
827       "message_loop/message_pump_glib.h",
828     ]
829   }
830   if (!toolkit_uses_gtk) {
831     sources -= [
832       "message_loop/message_pump_gtk.cc",
833       "message_loop/message_pump_gtk.h",
834     ]
835   }
838 # This is the subset of files from base that should not be used with a dynamic
839 # library. Note that this library cannot depend on base because base depends on
840 # base_static.
841 source_set("base_static") {
842   sources = [
843     "base_switches.cc",
844     "base_switches.h",
845     "win/pe_image.cc",
846     "win/pe_image.h",
847   ]
850 component("i18n") {
851   output_name = "base_i18n"
852   sources = [
853     "i18n/base_i18n_export.h",
854     "i18n/bidi_line_iterator.cc",
855     "i18n/bidi_line_iterator.h",
856     "i18n/break_iterator.cc",
857     "i18n/break_iterator.h",
858     "i18n/case_conversion.cc",
859     "i18n/case_conversion.h",
860     "i18n/char_iterator.cc",
861     "i18n/char_iterator.h",
862     "i18n/file_util_icu.cc",
863     "i18n/file_util_icu.h",
864     "i18n/i18n_constants.cc",
865     "i18n/i18n_constants.h",
866     "i18n/icu_encoding_detection.cc",
867     "i18n/icu_encoding_detection.h",
868     "i18n/icu_string_conversions.cc",
869     "i18n/icu_string_conversions.h",
870     "i18n/icu_util.cc",
871     "i18n/icu_util.h",
872     "i18n/number_formatting.cc",
873     "i18n/number_formatting.h",
874     "i18n/rtl.cc",
875     "i18n/rtl.h",
876     "i18n/streaming_utf8_validator.cc",
877     "i18n/streaming_utf8_validator.h",
878     "i18n/string_compare.cc",
879     "i18n/string_compare.h",
880     "i18n/string_search.cc",
881     "i18n/string_search.h",
882     "i18n/time_formatting.cc",
883     "i18n/time_formatting.h",
884     "i18n/timezone.cc",
885     "i18n/timezone.h",
886     "i18n/utf8_validator_tables.cc",
887     "i18n/utf8_validator_tables.h",
888   ]
889   defines = [ "BASE_I18N_IMPLEMENTATION" ]
890   configs += [ "//build/config/compiler:wexit_time_destructors" ]
891   deps = [
892     ":base",
893     "//base/third_party/dynamic_annotations",
894     "//third_party/icu",
895   ]
897   if (toolkit_uses_gtk) {
898     # i18n/rtl.cc uses gtk
899     configs += [ "//build/config/linux:gtk" ]
900   }
902   #'conditions': [
903   #  ['OS == "win"', {
904   #    # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
905   #    'msvs_disabled_warnings': [
906   #      4267,
907   #    ],
908   #  }],
909   #],
910   #'variables': {
911   #  'optimize': 'max',
912   #},
915 if (is_android) {
916   generate_jni("base_jni_headers") {
917     sources = [
918       "android/java/src/org/chromium/base/ApplicationStatus.java",
919       "android/java/src/org/chromium/base/BuildInfo.java",
920       "android/java/src/org/chromium/base/CommandLine.java",
921       "android/java/src/org/chromium/base/ContentUriUtils.java",
922       "android/java/src/org/chromium/base/CpuFeatures.java",
923       "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java",
924       "android/java/src/org/chromium/base/library_loader/LibraryLoader.java",
925       "android/java/src/org/chromium/base/MemoryPressureListener.java",
926       "android/java/src/org/chromium/base/JavaHandlerThread.java",
927       "android/java/src/org/chromium/base/PathService.java",
928       "android/java/src/org/chromium/base/PathUtils.java",
929       "android/java/src/org/chromium/base/PowerMonitor.java",
930       "android/java/src/org/chromium/base/SystemMessageHandler.java",
931       "android/java/src/org/chromium/base/SysUtils.java",
932       "android/java/src/org/chromium/base/ThreadUtils.java",
933       "android/java/src/org/chromium/base/TraceEvent.java",
934     ]
935     jni_package = "base"
936   }