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