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