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