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