Release the Settings API.
[chromium-blink-merge.git] / base / BUILD.gn
blob44f8abc1c24a5753a181db678e7bff828d17017c
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   sources = [
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_posix.cc",
126     "debug/stack_trace_win.cc",
127     "debug/trace_event.h",
128     "debug/trace_event_android.cc",
129     "debug/trace_event_impl.cc",
130     "debug/trace_event_impl.h",
131     "debug/trace_event_impl_constants.cc",
132     "debug/trace_event_memory.cc",
133     "debug/trace_event_memory.h",
134     "debug/trace_event_synthetic_delay.cc",
135     "debug/trace_event_synthetic_delay.h",
136     "debug/trace_event_win.cc",
137     "deferred_sequenced_task_runner.cc",
138     "deferred_sequenced_task_runner.h",
139     "environment.cc",
140     "environment.h",
141     "file_descriptor_posix.h",
142     "file_util.cc",
143     "file_util.h",
144     "file_util_android.cc",
145     "file_util_linux.cc",
146     "file_util_mac.mm",
147     "file_util_posix.cc",
148     "file_util_win.cc",
149     "file_version_info.h",
150     "file_version_info_mac.h",
151     "file_version_info_mac.mm",
152     "file_version_info_win.cc",
153     "file_version_info_win.h",
154     "files/dir_reader_fallback.h",
155     "files/dir_reader_linux.h",
156     "files/dir_reader_posix.h",
157     "files/file.cc",
158     "files/file_posix.cc",
159     "files/file_win.cc",
160     "files/file_enumerator.cc",
161     "files/file_enumerator.h",
162     "files/file_enumerator_posix.cc",
163     "files/file_enumerator_win.cc",
164     "files/file_path.cc",
165     "files/file_path.h",
166     "files/file_path_constants.cc",
167     "files/file_path_watcher.cc",
168     "files/file_path_watcher.h",
169     "files/file_path_watcher_kqueue.cc",
170     "files/file_path_watcher_linux.cc",
171     "files/file_path_watcher_stub.cc",
172     "files/file_path_watcher_win.cc",
173     "files/file_util_proxy.cc",
174     "files/file_util_proxy.h",
175     "files/important_file_writer.cc",
176     "files/important_file_writer.h",
177     "files/memory_mapped_file.cc",
178     "files/memory_mapped_file.h",
179     "files/memory_mapped_file_posix.cc",
180     "files/memory_mapped_file_win.cc",
181     "files/scoped_file.cc",
182     "files/scoped_file.h",
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_emulated.cc",
274     "memory/discardable_memory_emulated.h",
275     "memory/discardable_memory_linux.cc",
276     "memory/discardable_memory_mac.cc",
277     "memory/discardable_memory_malloc.cc",
278     "memory/discardable_memory_malloc.h",
279     "memory/discardable_memory_manager.cc",
280     "memory/discardable_memory_manager.h",
281     "memory/discardable_memory_win.cc",
282     "memory/linked_ptr.h",
283     "memory/manual_constructor.h",
284     "memory/memory_pressure_listener.cc",
285     "memory/memory_pressure_listener.h",
286     "memory/raw_scoped_refptr_mismatch_checker.h",
287     "memory/ref_counted.cc",
288     "memory/ref_counted.h",
289     "memory/ref_counted_delete_on_message_loop.h",
290     "memory/ref_counted_memory.cc",
291     "memory/ref_counted_memory.h",
292     "memory/scoped_handle.h",
293     "memory/scoped_open_process.h",
294     "memory/scoped_policy.h",
295     "memory/scoped_ptr.h",
296     "memory/scoped_vector.h",
297     "memory/shared_memory.h",
298     "memory/shared_memory_android.cc",
299     "memory/shared_memory_nacl.cc",
300     "memory/shared_memory_posix.cc",
301     "memory/shared_memory_win.cc",
302     "memory/singleton.cc",
303     "memory/singleton.h",
304     "memory/weak_ptr.cc",
305     "memory/weak_ptr.h",
306     "message_loop/incoming_task_queue.cc",
307     "message_loop/incoming_task_queue.h",
308     "message_loop/message_loop.cc",
309     "message_loop/message_loop.h",
310     "message_loop/message_loop_proxy.cc",
311     "message_loop/message_loop_proxy.h",
312     "message_loop/message_loop_proxy_impl.cc",
313     "message_loop/message_loop_proxy_impl.h",
314     "message_loop/message_pump.cc",
315     "message_loop/message_pump.h",
316     "message_loop/message_pump_android.cc",
317     "message_loop/message_pump_android.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     "numerics/safe_conversions.h",
371     "numerics/safe_conversions_impl.h",
372     "numerics/safe_math.h",
373     "numerics/safe_math_impl.h",
374     "nix/mime_util_xdg.cc",
375     "nix/mime_util_xdg.h",
376     "nix/xdg_util.cc",
377     "nix/xdg_util.h",
378     "observer_list.h",
379     "observer_list_threadsafe.h",
380     "os_compat_android.cc",
381     "os_compat_android.h",
382     "os_compat_nacl.cc",
383     "os_compat_nacl.h",
384     "path_service.cc",
385     "path_service.h",
386     "pending_task.cc",
387     "pending_task.h",
388     "pickle.cc",
389     "pickle.h",
390     "platform_file.cc",
391     "platform_file.h",
392     "platform_file_posix.cc",
393     "platform_file_win.cc",
394     "port.h",
395     "posix/eintr_wrapper.h",
396     "posix/file_descriptor_shuffle.cc",
397     "posix/global_descriptors.cc",
398     "posix/global_descriptors.h",
399     "posix/unix_domain_socket_linux.cc",
400     "posix/unix_domain_socket_linux.h",
401     "power_monitor/power_monitor.cc",
402     "power_monitor/power_monitor.h",
403     "power_monitor/power_monitor_device_source.cc",
404     "power_monitor/power_monitor_device_source.h",
405     "power_monitor/power_monitor_device_source_android.cc",
406     "power_monitor/power_monitor_device_source_android.h",
407     "power_monitor/power_monitor_device_source_ios.mm",
408     "power_monitor/power_monitor_device_source_mac.mm",
409     "power_monitor/power_monitor_device_source_posix.cc",
410     "power_monitor/power_monitor_device_source_win.cc",
411     "power_monitor/power_monitor_source.cc",
412     "power_monitor/power_monitor_source.h",
413     "power_monitor/power_observer.h",
414     "process/internal_linux.cc",
415     "process/internal_linux.h",
416     "process/kill.cc",
417     "process/kill.h",
418     "process/kill_mac.cc",
419     "process/kill_posix.cc",
420     "process/kill_win.cc",
421     "process/launch.cc",
422     "process/launch.h",
423     "process/launch_ios.cc",
424     "process/launch_mac.cc",
425     "process/launch_posix.cc",
426     "process/launch_win.cc",
427     "process/memory.h",
428     "process/memory_linux.cc",
429     "process/memory_mac.mm",
430     "process/memory_win.cc",
431     "process/process.h",
432     "process/process_handle_freebsd.cc",
433     "process/process_handle_linux.cc",
434     "process/process_handle_mac.cc",
435     "process/process_handle_openbsd.cc",
436     "process/process_handle_posix.cc",
437     "process/process_handle_win.cc",
438     "process/process_info.h",
439     "process/process_info_mac.cc",
440     "process/process_info_win.cc",
441     "process/process_iterator.cc",
442     "process/process_iterator.h",
443     "process/process_iterator_freebsd.cc",
444     "process/process_iterator_linux.cc",
445     "process/process_iterator_mac.cc",
446     "process/process_iterator_openbsd.cc",
447     "process/process_iterator_win.cc",
448     "process/process_linux.cc",
449     "process/process_metrics.h",
450     "process/process_metrics_freebsd.cc",
451     "process/process_metrics_ios.cc",
452     "process/process_metrics_linux.cc",
453     "process/process_metrics_mac.cc",
454     "process/process_metrics_openbsd.cc",
455     "process/process_metrics_posix.cc",
456     "process/process_metrics_win.cc",
457     "process/process_posix.cc",
458     "process/process_win.cc",
459     "profiler/scoped_profile.cc",
460     "profiler/scoped_profile.h",
461     "profiler/alternate_timer.cc",
462     "profiler/alternate_timer.h",
463     "profiler/tracked_time.cc",
464     "profiler/tracked_time.h",
465     "rand_util.cc",
466     "rand_util.h",
467     "rand_util_nacl.cc",
468     "rand_util_posix.cc",
469     "rand_util_win.cc",
470     "run_loop.cc",
471     "run_loop.h",
472     "safe_strerror_posix.cc",
473     "safe_strerror_posix.h",
474     "scoped_generic.h",
475     "scoped_native_library.cc",
476     "scoped_native_library.h",
477     "sequence_checker.h",
478     "sequence_checker_impl.cc",
479     "sequence_checker_impl.h",
480     "sequenced_task_runner.cc",
481     "sequenced_task_runner.h",
482     "sequenced_task_runner_helpers.h",
483     "sha1.h",
484     "sha1_portable.cc",
485     "sha1_win.cc",
486     "single_thread_task_runner.h",
487     "stl_util.h",
488     "strings/latin1_string_conversions.cc",
489     "strings/latin1_string_conversions.h",
490     "strings/nullable_string16.cc",
491     "strings/nullable_string16.h",
492     "strings/string16.cc",
493     "strings/string16.h",
494     "strings/string_number_conversions.cc",
495     "strings/string_split.cc",
496     "strings/string_split.h",
497     "strings/string_number_conversions.h",
498     "strings/string_piece.cc",
499     "strings/string_piece.h",
500     "strings/string_tokenizer.h",
501     "strings/string_util.cc",
502     "strings/string_util.h",
503     "strings/string_util_constants.cc",
504     "strings/string_util_posix.h",
505     "strings/string_util_win.h",
506     "strings/stringize_macros.h",
507     "strings/stringprintf.cc",
508     "strings/stringprintf.h",
509     "strings/sys_string_conversions.h",
510     "strings/sys_string_conversions_mac.mm",
511     "strings/sys_string_conversions_posix.cc",
512     "strings/sys_string_conversions_win.cc",
513     "strings/utf_offset_string_conversions.cc",
514     "strings/utf_offset_string_conversions.h",
515     "strings/utf_string_conversion_utils.cc",
516     "strings/utf_string_conversion_utils.h",
517     "strings/utf_string_conversions.cc",
518     "strings/utf_string_conversions.h",
519     "supports_user_data.cc",
520     "supports_user_data.h",
521     "sync_socket.h",
522     "sync_socket_posix.cc",
523     "sync_socket_win.cc",
524     "synchronization/cancellation_flag.cc",
525     "synchronization/cancellation_flag.h",
526     "synchronization/condition_variable.h",
527     "synchronization/condition_variable_posix.cc",
528     "synchronization/condition_variable_win.cc",
529     "synchronization/lock.cc",
530     "synchronization/lock.h",
531     "synchronization/lock_impl.h",
532     "synchronization/lock_impl_posix.cc",
533     "synchronization/lock_impl_win.cc",
534     "synchronization/spin_wait.h",
535     "synchronization/waitable_event.h",
536     "synchronization/waitable_event_posix.cc",
537     "synchronization/waitable_event_watcher.h",
538     "synchronization/waitable_event_watcher_posix.cc",
539     "synchronization/waitable_event_watcher_win.cc",
540     "synchronization/waitable_event_win.cc",
541     "system_monitor/system_monitor.cc",
542     "system_monitor/system_monitor.h",
543     "sys_byteorder.h",
544     "sys_info.cc",
545     "sys_info.h",
546     "sys_info_android.cc",
547     "sys_info_chromeos.cc",
548     "sys_info_freebsd.cc",
549     "sys_info_ios.mm",
550     "sys_info_linux.cc",
551     "sys_info_mac.cc",
552     "sys_info_openbsd.cc",
553     "sys_info_posix.cc",
554     "sys_info_win.cc",
555     "task_runner.cc",
556     "task_runner.h",
557     "task_runner_util.h",
558     "template_util.h",
559     "thread_task_runner_handle.cc",
560     "thread_task_runner_handle.h",
561     "threading/non_thread_safe.h",
562     "threading/non_thread_safe_impl.cc",
563     "threading/non_thread_safe_impl.h",
564     "threading/platform_thread.h",
565     "threading/platform_thread_android.cc",
566     "threading/platform_thread_linux.cc",
567     "threading/platform_thread_mac.mm",
568     "threading/platform_thread_posix.cc",
569     "threading/platform_thread_win.cc",
570     "threading/post_task_and_reply_impl.cc",
571     "threading/post_task_and_reply_impl.h",
572     "threading/sequenced_worker_pool.cc",
573     "threading/sequenced_worker_pool.h",
574     "threading/simple_thread.cc",
575     "threading/simple_thread.h",
576     "threading/thread.cc",
577     "threading/thread.h",
578     "threading/thread_checker.h",
579     "threading/thread_checker_impl.cc",
580     "threading/thread_checker_impl.h",
581     "threading/thread_collision_warner.cc",
582     "threading/thread_collision_warner.h",
583     "threading/thread_id_name_manager.cc",
584     "threading/thread_id_name_manager.h",
585     "threading/thread_local.h",
586     "threading/thread_local_posix.cc",
587     "threading/thread_local_storage.cc",
588     "threading/thread_local_storage.h",
589     "threading/thread_local_storage_posix.cc",
590     "threading/thread_local_storage_win.cc",
591     "threading/thread_local_win.cc",
592     "threading/thread_restrictions.h",
593     "threading/thread_restrictions.cc",
594     "threading/watchdog.cc",
595     "threading/watchdog.h",
596     "threading/worker_pool.h",
597     "threading/worker_pool.cc",
598     "threading/worker_pool_posix.cc",
599     "threading/worker_pool_posix.h",
600     "threading/worker_pool_win.cc",
601     "time/clock.cc",
602     "time/clock.h",
603     "time/default_clock.cc",
604     "time/default_clock.h",
605     "time/default_tick_clock.cc",
606     "time/default_tick_clock.h",
607     "time/tick_clock.cc",
608     "time/tick_clock.h",
609     "time/time.cc",
610     "time/time.h",
611     "time/time_mac.cc",
612     "time/time_posix.cc",
613     "time/time_win.cc",
614     "timer/elapsed_timer.cc",
615     "timer/elapsed_timer.h",
616     "timer/hi_res_timer_manager.h",
617     "timer/hi_res_timer_manager_posix.cc",
618     "timer/hi_res_timer_manager_win.cc",
619     "timer/timer.cc",
620     "timer/timer.h",
621     "tracked_objects.cc",
622     "tracked_objects.h",
623     "tracking_info.cc",
624     "tracking_info.h",
625     "tuple.h",
626     "values.cc",
627     "values.h",
628     "value_conversions.cc",
629     "value_conversions.h",
630     "version.cc",
631     "version.h",
632     "vlog.cc",
633     "vlog.h",
634     "win/enum_variant.cc",
635     "win/enum_variant.h",
636     "win/event_trace_consumer.h",
637     "win/event_trace_controller.cc",
638     "win/event_trace_controller.h",
639     "win/event_trace_provider.cc",
640     "win/event_trace_provider.h",
641     "win/i18n.cc",
642     "win/i18n.h",
643     "win/iat_patch_function.cc",
644     "win/iat_patch_function.h",
645     "win/iunknown_impl.cc",
646     "win/iunknown_impl.h",
647     "win/message_window.cc",
648     "win/message_window.h",
649     "win/metro.cc",
650     "win/metro.h",
651     "win/object_watcher.cc",
652     "win/object_watcher.h",
653     "win/registry.cc",
654     "win/registry.h",
655     "win/resource_util.cc",
656     "win/resource_util.h",
657     "win/scoped_bstr.cc",
658     "win/scoped_bstr.h",
659     "win/scoped_co_mem.h",
660     "win/scoped_com_initializer.h",
661     "win/scoped_comptr.h",
662     "win/scoped_gdi_object.h",
663     "win/scoped_handle.cc",
664     "win/scoped_handle.h",
665     "win/scoped_hdc.h",
666     "win/scoped_hglobal.h",
667     "win/scoped_process_information.cc",
668     "win/scoped_process_information.h",
669     "win/scoped_propvariant.h",
670     "win/scoped_select_object.h",
671     "win/scoped_variant.cc",
672     "win/scoped_variant.h",
673     "win/shortcut.cc",
674     "win/shortcut.h",
675     "win/startup_information.cc",
676     "win/startup_information.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     "process/process_handle_freebsd.cc",
690     "process/process_handle_openbsd.cc",
691     "process/process_iterator_freebsd.cc",
692     "process/process_iterator_openbsd.cc",
693     "process/process_metrics_freebsd.cc",
694     "process/process_metrics_openbsd.cc",
695     "sys_info_freebsd.cc",
696     "sys_info_openbsd.cc",
697   ]
699   defines = [
700     "BASE_IMPLEMENTATION",
701   ]
703   deps = [
704     ":base_static",
705     "//base/allocator:allocator_extension_thunks",
706     "//base/third_party/dynamic_annotations",
707     "//base/third_party/nspr",
708     "//third_party/modp_b64",
709   ]
711   if (!is_chromeos) {
712     sources -= [
713       "sys_info_chromeos.cc",
714     ]
715   }
717   if (is_nacl) {
718     # These things would otherwise be built on a Posix build but aren't
719     # supported on NaCl.
720     sources -= [
721       "debug/stack_trace_posix.cc",
722       "files/file_enumerator_posix.cc",
723       "file_util_posix.cc",
724       "message_loop/message_pump_libevent.cc",
725       "process/kill_posix.cc",
726       "process/launch_posix.cc",
727       "process/process_metrics_posix.cc",
728       "process/process_posix.cc",
729       "metrics/field_trial.cc",
730       "native_library_posix.cc",
731       "memory/shared_memory_posix.cc",
732       "sync_socket_posix.cc",
733       "sys_info_posix.cc",
734     ]
735   } else {
736     # Remove nacl stuff.
737     sources -= [
738       "os_compat_nacl.cc",
739       "os_compat_nacl.h",
740       "rand_util_nacl.cc",
741       "memory/shared_memory_nacl.cc",
742     ]
743   }
745   # Windows.
746   if (is_win) {
747     sources -= [
748       "message_loop/message_pump_libevent.cc",
749       "strings/string16.cc",
750       # Not using sha1_win.cc because it may have caused a
751       # regression to page cycler moz.
752       "sha1_win.cc",
753     ]
755     if (is_component_build) {
756       sources -= [ "debug/debug_on_start_win.cc" ]
757     }
759     # Needed by win_util.h
760     libs = [ "netapi32.lib" ]
761   } else if (!is_nacl) {
762     # Non-Windows.
763     deps += [ "//third_party/libevent" ]
764   }
766   # Mac.
767   if (is_mac) {
768     sources -= [
769       "base_paths_posix.cc",
770       "native_library_posix.cc",
771       "strings/sys_string_conversions_posix.cc",
772     ]
773     deps += [ "//third_party/mach_override" ]
774   } else {
775     # Non-Mac.
776     sources -= [ "files/file_path_watcher_kqueue.cc" ]
777   }
779   # Linux.
780   if (is_linux) {
781     # TODO(brettw) this will need to be parameterized at some point.
782     linux_configs = [
783       "//build/config/linux:glib",
784     ]
785     if (toolkit_uses_gtk) {
786       linux_configs += [ "//build/config/linux:gtk" ]
787     }
788     if (use_x11) {
789       linux_configs += [
790         "//build/config/linux:x11",
791       ]
792     } else {
793       # On non-Linux platforms, the X11 files will already have been filtered
794       # out using the sources assignment filter.
795       sources -= [
796         "message_loop/message_pump_x11.cc",
797         "message_loop/message_pump_x11.h",
798       ]
799     }
801     configs += linux_configs
802     all_dependent_configs = linux_configs
804     if (!is_android) {
805       # These dependencies are not required on Android, and in the case
806       # of xdg_mime must be excluded due to licensing restrictions.
807       deps += [
808         "//base/third_party/symbolize",
809         "//base/third_party/xdg_mime",
810         "//base/third_party/xdg_user_dirs",
811       ]
812     }
813   } else {
814     # Non-Linux.
815     sources -= [
816       "nix/mime_util_xdg.cc",
817       "nix/mime_util_xdg.h",
818       "nix/xdg_util.cc",
819       "nix/xdg_util.h",
820     ]
821   }
823   if (!use_glib) {
824     sources -= [
825       "message_loop/message_pump_glib.cc",
826       "message_loop/message_pump_glib.h",
827     ]
828   }
829   if (!use_ozone) {
830     sources -= [
831       "message_loop/message_pump_ozone.cc",
832       "message_loop/message_pump_ozone.h",
833     ]
834   }
835   if (!toolkit_uses_gtk) {
836     sources -= [
837       "message_loop/message_pump_gtk.cc",
838       "message_loop/message_pump_gtk.h",
839     ]
840   }
843 # This is the subset of files from base that should not be used with a dynamic
844 # library. Note that this library cannot depend on base because base depends on
845 # base_static.
846 source_set("base_static") {
847   sources = [
848     "base_switches.cc",
849     "base_switches.h",
850     "win/pe_image.cc",
851     "win/pe_image.h",
852   ]
855 component("i18n") {
856   output_name = "base_i18n"
857   sources = [
858     "i18n/base_i18n_export.h",
859     "i18n/bidi_line_iterator.cc",
860     "i18n/bidi_line_iterator.h",
861     "i18n/break_iterator.cc",
862     "i18n/break_iterator.h",
863     "i18n/char_iterator.cc",
864     "i18n/char_iterator.h",
865     "i18n/case_conversion.cc",
866     "i18n/case_conversion.h",
867     "i18n/file_util_icu.cc",
868     "i18n/file_util_icu.h",
869     "i18n/icu_encoding_detection.cc",
870     "i18n/icu_encoding_detection.h",
871     "i18n/icu_string_conversions.cc",
872     "i18n/icu_string_conversions.h",
873     "i18n/icu_util.cc",
874     "i18n/icu_util.h",
875     "i18n/number_formatting.cc",
876     "i18n/number_formatting.h",
877     "i18n/rtl.cc",
878     "i18n/rtl.h",
879     "i18n/string_compare.cc",
880     "i18n/string_compare.h",
881     "i18n/string_search.cc",
882     "i18n/string_search.h",
883     "i18n/time_formatting.cc",
884     "i18n/time_formatting.h",
885   ]
886   defines = [ "BASE_I18N_IMPLEMENTATION" ]
887   configs += [ "//build/config/compiler:wexit_time_destructors" ]
888   deps = [
889     ":base",
890     "//base/third_party/dynamic_annotations",
891     "//third_party/icu",
892   ]
894   if (toolkit_uses_gtk) {
895     # i18n/rtl.cc uses gtk
896     configs += [ "//build/config/linux:gtk" ]
897   }
899   #'conditions': [
900   #  ['OS == "win"', {
901   #    # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
902   #    'msvs_disabled_warnings': [
903   #      4267,
904   #    ],
905   #  }],
906   #],
907   #'variables': {
908   #  'optimize': 'max',
909   #},