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