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