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