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