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