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