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