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