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