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