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