Autofill: improve handling of nameless, ID-less inputs.
[chromium-blink-merge.git] / base / base.gypi
blob349308c246494cdaebba33ef337b35e2d07f9249
1 # Copyright (c) 2012 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.
6   'target_defaults': {
7     'variables': {
8       'base_target': 0,
9       'base_i18n_target': 0,
10     },
11     'target_conditions': [
12       # This part is shared between the targets defined below.
13       ['base_target==1', {
14         'sources': [
15           '../build/build_config.h',
16           'third_party/dmg_fp/dmg_fp.h',
17           'third_party/dmg_fp/g_fmt.cc',
18           'third_party/dmg_fp/dtoa_wrapper.cc',
19           'third_party/icu/icu_utf.cc',
20           'third_party/icu/icu_utf.h',
21           'third_party/nspr/prtime.cc',
22           'third_party/nspr/prtime.h',
23           'third_party/superfasthash/superfasthash.c',
24           'third_party/xdg_mime/xdgmime.h',
25           'allocator/allocator_extension.cc',
26           'allocator/allocator_extension.h',
27           'allocator/type_profiler_control.cc',
28           'allocator/type_profiler_control.h',
29           'android/application_status_listener.cc',
30           'android/application_status_listener.h',
31           'android/base_jni_registrar.cc',
32           'android/base_jni_registrar.h',
33           'android/build_info.cc',
34           'android/build_info.h',
35           'android/command_line_android.cc',
36           'android/command_line_android.h',
37           'android/content_uri_utils.cc',
38           'android/content_uri_utils.h',
39           'android/cpu_features.cc',
40           'android/event_log.cc',
41           'android/event_log.h',
42           'android/field_trial_list.cc',
43           'android/field_trial_list.h',
44           'android/fifo_utils.cc',
45           'android/fifo_utils.h',
46           'android/important_file_writer_android.cc',
47           'android/important_file_writer_android.h',
48           'android/locale_utils.h',
49           'android/locale_utils.cc',
50           'android/scoped_java_ref.cc',
51           'android/scoped_java_ref.h',
52           'android/jni_android.cc',
53           'android/jni_android.h',
54           'android/jni_array.cc',
55           'android/jni_array.h',
56           'android/jni_registrar.cc',
57           'android/jni_registrar.h',
58           'android/jni_string.cc',
59           'android/jni_string.h',
60           'android/jni_utils.cc',
61           'android/jni_utils.h',
62           'android/jni_weak_ref.cc',
63           'android/jni_weak_ref.h',
64           'android/library_loader/library_loader_hooks.cc',
65           'android/library_loader/library_loader_hooks.h',
66           'android/library_loader/library_load_from_apk_status_codes.h',
67           'android/memory_pressure_listener_android.cc',
68           'android/memory_pressure_listener_android.h',
69           'android/java_handler_thread.cc',
70           'android/java_handler_thread.h',
71           'android/path_service_android.cc',
72           'android/path_service_android.h',
73           'android/path_utils.cc',
74           'android/path_utils.h',
75           'android/sys_utils.cc',
76           'android/sys_utils.h',
77           'android/thread_utils.h',
78           'android/trace_event_binding.cc',
79           'android/trace_event_binding.h',
80           'at_exit.cc',
81           'at_exit.h',
82           'atomic_ref_count.h',
83           'atomic_sequence_num.h',
84           'atomicops.h',
85           'atomicops_internals_gcc.h',
86           'atomicops_internals_mac.h',
87           'atomicops_internals_portable.h',
88           'atomicops_internals_x86_gcc.cc',
89           'atomicops_internals_x86_gcc.h',
90           'atomicops_internals_x86_msvc.h',
91           'barrier_closure.cc',
92           'barrier_closure.h',
93           'base64.cc',
94           'base64.h',
95           'base_export.h',
96           'base_paths.cc',
97           'base_paths.h',
98           'base_paths_android.cc',
99           'base_paths_android.h',
100           'base_paths_mac.h',
101           'base_paths_mac.mm',
102           'base_paths_posix.cc',
103           'base_paths_posix.h',
104           'base_paths_win.cc',
105           'base_paths_win.h',
106           'base_switches.h',
107           'basictypes.h',
108           'big_endian.cc',
109           'big_endian.h',
110           'bind.h',
111           'bind_helpers.cc',
112           'bind_helpers.h',
113           'bind_internal.h',
114           'bind_internal_win.h',
115           'bits.h',
116           'build_time.cc',
117           'build_time.h',
118           'callback.h',
119           'callback_helpers.cc',
120           'callback_helpers.h',
121           'callback_internal.cc',
122           'callback_internal.h',
123           'callback_list.h',
124           'cancelable_callback.h',
125           'chromeos/memory_pressure_observer_chromeos.cc',
126           'chromeos/memory_pressure_observer_chromeos.h',
127           'command_line.cc',
128           'command_line.h',
129           'compiler_specific.h',
130           'containers/adapters.h',
131           'containers/hash_tables.h',
132           'containers/linked_list.h',
133           'containers/mru_cache.h',
134           'containers/scoped_ptr_hash_map.h',
135           'containers/small_map.h',
136           'containers/stack_container.h',
137           'cpu.cc',
138           'cpu.h',
139           'critical_closure.h',
140           'critical_closure_internal_ios.mm',
141           'debug/alias.cc',
142           'debug/alias.h',
143           'debug/asan_invalid_access.cc',
144           'debug/asan_invalid_access.h',
145           'debug/crash_logging.cc',
146           'debug/crash_logging.h',
147           'debug/debugger.cc',
148           'debug/debugger.h',
149           'debug/debugger_posix.cc',
150           'debug/debugger_win.cc',
151           'debug/dump_without_crashing.cc',
152           'debug/dump_without_crashing.h',
153           'debug/gdi_debug_util_win.cc',
154           'debug/gdi_debug_util_win.h',
155           # This file depends on files from the 'allocator' target,
156           # but this target does not depend on 'allocator' (see
157           # allocator.gyp for details).
158           'debug/leak_annotations.h',
159           'debug/leak_tracker.h',
160           'debug/proc_maps_linux.cc',
161           'debug/proc_maps_linux.h',
162           'debug/profiler.cc',
163           'debug/profiler.h',
164           'debug/stack_trace.cc',
165           'debug/stack_trace.h',
166           'debug/stack_trace_android.cc',
167           'debug/stack_trace_posix.cc',
168           'debug/stack_trace_win.cc',
169           'debug/task_annotator.cc',
170           'debug/task_annotator.h',
171           'debug/trace_event.h',
172           'debug/trace_event_android.cc',
173           'debug/trace_event_argument.cc',
174           'debug/trace_event_argument.h',
175           'debug/trace_event_impl.cc',
176           'debug/trace_event_impl.h',
177           'debug/trace_event_impl_constants.cc',
178           'debug/trace_event_synthetic_delay.cc',
179           'debug/trace_event_synthetic_delay.h',
180           'debug/trace_event_system_stats_monitor.cc',
181           'debug/trace_event_memory.cc',
182           'debug/trace_event_memory.h',
183           'debug/trace_event_win.cc',
184           'deferred_sequenced_task_runner.cc',
185           'deferred_sequenced_task_runner.h',
186           'environment.cc',
187           'environment.h',
188           'file_descriptor_posix.h',
189           'file_version_info.h',
190           'file_version_info_mac.h',
191           'file_version_info_mac.mm',
192           'file_version_info_win.cc',
193           'file_version_info_win.h',
194           'files/dir_reader_fallback.h',
195           'files/dir_reader_linux.h',
196           'files/dir_reader_posix.h',
197           'files/file.cc',
198           'files/file.h',
199           'files/file_enumerator.cc',
200           'files/file_enumerator.h',
201           'files/file_enumerator_posix.cc',
202           'files/file_enumerator_win.cc',
203           'files/file_path.cc',
204           'files/file_path.h',
205           'files/file_path_constants.cc',
206           'files/file_path_watcher.cc',
207           'files/file_path_watcher.h',
208           'files/file_path_watcher_fsevents.cc',
209           'files/file_path_watcher_fsevents.h',
210           'files/file_path_watcher_kqueue.cc',
211           'files/file_path_watcher_kqueue.h',
212           'files/file_path_watcher_linux.cc',
213           'files/file_path_watcher_mac.cc',
214           'files/file_path_watcher_stub.cc',
215           'files/file_path_watcher_win.cc',
216           'files/file_posix.cc',
217           'files/file_proxy.cc',
218           'files/file_proxy.h',
219           'files/file_util.cc',
220           'files/file_util.h',
221           'files/file_util_android.cc',
222           'files/file_util_linux.cc',
223           'files/file_util_mac.mm',
224           'files/file_util_posix.cc',
225           'files/file_util_proxy.cc',
226           'files/file_util_proxy.h',
227           'files/file_util_win.cc',
228           'files/file_win.cc',
229           'files/important_file_writer.h',
230           'files/important_file_writer.cc',
231           'files/memory_mapped_file.cc',
232           'files/memory_mapped_file.h',
233           'files/memory_mapped_file_posix.cc',
234           'files/memory_mapped_file_win.cc',
235           'files/scoped_file.cc',
236           'files/scoped_file.h',
237           'files/scoped_temp_dir.cc',
238           'files/scoped_temp_dir.h',
239           'float_util.h',
240           'format_macros.h',
241           'gtest_prod_util.h',
242           'guid.cc',
243           'guid.h',
244           'guid_posix.cc',
245           'guid_win.cc',
246           'hash.cc',
247           'hash.h',
248           'id_map.h',
249           'ios/block_types.h',
250           'ios/device_util.h',
251           'ios/device_util.mm',
252           'ios/ios_util.h',
253           'ios/ios_util.mm',
254           'ios/scoped_critical_action.h',
255           'ios/scoped_critical_action.mm',
256           'ios/weak_nsobject.h',
257           'ios/weak_nsobject.mm',
258           'json/json_file_value_serializer.cc',
259           'json/json_file_value_serializer.h',
260           'json/json_parser.cc',
261           'json/json_parser.h',
262           'json/json_reader.cc',
263           'json/json_reader.h',
264           'json/json_string_value_serializer.cc',
265           'json/json_string_value_serializer.h',
266           'json/json_value_converter.cc',
267           'json/json_value_converter.h',
268           'json/json_writer.cc',
269           'json/json_writer.h',
270           'json/string_escape.cc',
271           'json/string_escape.h',
272           'lazy_instance.cc',
273           'lazy_instance.h',
274           'location.cc',
275           'location.h',
276           'logging.cc',
277           'logging.h',
278           'logging_win.cc',
279           'logging_win.h',
280           'mac/authorization_util.h',
281           'mac/authorization_util.mm',
282           'mac/bind_objc_block.h',
283           'mac/bundle_locations.h',
284           'mac/bundle_locations.mm',
285           'mac/close_nocancel.cc',
286           'mac/cocoa_protocols.h',
287           'mac/foundation_util.h',
288           'mac/foundation_util.mm',
289           'mac/launch_services_util.cc',
290           'mac/launch_services_util.h',
291           'mac/launchd.cc',
292           'mac/launchd.h',
293           'mac/libdispatch_task_runner.cc',
294           'mac/libdispatch_task_runner.h',
295           'mac/mac_logging.h',
296           'mac/mac_logging.cc',
297           'mac/mac_util.h',
298           'mac/mac_util.mm',
299           'mac/mach_logging.cc',
300           'mac/mach_logging.h',
301           'mac/objc_property_releaser.h',
302           'mac/objc_property_releaser.mm',
303           'mac/os_crash_dumps.cc',
304           'mac/os_crash_dumps.h',
305           'mac/scoped_aedesc.h',
306           'mac/scoped_authorizationref.h',
307           'mac/scoped_block.h',
308           'mac/scoped_cftyperef.h',
309           'mac/scoped_ioobject.h',
310           'mac/scoped_ioplugininterface.h',
311           'mac/scoped_launch_data.h',
312           'mac/scoped_mach_port.cc',
313           'mac/scoped_mach_port.h',
314           'mac/scoped_mach_vm.cc',
315           'mac/scoped_mach_vm.h',
316           'mac/scoped_nsautorelease_pool.h',
317           'mac/scoped_nsautorelease_pool.mm',
318           'mac/scoped_nsexception_enabler.h',
319           'mac/scoped_nsexception_enabler.mm',
320           'mac/scoped_nsobject.h',
321           'mac/scoped_objc_class_swizzler.h',
322           'mac/scoped_objc_class_swizzler.mm',
323           'mac/scoped_sending_event.h',
324           'mac/scoped_sending_event.mm',
325           'mac/scoped_typeref.h',
326           'mac/sdk_forward_declarations.h',
327           'mac/sdk_forward_declarations.mm',
328           'macros.h',
329           'md5.cc',
330           'md5.h',
331           'memory/aligned_memory.cc',
332           'memory/aligned_memory.h',
333           'memory/discardable_memory.cc',
334           'memory/discardable_memory.h',
335           'memory/discardable_memory_android.cc',
336           'memory/discardable_memory_emulated.cc',
337           'memory/discardable_memory_emulated.h',
338           'memory/discardable_memory_linux.cc',
339           'memory/discardable_memory_mac.cc',
340           'memory/discardable_memory_manager.cc',
341           'memory/discardable_memory_manager.h',
342           'memory/discardable_memory_shmem.cc',
343           'memory/discardable_memory_shmem.h',
344           'memory/discardable_memory_shmem_allocator.cc',
345           'memory/discardable_memory_shmem_allocator.h',
346           'memory/discardable_memory_win.cc',
347           'memory/discardable_shared_memory.cc',
348           'memory/discardable_shared_memory.h',
349           'memory/linked_ptr.h',
350           'memory/manual_constructor.h',
351           'memory/memory_pressure_listener.cc',
352           'memory/memory_pressure_listener.h',
353           'memory/raw_scoped_refptr_mismatch_checker.h',
354           'memory/ref_counted.cc',
355           'memory/ref_counted.h',
356           'memory/ref_counted_delete_on_message_loop.h',
357           'memory/ref_counted_memory.cc',
358           'memory/ref_counted_memory.h',
359           'memory/scoped_open_process.h',
360           'memory/scoped_policy.h',
361           'memory/scoped_ptr.h',
362           'memory/scoped_vector.h',
363           'memory/shared_memory.h',
364           'memory/shared_memory_android.cc',
365           'memory/shared_memory_nacl.cc',
366           'memory/shared_memory_posix.cc',
367           'memory/shared_memory_win.cc',
368           'memory/singleton.cc',
369           'memory/singleton.h',
370           'memory/weak_ptr.cc',
371           'memory/weak_ptr.h',
372           'message_loop/incoming_task_queue.cc',
373           'message_loop/incoming_task_queue.h',
374           'message_loop/message_loop.cc',
375           'message_loop/message_loop.h',
376           'message_loop/message_loop_proxy.cc',
377           'message_loop/message_loop_proxy.h',
378           'message_loop/message_loop_proxy_impl.cc',
379           'message_loop/message_loop_proxy_impl.h',
380           'message_loop/message_pump.cc',
381           'message_loop/message_pump.h',
382           'message_loop/message_pump_android.cc',
383           'message_loop/message_pump_android.h',
384           'message_loop/message_pump_default.cc',
385           'message_loop/message_pump_default.h',
386           'message_loop/message_pump_win.cc',
387           'message_loop/message_pump_win.h',
388           'message_loop/timer_slack.h',
389           'metrics/sample_map.cc',
390           'metrics/sample_map.h',
391           'metrics/sample_vector.cc',
392           'metrics/sample_vector.h',
393           'metrics/bucket_ranges.cc',
394           'metrics/bucket_ranges.h',
395           'metrics/histogram.cc',
396           'metrics/histogram.h',
397           'metrics/histogram_base.cc',
398           'metrics/histogram_base.h',
399           'metrics/histogram_delta_serialization.cc',
400           'metrics/histogram_delta_serialization.h',
401           'metrics/histogram_flattener.h',
402           'metrics/histogram_macros.h',
403           'metrics/histogram_samples.cc',
404           'metrics/histogram_samples.h',
405           'metrics/histogram_snapshot_manager.cc',
406           'metrics/histogram_snapshot_manager.h',
407           'metrics/sparse_histogram.cc',
408           'metrics/sparse_histogram.h',
409           'metrics/statistics_recorder.cc',
410           'metrics/statistics_recorder.h',
411           'metrics/stats_counters.cc',
412           'metrics/stats_counters.h',
413           'metrics/stats_table.cc',
414           'metrics/stats_table.h',
415           'metrics/user_metrics.cc',
416           'metrics/user_metrics.h',
417           'metrics/user_metrics_action.h',
418           'move.h',
419           'native_library.h',
420           'native_library_mac.mm',
421           'native_library_posix.cc',
422           'native_library_win.cc',
423           'nix/mime_util_xdg.cc',
424           'nix/mime_util_xdg.h',
425           'nix/xdg_util.cc',
426           'nix/xdg_util.h',
427           'observer_list.h',
428           'observer_list_threadsafe.h',
429           'os_compat_android.cc',
430           'os_compat_android.h',
431           'os_compat_nacl.cc',
432           'os_compat_nacl.h',
433           'path_service.cc',
434           'path_service.h',
435           'pending_task.cc',
436           'pending_task.h',
437           'pickle.cc',
438           'pickle.h',
439           'port.h',
440           'posix/eintr_wrapper.h',
441           'posix/global_descriptors.cc',
442           'posix/global_descriptors.h',
443           'posix/unix_domain_socket_linux.cc',
444           'posix/unix_domain_socket_linux.h',
445           'power_monitor/power_monitor.cc',
446           'power_monitor/power_monitor.h',
447           'power_monitor/power_monitor_device_source_android.cc',
448           'power_monitor/power_monitor_device_source_android.h',
449           'power_monitor/power_monitor_device_source_chromeos.cc',
450           'power_monitor/power_monitor_device_source.cc',
451           'power_monitor/power_monitor_device_source.h',
452           'power_monitor/power_monitor_device_source_ios.mm',
453           'power_monitor/power_monitor_device_source_mac.mm',
454           'power_monitor/power_monitor_device_source_posix.cc',
455           'power_monitor/power_monitor_device_source_win.cc',
456           'power_monitor/power_monitor_source.cc',
457           'power_monitor/power_monitor_source.h',
458           'power_monitor/power_observer.h',
459           'process/internal_linux.cc',
460           'process/internal_linux.h',
461           'process/kill.cc',
462           'process/kill.h',
463           'process/kill_mac.cc',
464           'process/kill_posix.cc',
465           'process/kill_win.cc',
466           'process/launch.cc',
467           'process/launch.h',
468           'process/launch_ios.cc',
469           'process/launch_mac.cc',
470           'process/launch_posix.cc',
471           'process/launch_win.cc',
472           'process/memory.h',
473           'process/memory.cc',
474           'process/memory_linux.cc',
475           'process/memory_mac.mm',
476           'process/memory_win.cc',
477           'process/process.h',
478           'process/process_handle_freebsd.cc',
479           'process/process_handle_linux.cc',
480           'process/process_handle_mac.cc',
481           'process/process_handle_openbsd.cc',
482           'process/process_handle_posix.cc',
483           'process/process_handle_win.cc',
484           'process/process_info.h',
485           'process/process_info_linux.cc',
486           'process/process_info_mac.cc',
487           'process/process_info_win.cc',
488           'process/process_iterator.cc',
489           'process/process_iterator.h',
490           'process/process_iterator_freebsd.cc',
491           'process/process_iterator_linux.cc',
492           'process/process_iterator_mac.cc',
493           'process/process_iterator_openbsd.cc',
494           'process/process_iterator_win.cc',
495           'process/process_linux.cc',
496           'process/process_metrics.h',
497           'process/process_metrics.cc',
498           'process/process_metrics_freebsd.cc',
499           'process/process_metrics_ios.cc',
500           'process/process_metrics_linux.cc',
501           'process/process_metrics_mac.cc',
502           'process/process_metrics_openbsd.cc',
503           'process/process_metrics_posix.cc',
504           'process/process_metrics_win.cc',
505           'process/process_posix.cc',
506           'process/process_win.cc',
507           'profiler/alternate_timer.cc',
508           'profiler/alternate_timer.h',
509           'profiler/scoped_profile.cc',
510           'profiler/scoped_profile.h',
511           'profiler/scoped_tracker.cc',
512           'profiler/scoped_tracker.h',
513           'profiler/tracked_time.cc',
514           'profiler/tracked_time.h',
515           'rand_util.cc',
516           'rand_util.h',
517           'rand_util_nacl.cc',
518           'rand_util_posix.cc',
519           'rand_util_win.cc',
520           'run_loop.cc',
521           'run_loop.h',
522           'numerics/safe_conversions.h',
523           'numerics/safe_conversions_impl.h',
524           'numerics/safe_math.h',
525           'numerics/safe_math_impl.h',
526           'safe_strerror_posix.cc',
527           'safe_strerror_posix.h',
528           'scoped_generic.h',
529           'scoped_native_library.cc',
530           'scoped_native_library.h',
531           'scoped_observer.h',
532           'sequence_checker.h',
533           'sequence_checker_impl.cc',
534           'sequence_checker_impl.h',
535           'sequenced_task_runner.cc',
536           'sequenced_task_runner.h',
537           'sequenced_task_runner_helpers.h',
538           'sha1.h',
539           'sha1_portable.cc',
540           'sha1_win.cc',
541           'single_thread_task_runner.h',
542           'stl_util.h',
543           'strings/latin1_string_conversions.cc',
544           'strings/latin1_string_conversions.h',
545           'strings/nullable_string16.cc',
546           'strings/nullable_string16.h',
547           'strings/safe_sprintf.cc',
548           'strings/safe_sprintf.h',
549           'strings/string16.cc',
550           'strings/string16.h',
551           'strings/string_number_conversions.cc',
552           'strings/string_split.cc',
553           'strings/string_split.h',
554           'strings/string_number_conversions.h',
555           'strings/string_piece.cc',
556           'strings/string_piece.h',
557           'strings/string_tokenizer.h',
558           'strings/string_util.cc',
559           'strings/string_util.h',
560           'strings/string_util_constants.cc',
561           'strings/string_util_posix.h',
562           'strings/string_util_win.h',
563           'strings/stringize_macros.h',
564           'strings/stringprintf.cc',
565           'strings/stringprintf.h',
566           'strings/sys_string_conversions.h',
567           'strings/sys_string_conversions_mac.mm',
568           'strings/sys_string_conversions_posix.cc',
569           'strings/sys_string_conversions_win.cc',
570           'strings/utf_offset_string_conversions.cc',
571           'strings/utf_offset_string_conversions.h',
572           'strings/utf_string_conversion_utils.cc',
573           'strings/utf_string_conversion_utils.h',
574           'strings/utf_string_conversions.cc',
575           'strings/utf_string_conversions.h',
576           'supports_user_data.cc',
577           'supports_user_data.h',
578           'synchronization/cancellation_flag.cc',
579           'synchronization/cancellation_flag.h',
580           'synchronization/condition_variable.h',
581           'synchronization/condition_variable_posix.cc',
582           'synchronization/condition_variable_win.cc',
583           'synchronization/lock.cc',
584           'synchronization/lock.h',
585           'synchronization/lock_impl.h',
586           'synchronization/lock_impl_posix.cc',
587           'synchronization/lock_impl_win.cc',
588           'synchronization/spin_wait.h',
589           'synchronization/waitable_event.h',
590           'synchronization/waitable_event_posix.cc',
591           'synchronization/waitable_event_watcher.h',
592           'synchronization/waitable_event_watcher_posix.cc',
593           'synchronization/waitable_event_watcher_win.cc',
594           'synchronization/waitable_event_win.cc',
595           'system_monitor/system_monitor.cc',
596           'system_monitor/system_monitor.h',
597           'sys_byteorder.h',
598           'sys_info.cc',
599           'sys_info.h',
600           'sys_info_android.cc',
601           'sys_info_chromeos.cc',
602           'sys_info_freebsd.cc',
603           'sys_info_internal.h',
604           'sys_info_ios.mm',
605           'sys_info_linux.cc',
606           'sys_info_mac.cc',
607           'sys_info_openbsd.cc',
608           'sys_info_posix.cc',
609           'sys_info_win.cc',
610           'task/cancelable_task_tracker.cc',
611           'task/cancelable_task_tracker.h',
612           'task_runner.cc',
613           'task_runner.h',
614           'task_runner_util.h',
615           'template_util.h',
616           'thread_task_runner_handle.cc',
617           'thread_task_runner_handle.h',
618           'threading/non_thread_safe.h',
619           'threading/non_thread_safe_impl.cc',
620           'threading/non_thread_safe_impl.h',
621           'threading/platform_thread.h',
622           'threading/platform_thread_android.cc',
623           'threading/platform_thread_linux.cc',
624           'threading/platform_thread_mac.mm',
625           'threading/platform_thread_posix.cc',
626           'threading/platform_thread_win.cc',
627           'threading/post_task_and_reply_impl.cc',
628           'threading/post_task_and_reply_impl.h',
629           'threading/sequenced_worker_pool.cc',
630           'threading/sequenced_worker_pool.h',
631           'threading/simple_thread.cc',
632           'threading/simple_thread.h',
633           'threading/thread.cc',
634           'threading/thread.h',
635           'threading/thread_checker.h',
636           'threading/thread_checker_impl.cc',
637           'threading/thread_checker_impl.h',
638           'threading/thread_collision_warner.cc',
639           'threading/thread_collision_warner.h',
640           'threading/thread_id_name_manager.cc',
641           'threading/thread_id_name_manager.h',
642           'threading/thread_local.h',
643           'threading/thread_local_android.cc',
644           'threading/thread_local_posix.cc',
645           'threading/thread_local_storage.cc',
646           'threading/thread_local_storage.h',
647           'threading/thread_local_storage_posix.cc',
648           'threading/thread_local_storage_win.cc',
649           'threading/thread_local_win.cc',
650           'threading/thread_restrictions.h',
651           'threading/thread_restrictions.cc',
652           'threading/watchdog.cc',
653           'threading/watchdog.h',
654           'threading/worker_pool.h',
655           'threading/worker_pool.cc',
656           'threading/worker_pool_posix.cc',
657           'threading/worker_pool_posix.h',
658           'threading/worker_pool_win.cc',
659           'time/clock.cc',
660           'time/clock.h',
661           'time/default_clock.cc',
662           'time/default_clock.h',
663           'time/default_tick_clock.cc',
664           'time/default_tick_clock.h',
665           'time/tick_clock.cc',
666           'time/tick_clock.h',
667           'time/time.cc',
668           'time/time.h',
669           'time/time_mac.cc',
670           'time/time_posix.cc',
671           'time/time_win.cc',
672           'timer/elapsed_timer.cc',
673           'timer/elapsed_timer.h',
674           'timer/hi_res_timer_manager.h',
675           'timer/hi_res_timer_manager_posix.cc',
676           'timer/hi_res_timer_manager_win.cc',
677           'timer/mock_timer.cc',
678           'timer/mock_timer.h',
679           'timer/timer.cc',
680           'timer/timer.h',
681           'tracked_objects.cc',
682           'tracked_objects.h',
683           'tracking_info.cc',
684           'tracking_info.h',
685           'tuple.h',
686           'values.cc',
687           'values.h',
688           'value_conversions.cc',
689           'value_conversions.h',
690           'version.cc',
691           'version.h',
692           'vlog.cc',
693           'vlog.h',
694           'win/enum_variant.cc',
695           'win/enum_variant.h',
696           'win/event_trace_consumer.h',
697           'win/event_trace_controller.cc',
698           'win/event_trace_controller.h',
699           'win/event_trace_provider.cc',
700           'win/event_trace_provider.h',
701           'win/i18n.cc',
702           'win/i18n.h',
703           'win/iat_patch_function.cc',
704           'win/iat_patch_function.h',
705           'win/iunknown_impl.cc',
706           'win/iunknown_impl.h',
707           'win/message_window.cc',
708           'win/message_window.h',
709           'win/metro.cc',
710           'win/metro.h',
711           'win/object_watcher.cc',
712           'win/object_watcher.h',
713           'win/registry.cc',
714           'win/registry.h',
715           'win/resource_util.cc',
716           'win/resource_util.h',
717           'win/scoped_bstr.cc',
718           'win/scoped_bstr.h',
719           'win/scoped_co_mem.h',
720           'win/scoped_com_initializer.h',
721           'win/scoped_comptr.h',
722           'win/scoped_gdi_object.h',
723           'win/scoped_handle.cc',
724           'win/scoped_handle.h',
725           'win/scoped_hdc.h',
726           'win/scoped_hglobal.h',
727           'win/scoped_process_information.cc',
728           'win/scoped_process_information.h',
729           'win/scoped_propvariant.h',
730           'win/scoped_select_object.h',
731           'win/scoped_variant.cc',
732           'win/scoped_variant.h',
733           'win/shortcut.cc',
734           'win/shortcut.h',
735           'win/startup_information.cc',
736           'win/startup_information.h',
737           'win/win_util.cc',
738           'win/win_util.h',
739           'win/windows_version.cc',
740           'win/windows_version.h',
741           'win/wrapped_window_proc.cc',
742           'win/wrapped_window_proc.h',
743         ],
744         'defines': [
745           'BASE_IMPLEMENTATION',
746         ],
747         'include_dirs': [
748           '..',
749         ],
750         'msvs_disabled_warnings': [
751           4018,
752         ],
753         'target_conditions': [
754           ['(<(desktop_linux) == 0 and <(chromeos) == 0) or >(nacl_untrusted_build)==1', {
755               'sources/': [
756                 ['exclude', '^nix/'],
757               ],
758               'sources!': [
759                 'atomicops_internals_x86_gcc.cc',
760               ],
761           }],
762           ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
763               'sources!': [
764                 'message_loop/message_pump_glib.cc',
765               ],
766           }],
767           ['(OS != "linux" and <(os_bsd) != 1 and OS != "android") or >(nacl_untrusted_build)==1', {
768               'sources!': [
769                 # Not automatically excluded by the *linux.cc rules.
770                 'linux_util.cc',
771               ],
772             },
773           ],
774           ['>(nacl_untrusted_build)==1', {
775             'sources!': [
776                'allocator/type_profiler_control.cc',
777                'allocator/type_profiler_control.h',
778                'base_paths.cc',
779                'cpu.cc',
780                'debug/stack_trace_posix.cc',
781                'files/file_enumerator_posix.cc',
782                'files/file_path_watcher_fsevents.cc',
783                'files/file_path_watcher_fsevents.h',
784                'files/file_path_watcher_kqueue.cc',
785                'files/file_path_watcher_kqueue.h',
786                'files/file_proxy.cc',
787                'files/file_util.cc',
788                'files/file_util_posix.cc',
789                'files/file_util_proxy.cc',
790                'memory/shared_memory_posix.cc',
791                'native_library_posix.cc',
792                'path_service.cc',
793                'posix/unix_domain_socket_linux.cc',
794                'process/kill_posix.cc',
795                'process/launch_posix.cc',
796                'process/process_metrics_posix.cc',
797                'process/process_posix.cc',
798                'rand_util_posix.cc',
799                'scoped_native_library.cc',
800                'files/scoped_temp_dir.cc',
801                'sys_info_posix.cc',
802                'third_party/dynamic_annotations/dynamic_annotations.c',
803             ],
804             'sources/': [
805               ['include', '^threading/platform_thread_linux\\.cc$'],
806             ],
807           }],
808           ['OS == "android" and _toolset == "target" and >(nacl_untrusted_build)==0', {
809            'sources': [
810              'memory/discardable_memory_ashmem_allocator.cc',
811              'memory/discardable_memory_ashmem_allocator.h',
812              'memory/discardable_memory_ashmem.cc',
813              'memory/discardable_memory_ashmem.h',
814            ],
815           }],
816           ['OS == "android" and >(nacl_untrusted_build)==0', {
817             'sources!': [
818               'base_paths_posix.cc',
819               'files/file_path_watcher_fsevents.cc',
820               'files/file_path_watcher_fsevents.h',
821               'files/file_path_watcher_kqueue.cc',
822               'files/file_path_watcher_kqueue.h',
823               'files/file_path_watcher_stub.cc',
824               'power_monitor/power_monitor_device_source_posix.cc',
825             ],
826             'sources/': [
827               ['include', '^debug/proc_maps_linux\\.cc$'],
828               ['include', '^files/file_path_watcher_linux\\.cc$'],
829               ['include', '^process/memory_linux\\.cc$'],
830               ['include', '^process/internal_linux\\.cc$'],
831               ['include', '^process/process_handle_linux\\.cc$'],
832               ['include', '^process/process_iterator\\.cc$'],
833               ['include', '^process/process_iterator_linux\\.cc$'],
834               ['include', '^process/process_metrics_linux\\.cc$'],
835               ['include', '^posix/unix_domain_socket_linux\\.cc$'],
836               ['include', '^strings/sys_string_conversions_posix\\.cc$'],
837               ['include', '^sys_info_linux\\.cc$'],
838               ['include', '^worker_pool_linux\\.cc$'],
839             ],
840           }],
841           ['OS == "android" and _toolset == "host" and host_os == "linux"', {
842             'defines': [
843               'OS_ANDROID_HOST=Linux',
844             ],
845             'sources/': [
846               # Pull in specific files for host builds.
847               ['include', '^atomicops_internals_x86_gcc\\.cc$'],
848               ['include', '^threading/platform_thread_linux\\.cc$'],
849             ],
850           }],
851           ['OS == "android" and <(android_webview_build)==1', {
852             'defines': [
853                # WebView builds as part of the system which already has sincos;
854                # avoid defining it again as it causes a linker warning.
855                'ANDROID_SINCOS_PROVIDED',
856             ],
857           }],
858           ['<(chromeos) == 1', {
859             'sources!': [
860               'power_monitor/power_monitor_device_source_posix.cc',
861             ],
862           }],
863           ['OS == "ios" and _toolset != "host"', {
864             'sources/': [
865               # Pull in specific Mac files for iOS (which have been filtered out
866               # by file name rules).
867               ['include', '^atomicops_internals_mac\\.'],
868               ['include', '^base_paths_mac\\.'],
869               ['include', '^files/file_util_mac\\.'],
870               ['include', '^file_version_info_mac\\.'],
871               ['include', '^mac/bundle_locations\\.'],
872               ['include', '^mac/foundation_util\\.'],
873               ['include', '^mac/mac_logging\\.'],
874               ['include', '^mac/mach_logging\\.'],
875               ['include', '^mac/objc_property_releaser\\.'],
876               ['include', '^mac/scoped_mach_port\\.'],
877               ['include', '^mac/scoped_mach_vm\\.'],
878               ['include', '^mac/scoped_nsautorelease_pool\\.'],
879               ['include', '^mac/scoped_nsobject\\.'],
880               ['include', '^memory/discardable_memory_mac\\.'],
881               ['include', '^message_loop/message_pump_mac\\.'],
882               ['include', '^strings/sys_string_conversions_mac\\.'],
883               ['include', '^threading/platform_thread_mac\\.'],
884               ['include', '^time/time_mac\\.'],
885               ['include', '^worker_pool_mac\\.'],
886               # Exclude all process/ except the minimal implementation
887               # needed on iOS (mostly for unit tests).
888               ['exclude', '^process/.*'],
889               ['include', '^process/.*_ios\.(cc|mm)$'],
890               ['include', '^process/memory_stubs\.cc$'],
891               ['include', '^process/process_handle_posix\.cc$'],
892               ['exclude', 'files/file_path_watcher_fsevents.cc'],
893               ['exclude', 'files/file_path_watcher_fsevents.h'],
894               ['include', 'files/file_path_watcher_mac.cc'],
895             ],
896             'sources': [
897               'process/memory_stubs.cc',
898             ],
899             'sources!': [
900               'message_loop/message_pump_libevent.cc'
901             ],
902           }],
903           ['OS == "ios" and _toolset == "host"', {
904             'sources/': [
905               # Copied filename_rules to switch from iOS to Mac inclusions.
906               ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
907               ['include', '(^|/)(cocoa|mac)/'],
908               ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
909               ['exclude', '(^|/)ios/'],
910               ['exclude', 'files/file_path_watcher_fsevents.cc'],
911               ['exclude', 'files/file_path_watcher_fsevents.h'],
912               ['include', 'files/file_path_watcher_mac.cc'],
913             ]
914           }],
915           # For now, just test the *BSD platforms enough to exclude them.
916           # Subsequent changes will include them further.
917           ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
918               'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
919             },
920           ],
921           ['OS != "openbsd" or >(nacl_untrusted_build)==1', {
922               'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
923             },
924           ],
925           ['OS == "win" and >(nacl_untrusted_build)==0', {
926             'include_dirs': [
927               '<(DEPTH)/third_party/wtl/include',
928             ],
929             'sources!': [
930               'event_recorder_stubs.cc',
931               'files/file_path_watcher_fsevents.cc',
932               'files/file_path_watcher_fsevents.h',
933               'files/file_path_watcher_kqueue.cc',
934               'files/file_path_watcher_kqueue.h',
935               'files/file_path_watcher_stub.cc',
936               'message_loop/message_pump_libevent.cc',
937               'posix/file_descriptor_shuffle.cc',
938               # Not using sha1_win.cc because it may have caused a
939               # regression to page cycler moz.
940               'sha1_win.cc',
941               'strings/string16.cc',
942             ],
943           },],
944           ['<(use_ozone) == 1', {
945             'sources!': [
946               'message_loop/message_pump_glib.cc',
947             ]
948           }],
949           ['OS == "linux" and >(nacl_untrusted_build)==0', {
950             'sources!': [
951               'files/file_path_watcher_fsevents.cc',
952               'files/file_path_watcher_fsevents.h',
953               'files/file_path_watcher_kqueue.cc',
954               'files/file_path_watcher_kqueue.h',
955               'files/file_path_watcher_stub.cc',
956             ],
957           }],
958           ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', {
959             'sources': [
960               'memory/discardable_memory_mach.cc',
961               'memory/discardable_memory_mach.h',
962             ],
963             'sources/': [
964               ['exclude', '^files/file_path_watcher_stub\\.cc$'],
965               ['exclude', '^base_paths_posix\\.cc$'],
966               ['exclude', '^native_library_posix\\.cc$'],
967               ['exclude', '^strings/sys_string_conversions_posix\\.cc$'],
968             ],
969           }],
970           ['<(os_bsd)==1 and >(nacl_untrusted_build)==0', {
971             'sources': [
972               'process/memory_stubs.cc',
973             ],
974             'sources/': [
975               ['exclude', '^files/file_path_watcher_linux\\.cc$'],
976               ['exclude', '^files/file_path_watcher_stub\\.cc$'],
977               ['exclude', '^files/file_util_linux\\.cc$'],
978               ['exclude', '^process/process_linux\\.cc$'],
979               ['exclude', '^sys_info_linux\\.cc$'],
980             ],
981           }],
982           # Remove all unnecessary files for build_nexe.py to avoid exceeding
983           # command-line-string limitation when building NaCl on Windows.
984           ['OS == "win" and >(nacl_untrusted_build)==1', {
985               'sources/': [ ['exclude', '\\.h$'] ],
986           }],
987           # Enable more direct string conversions on platforms with native utf8
988           # strings
989           ['OS=="mac" or OS=="ios" or <(chromeos)==1 or <(chromecast)==1', {
990             'defines': ['SYSTEM_NATIVE_UTF8'],
991           }],
992         ],
993       }],
994       ['base_i18n_target==1', {
995         'defines': [
996           'BASE_I18N_IMPLEMENTATION',
997         ],
998         'sources': [
999           'i18n/base_i18n_export.h',
1000           'i18n/bidi_line_iterator.cc',
1001           'i18n/bidi_line_iterator.h',
1002           'i18n/break_iterator.cc',
1003           'i18n/break_iterator.h',
1004           'i18n/case_conversion.cc',
1005           'i18n/case_conversion.h',
1006           'i18n/char_iterator.cc',
1007           'i18n/char_iterator.h',
1008           'i18n/file_util_icu.cc',
1009           'i18n/file_util_icu.h',
1010           'i18n/i18n_constants.cc',
1011           'i18n/i18n_constants.h',
1012           'i18n/icu_encoding_detection.cc',
1013           'i18n/icu_encoding_detection.h',
1014           'i18n/icu_string_conversions.cc',
1015           'i18n/icu_string_conversions.h',
1016           'i18n/icu_util.cc',
1017           'i18n/icu_util.h',
1018           'i18n/number_formatting.cc',
1019           'i18n/number_formatting.h',
1020           'i18n/rtl.cc',
1021           'i18n/rtl.h',
1022           'i18n/streaming_utf8_validator.cc',
1023           'i18n/streaming_utf8_validator.h',
1024           'i18n/string_compare.cc',
1025           'i18n/string_compare.h',
1026           'i18n/string_search.cc',
1027           'i18n/string_search.h',
1028           'i18n/time_formatting.cc',
1029           'i18n/time_formatting.h',
1030           'i18n/timezone.cc',
1031           'i18n/timezone.h',
1032           'i18n/utf8_validator_tables.cc',
1033           'i18n/utf8_validator_tables.h',
1034         ],
1035       }]
1036     ],
1037   },