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