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