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