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