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