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