Update ASan/Android runtime and setup script to LLVM r200682.
[chromium-blink-merge.git] / base / BUILD.gn
blob8e7471a5a2afd938324c7b393c3b183435b2a996
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_android.cc",
270     "memory/discardable_memory_mac.cc",
271     "memory/linked_ptr.h",
272     "memory/manual_constructor.h",
273     "memory/memory_pressure_listener.cc",
274     "memory/memory_pressure_listener.h",
275     "memory/raw_scoped_refptr_mismatch_checker.h",
276     "memory/ref_counted.cc",
277     "memory/ref_counted.h",
278     "memory/ref_counted_delete_on_message_loop.h",
279     "memory/ref_counted_memory.cc",
280     "memory/ref_counted_memory.h",
281     "memory/scoped_handle.h",
282     "memory/scoped_open_process.h",
283     "memory/scoped_policy.h",
284     "memory/scoped_ptr.h",
285     "memory/scoped_vector.h",
286     "memory/shared_memory.h",
287     "memory/shared_memory_android.cc",
288     "memory/shared_memory_nacl.cc",
289     "memory/shared_memory_posix.cc",
290     "memory/shared_memory_win.cc",
291     "memory/singleton.cc",
292     "memory/singleton.h",
293     "memory/weak_ptr.cc",
294     "memory/weak_ptr.h",
295     "message_loop/incoming_task_queue.cc",
296     "message_loop/incoming_task_queue.h",
297     "message_loop/message_loop.cc",
298     "message_loop/message_loop.h",
299     "message_loop/message_loop_proxy.cc",
300     "message_loop/message_loop_proxy.h",
301     "message_loop/message_loop_proxy_impl.cc",
302     "message_loop/message_loop_proxy_impl.h",
303     "message_loop/message_pump.cc",
304     "message_loop/message_pump.h",
305     "message_loop/message_pump_android.cc",
306     "message_loop/message_pump_android.h",
307     "message_loop/message_pump_aurax11.cc",
308     "message_loop/message_pump_aurax11.h",
309     "message_loop/message_pump_default.cc",
310     "message_loop/message_pump_default.h",
311     "message_loop/message_pump_glib.cc",
312     "message_loop/message_pump_glib.h",
313     "message_loop/message_pump_gtk.cc",
314     "message_loop/message_pump_gtk.h",
315     "message_loop/message_pump_io_ios.cc",
316     "message_loop/message_pump_io_ios.h",
317     "message_loop/message_pump_libevent.cc",
318     "message_loop/message_pump_libevent.h",
319     "message_loop/message_pump_mac.h",
320     "message_loop/message_pump_mac.mm",
321     "message_loop/message_pump_observer.h",
322     "message_loop/message_pump_ozone.cc",
323     "message_loop/message_pump_ozone.h",
324     "message_loop/message_pump_win.cc",
325     "message_loop/message_pump_win.h",
326     "message_loop/message_pump_x11.cc",
327     "message_loop/message_pump_x11.h",
328     "metrics/field_trial.cc",
329     "metrics/field_trial.h",
330     "metrics/sample_map.cc",
331     "metrics/sample_map.h",
332     "metrics/sample_vector.cc",
333     "metrics/sample_vector.h",
334     "metrics/bucket_ranges.cc",
335     "metrics/bucket_ranges.h",
336     "metrics/histogram.cc",
337     "metrics/histogram.h",
338     "metrics/histogram_base.cc",
339     "metrics/histogram_base.h",
340     "metrics/histogram_flattener.h",
341     "metrics/histogram_samples.cc",
342     "metrics/histogram_samples.h",
343     "metrics/histogram_snapshot_manager.cc",
344     "metrics/histogram_snapshot_manager.h",
345     "metrics/sparse_histogram.cc",
346     "metrics/sparse_histogram.h",
347     "metrics/statistics_recorder.cc",
348     "metrics/statistics_recorder.h",
349     "metrics/stats_counters.cc",
350     "metrics/stats_counters.h",
351     "metrics/stats_table.cc",
352     "metrics/stats_table.h",
353     "metrics/user_metrics.cc",
354     "metrics/user_metrics.h",
355     "metrics/user_metrics_action.h",
356     "move.h",
357     "native_library.h",
358     "native_library_mac.mm",
359     "native_library_posix.cc",
360     "native_library_win.cc",
361     "nix/mime_util_xdg.cc",
362     "nix/mime_util_xdg.h",
363     "nix/xdg_util.cc",
364     "nix/xdg_util.h",
365     "observer_list.h",
366     "observer_list_threadsafe.h",
367     "os_compat_android.cc",
368     "os_compat_android.h",
369     "os_compat_nacl.cc",
370     "os_compat_nacl.h",
371     "path_service.cc",
372     "path_service.h",
373     "pending_task.cc",
374     "pending_task.h",
375     "pickle.cc",
376     "pickle.h",
377     "platform_file.cc",
378     "platform_file.h",
379     "platform_file_posix.cc",
380     "platform_file_win.cc",
381     "port.h",
382     "posix/eintr_wrapper.h",
383     "posix/file_descriptor_shuffle.cc",
384     "posix/file_descriptor_shuffle.y",
385     "posix/global_descriptors.cc",
386     "posix/global_descriptors.h",
387     "posix/unix_domain_socket_linux.cc",
388     "posix/unix_domain_socket_linux.h",
389     "power_monitor/power_monitor.cc",
390     "power_monitor/power_monitor.h",
391     "power_monitor/power_monitor_device_source.cc",
392     "power_monitor/power_monitor_device_source.h",
393     "power_monitor/power_monitor_device_source_android.cc",
394     "power_monitor/power_monitor_device_source_android.h",
395     "power_monitor/power_monitor_device_source_ios.mm",
396     "power_monitor/power_monitor_device_source_mac.mm",
397     "power_monitor/power_monitor_device_source_posix.cc",
398     "power_monitor/power_monitor_device_source_win.cc",
399     "power_monitor/power_monitor_source.cc",
400     "power_monitor/power_monitor_source.h",
401     "power_monitor/power_observer.h",
402     "process/internal_linux.cc",
403     "process/internal_linux.h",
404     "process/kill.cc",
405     "process/kill.h",
406     "process/kill_mac.cc",
407     "process/kill_posix.cc",
408     "process/kill_win.cc",
409     "process/launch.cc",
410     "process/launch.h",
411     "process/launch_ios.cc",
412     "process/launch_mac.cc",
413     "process/launch_posix.cc",
414     "process/launch_win.cc",
415     "process/memory.h",
416     "process/memory_linux.cc",
417     "process/memory_mac.mm",
418     "process/memory_win.cc",
419     "process/process.h",
420     "process/process_handle_freebsd.cc",
421     "process/process_handle_linux.cc",
422     "process/process_handle_mac.cc",
423     "process/process_handle_openbsd.cc",
424     "process/process_handle_posix.cc",
425     "process/process_handle_win.cc",
426     "process/process_info.h",
427     "process/process_info_mac.cc",
428     "process/process_info_win.cc",
429     "process/process_iterator.cc",
430     "process/process_iterator.h",
431     "process/process_iterator_freebsd.cc",
432     "process/process_iterator_linux.cc",
433     "process/process_iterator_mac.cc",
434     "process/process_iterator_openbsd.cc",
435     "process/process_iterator_win.cc",
436     "process/process_linux.cc",
437     "process/process_metrics.h",
438     "process/process_metrics_freebsd.cc",
439     "process/process_metrics_ios.cc",
440     "process/process_metrics_linux.cc",
441     "process/process_metrics_mac.cc",
442     "process/process_metrics_openbsd.cc",
443     "process/process_metrics_posix.cc",
444     "process/process_metrics_win.cc",
445     "process/process_posix.cc",
446     "process/process_util.h",
447     "process/process_win.cc",
448     "profiler/scoped_profile.cc",
449     "profiler/scoped_profile.h",
450     "profiler/alternate_timer.cc",
451     "profiler/alternate_timer.h",
452     "profiler/tracked_time.cc",
453     "profiler/tracked_time.h",
454     "rand_util.cc",
455     "rand_util.h",
456     "rand_util_nacl.cc",
457     "rand_util_posix.cc",
458     "rand_util_win.cc",
459     "run_loop.cc",
460     "run_loop.h",
461     "safe_numerics.h",
462     "safe_strerror_posix.cc",
463     "safe_strerror_posix.h",
464     "scoped_native_library.cc",
465     "scoped_native_library.h",
466     "sequence_checker.h",
467     "sequence_checker_impl.cc",
468     "sequence_checker_impl.h",
469     "sequenced_task_runner.cc",
470     "sequenced_task_runner.h",
471     "sequenced_task_runner_helpers.h",
472     "sha1.h",
473     "sha1_portable.cc",
474     "sha1_win.cc",
475     "single_thread_task_runner.h",
476     "stl_util.h",
477     "strings/latin1_string_conversions.cc",
478     "strings/latin1_string_conversions.h",
479     "strings/nullable_string16.cc",
480     "strings/nullable_string16.h",
481     "strings/string16.cc",
482     "strings/string16.h",
483     "strings/string_number_conversions.cc",
484     "strings/string_split.cc",
485     "strings/string_split.h",
486     "strings/string_number_conversions.h",
487     "strings/string_piece.cc",
488     "strings/string_piece.h",
489     "strings/string_tokenizer.h",
490     "strings/string_util.cc",
491     "strings/string_util.h",
492     "strings/string_util_constants.cc",
493     "strings/string_util_posix.h",
494     "strings/string_util_win.h",
495     "strings/stringize_macros.h",
496     "strings/stringprintf.cc",
497     "strings/stringprintf.h",
498     "strings/sys_string_conversions.h",
499     "strings/sys_string_conversions_mac.mm",
500     "strings/sys_string_conversions_posix.cc",
501     "strings/sys_string_conversions_win.cc",
502     "strings/utf_offset_string_conversions.cc",
503     "strings/utf_offset_string_conversions.h",
504     "strings/utf_string_conversion_utils.cc",
505     "strings/utf_string_conversion_utils.h",
506     "strings/utf_string_conversions.cc",
507     "strings/utf_string_conversions.h",
508     "supports_user_data.cc",
509     "supports_user_data.h",
510     "sync_socket.h",
511     "sync_socket_posix.cc",
512     "sync_socket_win.cc",
513     "synchronization/cancellation_flag.cc",
514     "synchronization/cancellation_flag.h",
515     "synchronization/condition_variable.h",
516     "synchronization/condition_variable_posix.cc",
517     "synchronization/condition_variable_win.cc",
518     "synchronization/lock.cc",
519     "synchronization/lock.h",
520     "synchronization/lock_impl.h",
521     "synchronization/lock_impl_posix.cc",
522     "synchronization/lock_impl_win.cc",
523     "synchronization/spin_wait.h",
524     "synchronization/waitable_event.h",
525     "synchronization/waitable_event_posix.cc",
526     "synchronization/waitable_event_watcher.h",
527     "synchronization/waitable_event_watcher_posix.cc",
528     "synchronization/waitable_event_watcher_win.cc",
529     "synchronization/waitable_event_win.cc",
530     "system_monitor/system_monitor.cc",
531     "system_monitor/system_monitor.h",
532     "sys_byteorder.h",
533     "sys_info.cc",
534     "sys_info.h",
535     "sys_info_android.cc",
536     "sys_info_chromeos.cc",
537     "sys_info_freebsd.cc",
538     "sys_info_ios.mm",
539     "sys_info_linux.cc",
540     "sys_info_mac.cc",
541     "sys_info_openbsd.cc",
542     "sys_info_posix.cc",
543     "sys_info_win.cc",
544     "task_runner.cc",
545     "task_runner.h",
546     "task_runner_util.h",
547     "template_util.h",
548     "thread_task_runner_handle.cc",
549     "thread_task_runner_handle.h",
550     "threading/non_thread_safe.h",
551     "threading/non_thread_safe_impl.cc",
552     "threading/non_thread_safe_impl.h",
553     "threading/platform_thread.h",
554     "threading/platform_thread_android.cc",
555     "threading/platform_thread_linux.cc",
556     "threading/platform_thread_mac.mm",
557     "threading/platform_thread_posix.cc",
558     "threading/platform_thread_win.cc",
559     "threading/post_task_and_reply_impl.cc",
560     "threading/post_task_and_reply_impl.h",
561     "threading/sequenced_worker_pool.cc",
562     "threading/sequenced_worker_pool.h",
563     "threading/simple_thread.cc",
564     "threading/simple_thread.h",
565     "threading/thread.cc",
566     "threading/thread.h",
567     "threading/thread_checker.h",
568     "threading/thread_checker_impl.cc",
569     "threading/thread_checker_impl.h",
570     "threading/thread_collision_warner.cc",
571     "threading/thread_collision_warner.h",
572     "threading/thread_id_name_manager.cc",
573     "threading/thread_id_name_manager.h",
574     "threading/thread_local.h",
575     "threading/thread_local_posix.cc",
576     "threading/thread_local_storage.cc",
577     "threading/thread_local_storage.h",
578     "threading/thread_local_storage_posix.cc",
579     "threading/thread_local_storage_win.cc",
580     "threading/thread_local_win.cc",
581     "threading/thread_restrictions.h",
582     "threading/thread_restrictions.cc",
583     "threading/watchdog.cc",
584     "threading/watchdog.h",
585     "threading/worker_pool.h",
586     "threading/worker_pool.cc",
587     "threading/worker_pool_posix.cc",
588     "threading/worker_pool_posix.h",
589     "threading/worker_pool_win.cc",
590     "time/clock.cc",
591     "time/clock.h",
592     "time/default_clock.cc",
593     "time/default_clock.h",
594     "time/default_tick_clock.cc",
595     "time/default_tick_clock.h",
596     "time/tick_clock.cc",
597     "time/tick_clock.h",
598     "time/time.cc",
599     "time/time.h",
600     "time/time_mac.cc",
601     "time/time_posix.cc",
602     "time/time_win.cc",
603     "timer/elapsed_timer.cc",
604     "timer/elapsed_timer.h",
605     "timer/hi_res_timer_manager.h",
606     "timer/hi_res_timer_manager_posix.cc",
607     "timer/hi_res_timer_manager_win.cc",
608     "timer/timer.cc",
609     "timer/timer.h",
610     "tracked_objects.cc",
611     "tracked_objects.h",
612     "tracking_info.cc",
613     "tracking_info.h",
614     "tuple.h",
615     "values.cc",
616     "values.h",
617     "value_conversions.cc",
618     "value_conversions.h",
619     "version.cc",
620     "version.h",
621     "vlog.cc",
622     "vlog.h",
623     "win/enum_variant.cc",
624     "win/enum_variant.h",
625     "win/event_trace_consumer.h",
626     "win/event_trace_controller.cc",
627     "win/event_trace_controller.h",
628     "win/event_trace_provider.cc",
629     "win/event_trace_provider.h",
630     "win/i18n.cc",
631     "win/i18n.h",
632     "win/iat_patch_function.cc",
633     "win/iat_patch_function.h",
634     "win/iunknown_impl.cc",
635     "win/iunknown_impl.h",
636     "win/message_window.cc",
637     "win/message_window.h",
638     "win/metro.cc",
639     "win/metro.h",
640     "win/object_watcher.cc",
641     "win/object_watcher.h",
642     "win/registry.cc",
643     "win/registry.h",
644     "win/resource_util.cc",
645     "win/resource_util.h",
646     "win/scoped_bstr.cc",
647     "win/scoped_bstr.h",
648     "win/scoped_co_mem.h",
649     "win/scoped_com_initializer.h",
650     "win/scoped_comptr.h",
651     "win/scoped_gdi_object.h",
652     "win/scoped_handle.cc",
653     "win/scoped_handle.h",
654     "win/scoped_hdc.h",
655     "win/scoped_hglobal.h",
656     "win/scoped_process_information.cc",
657     "win/scoped_process_information.h",
658     "win/scoped_propvariant.h",
659     "win/scoped_select_object.h",
660     "win/scoped_variant.cc",
661     "win/scoped_variant.h",
662     "win/shortcut.cc",
663     "win/shortcut.h",
664     "win/startup_information.cc",
665     "win/startup_information.h",
666     "win/text_services_message_filter.cc",
667     "win/text_services_message_filter.h",
668     "win/win_util.cc",
669     "win/win_util.h",
670     "win/windows_version.cc",
671     "win/windows_version.h",
672     "win/wrapped_window_proc.cc",
673     "win/wrapped_window_proc.h",
674   ]
676   # TODO(brettw) I don't understand the conditions this file is used.
677   sources -= [ "files/file_path_watcher_stub.cc" ]
679   sources -= [
680     # TODO(brettw) do these properly.
681     "message_loop/message_pump_aurax11.cc",
682     "message_loop/message_pump_aurax11.h",
683     "message_loop/message_pump_ozone.cc",
684     "message_loop/message_pump_ozone.h",
686     "process/process_handle_freebsd.cc",
687     "process/process_handle_openbsd.cc",
688     "process/process_iterator_freebsd.cc",
689     "process/process_iterator_openbsd.cc",
690     "process/process_metrics_freebsd.cc",
691     "process/process_metrics_openbsd.cc",
692     "sys_info_freebsd.cc",
693     "sys_info_openbsd.cc",
694   ]
696   defines = [
697     "BASE_IMPLEMENTATION",
698   ]
700   deps = [
701     ":base_static",
702     "//base/allocator:allocator_extension_thunks",
703     "//base/third_party/dynamic_annotations",
704     "//base/third_party/nspr",
705     "//third_party/modp_b64",
706   ]
708   libs = []
710   if (!is_chromeos) {
711     sources -= [
712       "sys_info_chromeos.cc",
713     ]
714   }
716   if (is_nacl) {
717     # These things would otherwise be built on a Posix build but aren't
718     # supported on NaCl.
719     sources -= [
720       "debug/stack_trace_posix.cc",
721       "files/file_enumerator_posix.cc",
722       "file_util_posix.cc",
723       "message_loop/message_pump_libevent.cc",
724       "process/kill_posix.cc",
725       "process/launch_posix.cc",
726       "process/process_metrics_posix.cc",
727       "process/process_posix.cc",
728       "metrics/field_trial.cc",
729       "native_library_posix.cc",
730       "memory/shared_memory_posix.cc",
731       "sync_socket_posix.cc",
732       "sys_info_posix.cc",
733     ]
734   } else {
735     # Remove nacl stuff.
736     sources -= [
737       "os_compat_nacl.cc",
738       "os_compat_nacl.h",
739       "rand_util_nacl.cc",
740       "memory/shared_memory_nacl.cc",
741     ]
742   }
744   # Windows.
745   if (is_win) {
746     sources -= [
747       "message_loop/message_pump_libevent.cc",
748       "strings/string16.cc",
749       # Not using sha1_win.cc because it may have caused a
750       # regression to page cycler moz.
751       "sha1_win.cc",
752     ]
754     if (is_component_build) {
755       sources -= [ "debug/debug_on_start_win.cc" ]
756     }
757   } else if (!is_nacl) {
758     # Non-Windows.
759     deps += [ "//third_party/libevent" ]
760     libs += [ "dl" ]
761   }
763   # Mac.
764   if (is_mac) {
765     sources -= [
766       "base_paths_posix.cc",
767       "native_library_posix.cc",
768       "strings/sys_string_conversions_posix.cc",
769     ]
770     deps += [ "//third_party/mach_override" ]
771     libs += [
772       "AppKit.framework",
773       "ApplicationServices.framework",
774       "Carbon.framework",
775       "CoreFoundation.framework",
776       "Foundation.framework",
777       "IOKit.framework",
778       "Security.framework",
779     ]
780   } else {
781     # Non-Mac.
782     sources -= [ "files/file_path_watcher_kqueue.cc" ]
783   }
785   # IOS.
786   if (is_ios) {
787     libs += [
788       "CoreFoundation.framework",
789       "CoreGraphics.framework",
790       "CoreText.framework",
791       "Foundation.framework",
792       "UIKit.framework",
793     ]
794   }
796   # Linux.
797   if (is_linux) {
798     # TODO(brettw) these will need to be parameterized at some point.
799     linux_configs = [
800       "//build/config/linux:glib",
801       "//build/config/linux:gtk",
802       "//build/config/linux:x11",
803     ]
804     configs += linux_configs
805     all_dependent_configs = linux_configs
807     if (!is_android) {
808       # These dependencies are not required on Android, and in the case
809       # of xdg_mime must be excluded due to licensing restrictions.
810       deps += [
811         "//base/third_party/symbolize",
812         "//base/third_party/xdg_mime",
813         "//base/third_party/xdg_user_dirs",
814       ]
815     }
816   } else {
817     # Non-Linux.
818     sources -= [
819       "message_loop/message_pump_glib.cc",
820       "message_loop/message_pump_glib.h",
821       "message_loop/message_pump_gtk.cc",
822       "message_loop/message_pump_gtk.h",
823       "nix/mime_util_xdg.cc",
824       "nix/mime_util_xdg.h",
825       "nix/xdg_util.cc",
826       "nix/xdg_util.h",
827     ]
828   }
831 # This is the subset of files from base that should not be used with a dynamic
832 # library. Note that this library cannot depend on base because base depends on
833 # base_static.
834 static_library("base_static") {
835   external = true
836   sources = [
837     "base_switches.cc",
838     "base_switches.h",
839     "win/pe_image.cc",
840     "win/pe_image.h",
841   ]
844 component("base_i18n") {
845   external = true
846   sources = [
847     "i18n/base_i18n_export.h",
848     "i18n/bidi_line_iterator.cc",
849     "i18n/bidi_line_iterator.h",
850     "i18n/break_iterator.cc",
851     "i18n/break_iterator.h",
852     "i18n/char_iterator.cc",
853     "i18n/char_iterator.h",
854     "i18n/case_conversion.cc",
855     "i18n/case_conversion.h",
856     "i18n/file_util_icu.cc",
857     "i18n/file_util_icu.h",
858     "i18n/icu_encoding_detection.cc",
859     "i18n/icu_encoding_detection.h",
860     "i18n/icu_string_conversions.cc",
861     "i18n/icu_string_conversions.h",
862     "i18n/icu_util.cc",
863     "i18n/icu_util.h",
864     "i18n/number_formatting.cc",
865     "i18n/number_formatting.h",
866     "i18n/rtl.cc",
867     "i18n/rtl.h",
868     "i18n/string_compare.cc",
869     "i18n/string_compare.h",
870     "i18n/string_search.cc",
871     "i18n/string_search.h",
872     "i18n/time_formatting.cc",
873     "i18n/time_formatting.h",
874   ]
875   defines = [ "BASE_I18N_IMPLEMENTATION" ]
876   configs += [ "//build/config/compiler:wexit_time_destructors" ]
877   deps = [
878     ":base",
879     "//base/third_party/dynamic_annotations",
880     "//third_party/icu:icui18n",
881     "//third_party/icu:icuuc",
882   ]
884   if (toolkit_uses_gtk) {
885     # i18n/rtl.cc uses gtk
886     configs += [ "//build/config/linux:gtk" ]
887   }
889   #'conditions': [
890   #  ['OS == "win"', {
891   #    # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
892   #    'msvs_disabled_warnings': [
893   #      4267,
894   #    ],
895   #  }],
896   #],
897   #'variables': {
898   #  'optimize': 'max',
899   #},