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