Rename isSystemLocationEnabled to isLocationEnabled, as per internal review (185995).
[chromium-blink-merge.git] / base / base.gypi
blob2d27fb472f7a0390f8668e2e2d800f2051ce2d0b
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           'json/json_file_value_serializer.cc',
257           'json/json_file_value_serializer.h',
258           'json/json_parser.cc',
259           'json/json_parser.h',
260           'json/json_reader.cc',
261           'json/json_reader.h',
262           'json/json_string_value_serializer.cc',
263           'json/json_string_value_serializer.h',
264           'json/json_value_converter.h',
265           'json/json_writer.cc',
266           'json/json_writer.h',
267           'json/string_escape.cc',
268           'json/string_escape.h',
269           'lazy_instance.cc',
270           'lazy_instance.h',
271           'location.cc',
272           'location.h',
273           'logging.cc',
274           'logging.h',
275           'logging_win.cc',
276           'logging_win.h',
277           'mac/authorization_util.h',
278           'mac/authorization_util.mm',
279           'mac/bind_objc_block.h',
280           'mac/bundle_locations.h',
281           'mac/bundle_locations.mm',
282           'mac/close_nocancel.cc',
283           'mac/cocoa_protocols.h',
284           'mac/foundation_util.h',
285           'mac/foundation_util.mm',
286           'mac/launch_services_util.cc',
287           'mac/launch_services_util.h',
288           'mac/launchd.cc',
289           'mac/launchd.h',
290           'mac/libdispatch_task_runner.cc',
291           'mac/libdispatch_task_runner.h',
292           'mac/mac_logging.h',
293           'mac/mac_logging.cc',
294           'mac/mac_util.h',
295           'mac/mac_util.mm',
296           'mac/mach_logging.cc',
297           'mac/mach_logging.h',
298           'mac/objc_property_releaser.h',
299           'mac/objc_property_releaser.mm',
300           'mac/os_crash_dumps.cc',
301           'mac/os_crash_dumps.h',
302           'mac/scoped_aedesc.h',
303           'mac/scoped_authorizationref.h',
304           'mac/scoped_block.h',
305           'mac/scoped_cftyperef.h',
306           'mac/scoped_ioobject.h',
307           'mac/scoped_ioplugininterface.h',
308           'mac/scoped_launch_data.h',
309           'mac/scoped_mach_port.cc',
310           'mac/scoped_mach_port.h',
311           'mac/scoped_mach_vm.cc',
312           'mac/scoped_mach_vm.h',
313           'mac/scoped_nsautorelease_pool.h',
314           'mac/scoped_nsautorelease_pool.mm',
315           'mac/scoped_nsexception_enabler.h',
316           'mac/scoped_nsexception_enabler.mm',
317           'mac/scoped_nsobject.h',
318           'mac/scoped_objc_class_swizzler.h',
319           'mac/scoped_objc_class_swizzler.mm',
320           'mac/scoped_sending_event.h',
321           'mac/scoped_sending_event.mm',
322           'mac/scoped_typeref.h',
323           'mac/sdk_forward_declarations.h',
324           'mac/sdk_forward_declarations.mm',
325           'macros.h',
326           'md5.cc',
327           'md5.h',
328           'memory/aligned_memory.cc',
329           'memory/aligned_memory.h',
330           'memory/discardable_memory.cc',
331           'memory/discardable_memory.h',
332           'memory/discardable_memory_android.cc',
333           'memory/discardable_memory_emulated.cc',
334           'memory/discardable_memory_emulated.h',
335           'memory/discardable_memory_linux.cc',
336           'memory/discardable_memory_mac.cc',
337           'memory/discardable_memory_manager.cc',
338           'memory/discardable_memory_manager.h',
339           'memory/discardable_memory_shmem.cc',
340           'memory/discardable_memory_shmem.h',
341           'memory/discardable_memory_shmem_allocator.cc',
342           'memory/discardable_memory_shmem_allocator.h',
343           'memory/discardable_memory_win.cc',
344           'memory/discardable_shared_memory.cc',
345           'memory/discardable_shared_memory.h',
346           'memory/linked_ptr.h',
347           'memory/manual_constructor.h',
348           'memory/memory_pressure_listener.cc',
349           'memory/memory_pressure_listener.h',
350           'memory/raw_scoped_refptr_mismatch_checker.h',
351           'memory/ref_counted.cc',
352           'memory/ref_counted.h',
353           'memory/ref_counted_delete_on_message_loop.h',
354           'memory/ref_counted_memory.cc',
355           'memory/ref_counted_memory.h',
356           'memory/scoped_open_process.h',
357           'memory/scoped_policy.h',
358           'memory/scoped_ptr.h',
359           'memory/scoped_vector.h',
360           'memory/shared_memory.h',
361           'memory/shared_memory_android.cc',
362           'memory/shared_memory_nacl.cc',
363           'memory/shared_memory_posix.cc',
364           'memory/shared_memory_win.cc',
365           'memory/singleton.cc',
366           'memory/singleton.h',
367           'memory/weak_ptr.cc',
368           'memory/weak_ptr.h',
369           'message_loop/incoming_task_queue.cc',
370           'message_loop/incoming_task_queue.h',
371           'message_loop/message_loop.cc',
372           'message_loop/message_loop.h',
373           'message_loop/message_loop_proxy.cc',
374           'message_loop/message_loop_proxy.h',
375           'message_loop/message_loop_proxy_impl.cc',
376           'message_loop/message_loop_proxy_impl.h',
377           'message_loop/message_pump.cc',
378           'message_loop/message_pump.h',
379           'message_loop/message_pump_android.cc',
380           'message_loop/message_pump_android.h',
381           'message_loop/message_pump_default.cc',
382           'message_loop/message_pump_default.h',
383           'message_loop/message_pump_win.cc',
384           'message_loop/message_pump_win.h',
385           'message_loop/timer_slack.h',
386           'metrics/sample_map.cc',
387           'metrics/sample_map.h',
388           'metrics/sample_vector.cc',
389           'metrics/sample_vector.h',
390           'metrics/bucket_ranges.cc',
391           'metrics/bucket_ranges.h',
392           'metrics/histogram.cc',
393           'metrics/histogram.h',
394           'metrics/histogram_base.cc',
395           'metrics/histogram_base.h',
396           'metrics/histogram_delta_serialization.cc',
397           'metrics/histogram_delta_serialization.h',
398           'metrics/histogram_flattener.h',
399           'metrics/histogram_macros.h',
400           'metrics/histogram_samples.cc',
401           'metrics/histogram_samples.h',
402           'metrics/histogram_snapshot_manager.cc',
403           'metrics/histogram_snapshot_manager.h',
404           'metrics/sparse_histogram.cc',
405           'metrics/sparse_histogram.h',
406           'metrics/statistics_recorder.cc',
407           'metrics/statistics_recorder.h',
408           'metrics/stats_counters.cc',
409           'metrics/stats_counters.h',
410           'metrics/stats_table.cc',
411           'metrics/stats_table.h',
412           'metrics/user_metrics.cc',
413           'metrics/user_metrics.h',
414           'metrics/user_metrics_action.h',
415           'move.h',
416           'native_library.h',
417           'native_library_mac.mm',
418           'native_library_posix.cc',
419           'native_library_win.cc',
420           'nix/mime_util_xdg.cc',
421           'nix/mime_util_xdg.h',
422           'nix/xdg_util.cc',
423           'nix/xdg_util.h',
424           'observer_list.h',
425           'observer_list_threadsafe.h',
426           'os_compat_android.cc',
427           'os_compat_android.h',
428           'os_compat_nacl.cc',
429           'os_compat_nacl.h',
430           'path_service.cc',
431           'path_service.h',
432           'pending_task.cc',
433           'pending_task.h',
434           'pickle.cc',
435           'pickle.h',
436           'port.h',
437           'posix/eintr_wrapper.h',
438           'posix/global_descriptors.cc',
439           'posix/global_descriptors.h',
440           'posix/unix_domain_socket_linux.cc',
441           'posix/unix_domain_socket_linux.h',
442           'power_monitor/power_monitor.cc',
443           'power_monitor/power_monitor.h',
444           'power_monitor/power_monitor_device_source_android.cc',
445           'power_monitor/power_monitor_device_source_android.h',
446           'power_monitor/power_monitor_device_source_chromeos.cc',
447           'power_monitor/power_monitor_device_source.cc',
448           'power_monitor/power_monitor_device_source.h',
449           'power_monitor/power_monitor_device_source_ios.mm',
450           'power_monitor/power_monitor_device_source_mac.mm',
451           'power_monitor/power_monitor_device_source_posix.cc',
452           'power_monitor/power_monitor_device_source_win.cc',
453           'power_monitor/power_monitor_source.cc',
454           'power_monitor/power_monitor_source.h',
455           'power_monitor/power_observer.h',
456           'process/internal_linux.cc',
457           'process/internal_linux.h',
458           'process/kill.cc',
459           'process/kill.h',
460           'process/kill_mac.cc',
461           'process/kill_posix.cc',
462           'process/kill_win.cc',
463           'process/launch.cc',
464           'process/launch.h',
465           'process/launch_ios.cc',
466           'process/launch_mac.cc',
467           'process/launch_posix.cc',
468           'process/launch_win.cc',
469           'process/memory.h',
470           'process/memory.cc',
471           'process/memory_linux.cc',
472           'process/memory_mac.mm',
473           'process/memory_win.cc',
474           'process/process.h',
475           'process/process_handle_freebsd.cc',
476           'process/process_handle_linux.cc',
477           'process/process_handle_mac.cc',
478           'process/process_handle_openbsd.cc',
479           'process/process_handle_posix.cc',
480           'process/process_handle_win.cc',
481           'process/process_info.h',
482           'process/process_info_linux.cc',
483           'process/process_info_mac.cc',
484           'process/process_info_win.cc',
485           'process/process_iterator.cc',
486           'process/process_iterator.h',
487           'process/process_iterator_freebsd.cc',
488           'process/process_iterator_linux.cc',
489           'process/process_iterator_mac.cc',
490           'process/process_iterator_openbsd.cc',
491           'process/process_iterator_win.cc',
492           'process/process_linux.cc',
493           'process/process_metrics.h',
494           'process/process_metrics.cc',
495           'process/process_metrics_freebsd.cc',
496           'process/process_metrics_ios.cc',
497           'process/process_metrics_linux.cc',
498           'process/process_metrics_mac.cc',
499           'process/process_metrics_openbsd.cc',
500           'process/process_metrics_posix.cc',
501           'process/process_metrics_win.cc',
502           'process/process_posix.cc',
503           'process/process_win.cc',
504           'profiler/alternate_timer.cc',
505           'profiler/alternate_timer.h',
506           'profiler/scoped_profile.cc',
507           'profiler/scoped_profile.h',
508           'profiler/scoped_tracker.cc',
509           'profiler/scoped_tracker.h',
510           'profiler/tracked_time.cc',
511           'profiler/tracked_time.h',
512           'rand_util.cc',
513           'rand_util.h',
514           'rand_util_nacl.cc',
515           'rand_util_posix.cc',
516           'rand_util_win.cc',
517           'run_loop.cc',
518           'run_loop.h',
519           'numerics/safe_conversions.h',
520           'numerics/safe_conversions_impl.h',
521           'numerics/safe_math.h',
522           'numerics/safe_math_impl.h',
523           'safe_strerror_posix.cc',
524           'safe_strerror_posix.h',
525           'scoped_generic.h',
526           'scoped_native_library.cc',
527           'scoped_native_library.h',
528           'scoped_observer.h',
529           'sequence_checker.h',
530           'sequence_checker_impl.cc',
531           'sequence_checker_impl.h',
532           'sequenced_task_runner.cc',
533           'sequenced_task_runner.h',
534           'sequenced_task_runner_helpers.h',
535           'sha1.h',
536           'sha1_portable.cc',
537           'sha1_win.cc',
538           'single_thread_task_runner.h',
539           'stl_util.h',
540           'strings/latin1_string_conversions.cc',
541           'strings/latin1_string_conversions.h',
542           'strings/nullable_string16.cc',
543           'strings/nullable_string16.h',
544           'strings/safe_sprintf.cc',
545           'strings/safe_sprintf.h',
546           'strings/string16.cc',
547           'strings/string16.h',
548           'strings/string_number_conversions.cc',
549           'strings/string_split.cc',
550           'strings/string_split.h',
551           'strings/string_number_conversions.h',
552           'strings/string_piece.cc',
553           'strings/string_piece.h',
554           'strings/string_tokenizer.h',
555           'strings/string_util.cc',
556           'strings/string_util.h',
557           'strings/string_util_constants.cc',
558           'strings/string_util_posix.h',
559           'strings/string_util_win.h',
560           'strings/stringize_macros.h',
561           'strings/stringprintf.cc',
562           'strings/stringprintf.h',
563           'strings/sys_string_conversions.h',
564           'strings/sys_string_conversions_mac.mm',
565           'strings/sys_string_conversions_posix.cc',
566           'strings/sys_string_conversions_win.cc',
567           'strings/utf_offset_string_conversions.cc',
568           'strings/utf_offset_string_conversions.h',
569           'strings/utf_string_conversion_utils.cc',
570           'strings/utf_string_conversion_utils.h',
571           'strings/utf_string_conversions.cc',
572           'strings/utf_string_conversions.h',
573           'supports_user_data.cc',
574           'supports_user_data.h',
575           'synchronization/cancellation_flag.cc',
576           'synchronization/cancellation_flag.h',
577           'synchronization/condition_variable.h',
578           'synchronization/condition_variable_posix.cc',
579           'synchronization/condition_variable_win.cc',
580           'synchronization/lock.cc',
581           'synchronization/lock.h',
582           'synchronization/lock_impl.h',
583           'synchronization/lock_impl_posix.cc',
584           'synchronization/lock_impl_win.cc',
585           'synchronization/spin_wait.h',
586           'synchronization/waitable_event.h',
587           'synchronization/waitable_event_posix.cc',
588           'synchronization/waitable_event_watcher.h',
589           'synchronization/waitable_event_watcher_posix.cc',
590           'synchronization/waitable_event_watcher_win.cc',
591           'synchronization/waitable_event_win.cc',
592           'system_monitor/system_monitor.cc',
593           'system_monitor/system_monitor.h',
594           'sys_byteorder.h',
595           'sys_info.cc',
596           'sys_info.h',
597           'sys_info_android.cc',
598           'sys_info_chromeos.cc',
599           'sys_info_freebsd.cc',
600           'sys_info_internal.h',
601           'sys_info_ios.mm',
602           'sys_info_linux.cc',
603           'sys_info_mac.cc',
604           'sys_info_openbsd.cc',
605           'sys_info_posix.cc',
606           'sys_info_win.cc',
607           'task/cancelable_task_tracker.cc',
608           'task/cancelable_task_tracker.h',
609           'task_runner.cc',
610           'task_runner.h',
611           'task_runner_util.h',
612           'template_util.h',
613           'thread_task_runner_handle.cc',
614           'thread_task_runner_handle.h',
615           'threading/non_thread_safe.h',
616           'threading/non_thread_safe_impl.cc',
617           'threading/non_thread_safe_impl.h',
618           'threading/platform_thread.h',
619           'threading/platform_thread_android.cc',
620           'threading/platform_thread_linux.cc',
621           'threading/platform_thread_mac.mm',
622           'threading/platform_thread_posix.cc',
623           'threading/platform_thread_win.cc',
624           'threading/post_task_and_reply_impl.cc',
625           'threading/post_task_and_reply_impl.h',
626           'threading/sequenced_worker_pool.cc',
627           'threading/sequenced_worker_pool.h',
628           'threading/simple_thread.cc',
629           'threading/simple_thread.h',
630           'threading/thread.cc',
631           'threading/thread.h',
632           'threading/thread_checker.h',
633           'threading/thread_checker_impl.cc',
634           'threading/thread_checker_impl.h',
635           'threading/thread_collision_warner.cc',
636           'threading/thread_collision_warner.h',
637           'threading/thread_id_name_manager.cc',
638           'threading/thread_id_name_manager.h',
639           'threading/thread_local.h',
640           'threading/thread_local_android.cc',
641           'threading/thread_local_posix.cc',
642           'threading/thread_local_storage.cc',
643           'threading/thread_local_storage.h',
644           'threading/thread_local_storage_posix.cc',
645           'threading/thread_local_storage_win.cc',
646           'threading/thread_local_win.cc',
647           'threading/thread_restrictions.h',
648           'threading/thread_restrictions.cc',
649           'threading/watchdog.cc',
650           'threading/watchdog.h',
651           'threading/worker_pool.h',
652           'threading/worker_pool.cc',
653           'threading/worker_pool_posix.cc',
654           'threading/worker_pool_posix.h',
655           'threading/worker_pool_win.cc',
656           'time/clock.cc',
657           'time/clock.h',
658           'time/default_clock.cc',
659           'time/default_clock.h',
660           'time/default_tick_clock.cc',
661           'time/default_tick_clock.h',
662           'time/tick_clock.cc',
663           'time/tick_clock.h',
664           'time/time.cc',
665           'time/time.h',
666           'time/time_mac.cc',
667           'time/time_posix.cc',
668           'time/time_win.cc',
669           'timer/elapsed_timer.cc',
670           'timer/elapsed_timer.h',
671           'timer/hi_res_timer_manager.h',
672           'timer/hi_res_timer_manager_posix.cc',
673           'timer/hi_res_timer_manager_win.cc',
674           'timer/mock_timer.cc',
675           'timer/mock_timer.h',
676           'timer/timer.cc',
677           'timer/timer.h',
678           'tracked_objects.cc',
679           'tracked_objects.h',
680           'tracking_info.cc',
681           'tracking_info.h',
682           'tuple.h',
683           'values.cc',
684           'values.h',
685           'value_conversions.cc',
686           'value_conversions.h',
687           'version.cc',
688           'version.h',
689           'vlog.cc',
690           'vlog.h',
691           'win/enum_variant.cc',
692           'win/enum_variant.h',
693           'win/event_trace_consumer.h',
694           'win/event_trace_controller.cc',
695           'win/event_trace_controller.h',
696           'win/event_trace_provider.cc',
697           'win/event_trace_provider.h',
698           'win/i18n.cc',
699           'win/i18n.h',
700           'win/iat_patch_function.cc',
701           'win/iat_patch_function.h',
702           'win/iunknown_impl.cc',
703           'win/iunknown_impl.h',
704           'win/message_window.cc',
705           'win/message_window.h',
706           'win/metro.cc',
707           'win/metro.h',
708           'win/object_watcher.cc',
709           'win/object_watcher.h',
710           'win/registry.cc',
711           'win/registry.h',
712           'win/resource_util.cc',
713           'win/resource_util.h',
714           'win/scoped_bstr.cc',
715           'win/scoped_bstr.h',
716           'win/scoped_co_mem.h',
717           'win/scoped_com_initializer.h',
718           'win/scoped_comptr.h',
719           'win/scoped_gdi_object.h',
720           'win/scoped_handle.cc',
721           'win/scoped_handle.h',
722           'win/scoped_hdc.h',
723           'win/scoped_hglobal.h',
724           'win/scoped_process_information.cc',
725           'win/scoped_process_information.h',
726           'win/scoped_propvariant.h',
727           'win/scoped_select_object.h',
728           'win/scoped_variant.cc',
729           'win/scoped_variant.h',
730           'win/shortcut.cc',
731           'win/shortcut.h',
732           'win/startup_information.cc',
733           'win/startup_information.h',
734           'win/win_util.cc',
735           'win/win_util.h',
736           'win/windows_version.cc',
737           'win/windows_version.h',
738           'win/wrapped_window_proc.cc',
739           'win/wrapped_window_proc.h',
740         ],
741         'defines': [
742           'BASE_IMPLEMENTATION',
743         ],
744         'include_dirs': [
745           '..',
746         ],
747         'msvs_disabled_warnings': [
748           4018,
749         ],
750         'target_conditions': [
751           ['(<(desktop_linux) == 0 and <(chromeos) == 0) or >(nacl_untrusted_build)==1', {
752               'sources/': [
753                 ['exclude', '^nix/'],
754               ],
755               'sources!': [
756                 'atomicops_internals_x86_gcc.cc',
757               ],
758           }],
759           ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
760               'sources!': [
761                 'message_loop/message_pump_glib.cc',
762               ],
763           }],
764           ['(OS != "linux" and <(os_bsd) != 1 and OS != "android") or >(nacl_untrusted_build)==1', {
765               'sources!': [
766                 # Not automatically excluded by the *linux.cc rules.
767                 'linux_util.cc',
768               ],
769             },
770           ],
771           ['>(nacl_untrusted_build)==1', {
772             'sources!': [
773                'allocator/type_profiler_control.cc',
774                'allocator/type_profiler_control.h',
775                'base_paths.cc',
776                'cpu.cc',
777                'debug/stack_trace_posix.cc',
778                'files/file_enumerator_posix.cc',
779                'files/file_path_watcher_fsevents.cc',
780                'files/file_path_watcher_fsevents.h',
781                'files/file_path_watcher_kqueue.cc',
782                'files/file_path_watcher_kqueue.h',
783                'files/file_proxy.cc',
784                'files/file_util.cc',
785                'files/file_util_posix.cc',
786                'files/file_util_proxy.cc',
787                'memory/shared_memory_posix.cc',
788                'native_library_posix.cc',
789                'path_service.cc',
790                'posix/unix_domain_socket_linux.cc',
791                'process/kill_posix.cc',
792                'process/launch_posix.cc',
793                'process/process_metrics_posix.cc',
794                'process/process_posix.cc',
795                'rand_util_posix.cc',
796                'scoped_native_library.cc',
797                'files/scoped_temp_dir.cc',
798                'sys_info_posix.cc',
799                'third_party/dynamic_annotations/dynamic_annotations.c',
800             ],
801             'sources/': [
802               ['include', '^threading/platform_thread_linux\\.cc$'],
803             ],
804           }],
805           ['OS == "android" and _toolset == "target" and >(nacl_untrusted_build)==0', {
806            'sources': [
807              'memory/discardable_memory_ashmem_allocator.cc',
808              'memory/discardable_memory_ashmem_allocator.h',
809              'memory/discardable_memory_ashmem.cc',
810              'memory/discardable_memory_ashmem.h',
811            ],
812           }],
813           ['OS == "android" and >(nacl_untrusted_build)==0', {
814             'sources!': [
815               'base_paths_posix.cc',
816               'files/file_path_watcher_fsevents.cc',
817               'files/file_path_watcher_fsevents.h',
818               'files/file_path_watcher_kqueue.cc',
819               'files/file_path_watcher_kqueue.h',
820               'files/file_path_watcher_stub.cc',
821               'power_monitor/power_monitor_device_source_posix.cc',
822             ],
823             'sources/': [
824               ['include', '^debug/proc_maps_linux\\.cc$'],
825               ['include', '^files/file_path_watcher_linux\\.cc$'],
826               ['include', '^process/memory_linux\\.cc$'],
827               ['include', '^process/internal_linux\\.cc$'],
828               ['include', '^process/process_handle_linux\\.cc$'],
829               ['include', '^process/process_iterator\\.cc$'],
830               ['include', '^process/process_iterator_linux\\.cc$'],
831               ['include', '^process/process_metrics_linux\\.cc$'],
832               ['include', '^posix/unix_domain_socket_linux\\.cc$'],
833               ['include', '^strings/sys_string_conversions_posix\\.cc$'],
834               ['include', '^sys_info_linux\\.cc$'],
835               ['include', '^worker_pool_linux\\.cc$'],
836             ],
837           }],
838           ['OS == "android" and _toolset == "host" and host_os == "linux"', {
839             'defines': [
840               'OS_ANDROID_HOST=Linux',
841             ],
842             'sources/': [
843               # Pull in specific files for host builds.
844               ['include', '^atomicops_internals_x86_gcc\\.cc$'],
845               ['include', '^threading/platform_thread_linux\\.cc$'],
846             ],
847           }],
848           ['OS == "android" and <(android_webview_build)==1', {
849             'defines': [
850                # WebView builds as part of the system which already has sincos;
851                # avoid defining it again as it causes a linker warning.
852                'ANDROID_SINCOS_PROVIDED',
853             ],
854           }],
855           ['<(chromeos) == 1', {
856             'sources!': [
857               'power_monitor/power_monitor_device_source_posix.cc',
858             ],
859           }],
860           ['OS == "ios" and _toolset != "host"', {
861             'sources/': [
862               # Pull in specific Mac files for iOS (which have been filtered out
863               # by file name rules).
864               ['include', '^atomicops_internals_mac\\.'],
865               ['include', '^base_paths_mac\\.'],
866               ['include', '^files/file_util_mac\\.'],
867               ['include', '^file_version_info_mac\\.'],
868               ['include', '^mac/bundle_locations\\.'],
869               ['include', '^mac/foundation_util\\.'],
870               ['include', '^mac/mac_logging\\.'],
871               ['include', '^mac/mach_logging\\.'],
872               ['include', '^mac/objc_property_releaser\\.'],
873               ['include', '^mac/scoped_mach_port\\.'],
874               ['include', '^mac/scoped_mach_vm\\.'],
875               ['include', '^mac/scoped_nsautorelease_pool\\.'],
876               ['include', '^mac/scoped_nsobject\\.'],
877               ['include', '^memory/discardable_memory_mac\\.'],
878               ['include', '^message_loop/message_pump_mac\\.'],
879               ['include', '^strings/sys_string_conversions_mac\\.'],
880               ['include', '^threading/platform_thread_mac\\.'],
881               ['include', '^time/time_mac\\.'],
882               ['include', '^worker_pool_mac\\.'],
883               # Exclude all process/ except the minimal implementation
884               # needed on iOS (mostly for unit tests).
885               ['exclude', '^process/.*'],
886               ['include', '^process/.*_ios\.(cc|mm)$'],
887               ['include', '^process/memory_stubs\.cc$'],
888               ['include', '^process/process_handle_posix\.cc$'],
889               ['exclude', 'files/file_path_watcher_fsevents.cc'],
890               ['exclude', 'files/file_path_watcher_fsevents.h'],
891               ['include', 'files/file_path_watcher_mac.cc'],
892             ],
893             'sources': [
894               'process/memory_stubs.cc',
895             ],
896             'sources!': [
897               'message_loop/message_pump_libevent.cc'
898             ],
899           }],
900           ['OS == "ios" and _toolset == "host"', {
901             'sources/': [
902               # Copied filename_rules to switch from iOS to Mac inclusions.
903               ['include', '_(cocoa|mac)(_unittest)?\\.(h|cc|mm?)$'],
904               ['include', '(^|/)(cocoa|mac)/'],
905               ['exclude', '_ios(_unittest)?\\.(h|cc|mm?)$'],
906               ['exclude', '(^|/)ios/'],
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           }],
912           # For now, just test the *BSD platforms enough to exclude them.
913           # Subsequent changes will include them further.
914           ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
915               'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
916             },
917           ],
918           ['OS != "openbsd" or >(nacl_untrusted_build)==1', {
919               'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
920             },
921           ],
922           ['OS == "win" and >(nacl_untrusted_build)==0', {
923             'include_dirs': [
924               '<(DEPTH)/third_party/wtl/include',
925             ],
926             'sources!': [
927               'event_recorder_stubs.cc',
928               'files/file_path_watcher_fsevents.cc',
929               'files/file_path_watcher_fsevents.h',
930               'files/file_path_watcher_kqueue.cc',
931               'files/file_path_watcher_kqueue.h',
932               'files/file_path_watcher_stub.cc',
933               'message_loop/message_pump_libevent.cc',
934               'posix/file_descriptor_shuffle.cc',
935               # Not using sha1_win.cc because it may have caused a
936               # regression to page cycler moz.
937               'sha1_win.cc',
938               'strings/string16.cc',
939             ],
940           },],
941           ['<(use_ozone) == 1', {
942             'sources!': [
943               'message_loop/message_pump_glib.cc',
944             ]
945           }],
946           ['OS == "linux" and >(nacl_untrusted_build)==0', {
947             'sources!': [
948               'files/file_path_watcher_fsevents.cc',
949               'files/file_path_watcher_fsevents.h',
950               'files/file_path_watcher_kqueue.cc',
951               'files/file_path_watcher_kqueue.h',
952               'files/file_path_watcher_stub.cc',
953             ],
954           }],
955           ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', {
956             'sources': [
957               'memory/discardable_memory_mach.cc',
958               'memory/discardable_memory_mach.h',
959             ],
960             'sources/': [
961               ['exclude', '^files/file_path_watcher_stub\\.cc$'],
962               ['exclude', '^base_paths_posix\\.cc$'],
963               ['exclude', '^native_library_posix\\.cc$'],
964               ['exclude', '^strings/sys_string_conversions_posix\\.cc$'],
965             ],
966           }],
967           ['<(os_bsd)==1 and >(nacl_untrusted_build)==0', {
968             'sources': [
969               'process/memory_stubs.cc',
970             ],
971             'sources/': [
972               ['exclude', '^files/file_path_watcher_linux\\.cc$'],
973               ['exclude', '^files/file_path_watcher_stub\\.cc$'],
974               ['exclude', '^files/file_util_linux\\.cc$'],
975               ['exclude', '^process/process_linux\\.cc$'],
976               ['exclude', '^sys_info_linux\\.cc$'],
977             ],
978           }],
979           # Remove all unnecessary files for build_nexe.py to avoid exceeding
980           # command-line-string limitation when building NaCl on Windows.
981           ['OS == "win" and >(nacl_untrusted_build)==1', {
982               'sources/': [ ['exclude', '\\.h$'] ],
983           }],
984         ],
985       }],
986       ['base_i18n_target==1', {
987         'defines': [
988           'BASE_I18N_IMPLEMENTATION',
989         ],
990         'sources': [
991           'i18n/base_i18n_export.h',
992           'i18n/bidi_line_iterator.cc',
993           'i18n/bidi_line_iterator.h',
994           'i18n/break_iterator.cc',
995           'i18n/break_iterator.h',
996           'i18n/case_conversion.cc',
997           'i18n/case_conversion.h',
998           'i18n/char_iterator.cc',
999           'i18n/char_iterator.h',
1000           'i18n/file_util_icu.cc',
1001           'i18n/file_util_icu.h',
1002           'i18n/i18n_constants.cc',
1003           'i18n/i18n_constants.h',
1004           'i18n/icu_encoding_detection.cc',
1005           'i18n/icu_encoding_detection.h',
1006           'i18n/icu_string_conversions.cc',
1007           'i18n/icu_string_conversions.h',
1008           'i18n/icu_util.cc',
1009           'i18n/icu_util.h',
1010           'i18n/number_formatting.cc',
1011           'i18n/number_formatting.h',
1012           'i18n/rtl.cc',
1013           'i18n/rtl.h',
1014           'i18n/streaming_utf8_validator.cc',
1015           'i18n/streaming_utf8_validator.h',
1016           'i18n/string_compare.cc',
1017           'i18n/string_compare.h',
1018           'i18n/string_search.cc',
1019           'i18n/string_search.h',
1020           'i18n/time_formatting.cc',
1021           'i18n/time_formatting.h',
1022           'i18n/timezone.cc',
1023           'i18n/timezone.h',
1024           'i18n/utf8_validator_tables.cc',
1025           'i18n/utf8_validator_tables.h',
1026         ],
1027       }]
1028     ],
1029   },