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