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