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