Revert "Revert "Revert 198403 "Move WrappedTexImage functionality to ui/gl"""
[chromium-blink-merge.git] / base / base.gypi
blob7194f24443a0da4568a25d694377e444d18252f6
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/important_file_writer_android.cc',
44           'android/important_file_writer_android.h',
45           'android/scoped_java_ref.cc',
46           'android/scoped_java_ref.h',
47           'android/jni_android.cc',
48           'android/jni_android.h',
49           'android/jni_array.cc',
50           'android/jni_array.h',
51           'android/jni_helper.cc',
52           'android/jni_helper.h',
53           'android/jni_registrar.cc',
54           'android/jni_registrar.h',
55           'android/jni_string.cc',
56           'android/jni_string.h',
57           'android/path_service_android.cc',
58           'android/path_service_android.h',
59           'android/path_utils.cc',
60           'android/path_utils.h',
61           'android/thread_utils.h',
62           'at_exit.cc',
63           'at_exit.h',
64           'atomic_ref_count.h',
65           'atomic_sequence_num.h',
66           'atomicops.h',
67           'atomicops_internals_gcc.h',
68           'atomicops_internals_mac.h',
69           'atomicops_internals_tsan.h',
70           'atomicops_internals_x86_gcc.cc',
71           'atomicops_internals_x86_gcc.h',
72           'atomicops_internals_x86_msvc.h',
73           'base_export.h',
74           'base_paths.cc',
75           'base_paths.h',
76           'base_paths_android.cc',
77           'base_paths_android.h',
78           'base_paths_mac.h',
79           'base_paths_mac.mm',
80           'base_paths_posix.cc',
81           'base_paths_posix.h',
82           'base_paths_win.cc',
83           'base_paths_win.h',
84           'base_switches.h',
85           'base64.cc',
86           'base64.h',
87           'basictypes.h',
88           'bind.h',
89           'bind_helpers.cc',
90           'bind_helpers.h',
91           'bind_internal.h',
92           'bind_internal_win.h',
93           'bits.h',
94           'build_time.cc',
95           'build_time.h',
96           'callback.h',
97           'callback_helpers.h',
98           'callback_internal.cc',
99           'callback_internal.h',
100           'cancelable_callback.h',
101           'chromeos/chromeos_version.cc',
102           'chromeos/chromeos_version.h',
103           'command_line.cc',
104           'command_line.h',
105           'compiler_specific.h',
106           'containers/linked_list.h',
107           'containers/mru_cache.h',
108           'containers/small_map.h',
109           'containers/stack_container.h',
110           'cpu.cc',
111           'cpu.h',
112           'critical_closure.h',
113           'critical_closure_ios.mm',
114           'debug/alias.cc',
115           'debug/alias.h',
116           'debug/crash_logging.cc',
117           'debug/crash_logging.h',
118           'debug/debug_on_start_win.cc',
119           'debug/debug_on_start_win.h',
120           'debug/debugger.cc',
121           'debug/debugger.h',
122           'debug/debugger_posix.cc',
123           'debug/debugger_win.cc',
124           # This file depends on files from the 'allocator' target,
125           # but this target does not depend on 'allocator' (see
126           # allocator.gyp for details).
127           'debug/leak_annotations.h',
128           'debug/leak_tracker.h',
129           'debug/profiler.cc',
130           'debug/profiler.h',
131           'debug/stack_trace.cc',
132           'debug/stack_trace.h',
133           'debug/stack_trace_android.cc',
134           'debug/stack_trace_ios.mm',
135           'debug/stack_trace_posix.cc',
136           'debug/stack_trace_win.cc',
137           'debug/trace_event.h',
138           'debug/trace_event_android.cc',
139           'debug/trace_event_impl.cc',
140           'debug/trace_event_impl.h',
141           'debug/trace_event_win.cc',
142           'deferred_sequenced_task_runner.cc',
143           'deferred_sequenced_task_runner.h',
144           'environment.cc',
145           'environment.h',
146           'file_descriptor_posix.h',
147           'file_util.cc',
148           'file_util.h',
149           'file_util_android.cc',
150           'file_util_linux.cc',
151           'file_util_mac.mm',
152           'file_util_posix.cc',
153           'file_util_win.cc',
154           'file_version_info.h',
155           'file_version_info_mac.h',
156           'file_version_info_mac.mm',
157           'file_version_info_win.cc',
158           'file_version_info_win.h',
159           'files/dir_reader_fallback.h',
160           'files/dir_reader_linux.h',
161           'files/dir_reader_posix.h',
162           'files/file_path.cc',
163           'files/file_path.h',
164           'files/file_path_watcher.cc',
165           'files/file_path_watcher.h',
166           'files/file_path_watcher_kqueue.cc',
167           'files/file_path_watcher_linux.cc',
168           'files/file_path_watcher_stub.cc',
169           'files/file_path_watcher_win.cc',
170           'files/file_util_proxy.cc',
171           'files/file_util_proxy.h',
172           'files/important_file_writer.h',
173           'files/important_file_writer.cc',
174           'files/memory_mapped_file.cc',
175           'files/memory_mapped_file.h',
176           'files/memory_mapped_file_posix.cc',
177           'files/memory_mapped_file_win.cc',
178           'files/scoped_temp_dir.cc',
179           'files/scoped_temp_dir.h',
180           'float_util.h',
181           'format_macros.h',
182           'gtest_prod_util.h',
183           'guid.cc',
184           'guid.h',
185           'guid_posix.cc',
186           'guid_win.cc',
187           'hash.cc',
188           'hash.h',
189           'hash_tables.h',
190           'hi_res_timer_manager_posix.cc',
191           'hi_res_timer_manager_win.cc',
192           'hi_res_timer_manager.h',
193           'id_map.h',
194           'ios/device_util.h',
195           'ios/device_util.mm',
196           'ios/ios_util.h',
197           'ios/ios_util.mm',
198           'ios/scoped_critical_action.h',
199           'ios/scoped_critical_action.mm',
200           'json/json_file_value_serializer.cc',
201           'json/json_file_value_serializer.h',
202           'json/json_parser.cc',
203           'json/json_parser.h',
204           'json/json_reader.cc',
205           'json/json_reader.h',
206           'json/json_string_value_serializer.cc',
207           'json/json_string_value_serializer.h',
208           'json/json_value_converter.h',
209           'json/json_writer.cc',
210           'json/json_writer.h',
211           'json/string_escape.cc',
212           'json/string_escape.h',
213           'lazy_instance.cc',
214           'lazy_instance.h',
215           'location.cc',
216           'location.h',
217           'logging.cc',
218           'logging.h',
219           'logging_win.cc',
220           'logging_win.h',
221           'mac/authorization_util.h',
222           'mac/authorization_util.mm',
223           'mac/bind_objc_block.h',
224           'mac/bundle_locations.h',
225           'mac/bundle_locations.mm',
226           'mac/cocoa_protocols.h',
227           'mac/foundation_util.h',
228           'mac/foundation_util.mm',
229           'mac/launch_services_util.cc',
230           'mac/launch_services_util.h',
231           'mac/launchd.cc',
232           'mac/launchd.h',
233           'mac/libdispatch_task_runner.cc',
234           'mac/libdispatch_task_runner.h',
235           'mac/mac_logging.h',
236           'mac/mac_logging.cc',
237           'mac/mac_util.h',
238           'mac/mac_util.mm',
239           'mac/objc_property_releaser.h',
240           'mac/objc_property_releaser.mm',
241           'mac/os_crash_dumps.cc',
242           'mac/os_crash_dumps.h',
243           'mac/scoped_aedesc.h',
244           'mac/scoped_authorizationref.h',
245           'mac/scoped_block.h',
246           'mac/scoped_cftyperef.h',
247           'mac/scoped_ioobject.h',
248           'mac/scoped_launch_data.h',
249           'mac/scoped_mach_port.cc',
250           'mac/scoped_mach_port.h',
251           'mac/scoped_nsautorelease_pool.h',
252           'mac/scoped_nsautorelease_pool.mm',
253           'mac/scoped_nsexception_enabler.h',
254           'mac/scoped_nsexception_enabler.mm',
255           'mac/scoped_sending_event.h',
256           'mac/scoped_sending_event.mm',
257           'memory/aligned_memory.cc',
258           'memory/aligned_memory.h',
259           'memory/discardable_memory.cc',
260           'memory/discardable_memory.h',
261           'memory/discardable_memory_android.cc',
262           'memory/discardable_memory_mac.cc',
263           'memory/linked_ptr.h',
264           'memory/manual_constructor.h',
265           'memory/raw_scoped_refptr_mismatch_checker.h',
266           'memory/ref_counted.cc',
267           'memory/ref_counted.h',
268           'memory/ref_counted_memory.cc',
269           'memory/ref_counted_memory.h',
270           'memory/scoped_handle.h',
271           'memory/scoped_nsobject.h',
272           'memory/scoped_open_process.h',
273           'memory/scoped_policy.h',
274           'memory/scoped_ptr.h',
275           'memory/scoped_vector.h',
276           'memory/shared_memory.h',
277           'memory/shared_memory_android.cc',
278           'memory/shared_memory_nacl.cc',
279           'memory/shared_memory_posix.cc',
280           'memory/shared_memory_win.cc',
281           'memory/singleton.cc',
282           'memory/singleton.h',
283           'memory/weak_ptr.cc',
284           'memory/weak_ptr.h',
285           'message_loop/message_loop_proxy.cc',
286           'message_loop/message_loop_proxy.h',
287           'message_loop/message_loop_proxy_impl.cc',
288           'message_loop/message_loop_proxy_impl.h',
289           'message_loop.cc',
290           'message_loop.h',
291           'message_pump.cc',
292           'message_pump.h',
293           'message_pump_android.cc',
294           'message_pump_android.h',
295           'message_pump_default.cc',
296           'message_pump_default.h',
297           'message_pump_ozone.cc',
298           'message_pump_ozone.h',
299           'message_pump_win.cc',
300           'message_pump_win.h',
301           'metrics/sample_map.cc',
302           'metrics/sample_map.h',
303           'metrics/sample_vector.cc',
304           'metrics/sample_vector.h',
305           'metrics/bucket_ranges.cc',
306           'metrics/bucket_ranges.h',
307           'metrics/histogram.cc',
308           'metrics/histogram.h',
309           'metrics/histogram_base.cc',
310           'metrics/histogram_base.h',
311           'metrics/histogram_flattener.h',
312           'metrics/histogram_samples.cc',
313           'metrics/histogram_samples.h',
314           'metrics/histogram_snapshot_manager.cc',
315           'metrics/histogram_snapshot_manager.h',
316           'metrics/sparse_histogram.cc',
317           'metrics/sparse_histogram.h',
318           'metrics/statistics_recorder.cc',
319           'metrics/statistics_recorder.h',
320           'metrics/stats_counters.cc',
321           'metrics/stats_counters.h',
322           'metrics/stats_table.cc',
323           'metrics/stats_table.h',
324           'move.h',
325           'native_library.h',
326           'native_library_mac.mm',
327           'native_library_posix.cc',
328           'native_library_win.cc',
329           'observer_list.h',
330           'observer_list_threadsafe.h',
331           'os_compat_android.cc',
332           'os_compat_android.h',
333           'os_compat_nacl.cc',
334           'os_compat_nacl.h',
335           'path_service.cc',
336           'path_service.h',
337           'pending_task.cc',
338           'pending_task.h',
339           'pickle.cc',
340           'pickle.h',
341           'platform_file.cc',
342           'platform_file.h',
343           'platform_file_posix.cc',
344           'platform_file_win.cc',
345           'port.h',
346           'posix/eintr_wrapper.h',
347           'posix/global_descriptors.cc',
348           'posix/global_descriptors.h',
349           'posix/unix_domain_socket_linux.cc',
350           'posix/unix_domain_socket_linux.h',
351           'power_monitor/power_monitor.cc',
352           'power_monitor/power_monitor.h',
353           'power_monitor/power_monitor_android.cc',
354           'power_monitor/power_monitor_android.h',
355           'power_monitor/power_monitor_ios.mm',
356           'power_monitor/power_monitor_mac.mm',
357           'power_monitor/power_monitor_posix.cc',
358           'power_monitor/power_monitor_win.cc',
359           'power_monitor/power_observer.h',
360           'process.h',
361           'process_info.h',
362           'process_info_mac.cc',
363           'process_info_win.cc',
364           'process_linux.cc',
365           'process_posix.cc',
366           'process_util.cc',
367           'process_util.h',
368           'process_util_freebsd.cc',
369           'process_util_ios.mm',
370           'process_util_linux.cc',
371           'process_util_mac.mm',
372           'process_util_openbsd.cc',
373           'process_util_posix.cc',
374           'process_util_win.cc',
375           'process_win.cc',
376           'profiler/scoped_profile.cc',
377           'profiler/scoped_profile.h',
378           'profiler/alternate_timer.cc',
379           'profiler/alternate_timer.h',
380           'profiler/tracked_time.cc',
381           'profiler/tracked_time.h',
382           'rand_util.cc',
383           'rand_util.h',
384           'rand_util_nacl.cc',
385           'rand_util_posix.cc',
386           'rand_util_win.cc',
387           'run_loop.cc',
388           'run_loop.h',
389           'safe_numerics.h',
390           'safe_strerror_posix.cc',
391           'safe_strerror_posix.h',
392           'scoped_native_library.cc',
393           'scoped_native_library.h',
394           'sequence_checker.h',
395           'sequence_checker_impl.cc',
396           'sequence_checker_impl.h',
397           'sequenced_task_runner.cc',
398           'sequenced_task_runner.h',
399           'sequenced_task_runner_helpers.h',
400           'sha1.h',
401           'sha1_portable.cc',
402           'sha1_win.cc',
403           'single_thread_task_runner.h',
404           'stl_util.h',
405           'string_util.cc',
406           'string_util.h',
407           'string_util_posix.h',
408           'string_util_win.h',
409           'string16.cc',
410           'string16.h',
411           'stringprintf.cc',
412           'stringprintf.h',
413           'strings/string_split.cc',
414           'strings/string_split.h',
415           'strings/string_number_conversions.cc',
416           'strings/string_number_conversions.h',
417           'strings/string_piece.cc',
418           'strings/string_piece.h',
419           'strings/string_tokenizer.h',
420           'strings/stringize_macros.h',
421           'strings/sys_string_conversions.h',
422           'strings/sys_string_conversions_mac.mm',
423           'strings/sys_string_conversions_posix.cc',
424           'strings/sys_string_conversions_win.cc',
425           'strings/utf_offset_string_conversions.cc',
426           'strings/utf_offset_string_conversions.h',
427           'strings/utf_string_conversion_utils.cc',
428           'strings/utf_string_conversion_utils.h',
429           'strings/utf_string_conversions.cc',
430           'strings/utf_string_conversions.h',
431           'supports_user_data.cc',
432           'supports_user_data.h',
433           'synchronization/cancellation_flag.cc',
434           'synchronization/cancellation_flag.h',
435           'synchronization/condition_variable.h',
436           'synchronization/condition_variable_posix.cc',
437           'synchronization/condition_variable_win.cc',
438           'synchronization/lock.cc',
439           'synchronization/lock.h',
440           'synchronization/lock_impl.h',
441           'synchronization/lock_impl_posix.cc',
442           'synchronization/lock_impl_win.cc',
443           'synchronization/spin_wait.h',
444           'synchronization/waitable_event.h',
445           'synchronization/waitable_event_posix.cc',
446           'synchronization/waitable_event_watcher.h',
447           'synchronization/waitable_event_watcher_posix.cc',
448           'synchronization/waitable_event_watcher_win.cc',
449           'synchronization/waitable_event_win.cc',
450           'system_monitor/system_monitor.cc',
451           'system_monitor/system_monitor.h',
452           'sys_byteorder.h',
453           'sys_info.cc',
454           'sys_info.h',
455           'sys_info_android.cc',
456           'sys_info_chromeos.cc',
457           'sys_info_freebsd.cc',
458           'sys_info_ios.mm',
459           'sys_info_linux.cc',
460           'sys_info_mac.cc',
461           'sys_info_openbsd.cc',
462           'sys_info_posix.cc',
463           'sys_info_win.cc',
464           'task_runner.cc',
465           'task_runner.h',
466           'task_runner_util.h',
467           'template_util.h',
468           'thread_task_runner_handle.cc',
469           'thread_task_runner_handle.h',
470           'threading/non_thread_safe.h',
471           'threading/non_thread_safe_impl.cc',
472           'threading/non_thread_safe_impl.h',
473           'threading/platform_thread.h',
474           'threading/platform_thread_mac.mm',
475           'threading/platform_thread_posix.cc',
476           'threading/platform_thread_win.cc',
477           'threading/post_task_and_reply_impl.cc',
478           'threading/post_task_and_reply_impl.h',
479           'threading/sequenced_worker_pool.cc',
480           'threading/sequenced_worker_pool.h',
481           'threading/simple_thread.cc',
482           'threading/simple_thread.h',
483           'threading/thread.cc',
484           'threading/thread.h',
485           'threading/thread_checker.h',
486           'threading/thread_checker_impl.cc',
487           'threading/thread_checker_impl.h',
488           'threading/thread_collision_warner.cc',
489           'threading/thread_collision_warner.h',
490           'threading/thread_id_name_manager.cc',
491           'threading/thread_id_name_manager.h',
492           'threading/thread_local.h',
493           'threading/thread_local_posix.cc',
494           'threading/thread_local_storage.h',
495           'threading/thread_local_storage_posix.cc',
496           'threading/thread_local_storage_win.cc',
497           'threading/thread_local_win.cc',
498           'threading/thread_restrictions.h',
499           'threading/thread_restrictions.cc',
500           'threading/watchdog.cc',
501           'threading/watchdog.h',
502           'threading/worker_pool.h',
503           'threading/worker_pool.cc',
504           'threading/worker_pool_posix.cc',
505           'threading/worker_pool_posix.h',
506           'threading/worker_pool_win.cc',
507           'time/clock.cc',
508           'time/clock.h',
509           'time/default_clock.cc',
510           'time/default_clock.h',
511           'time/default_tick_clock.cc',
512           'time/default_tick_clock.h',
513           'time/tick_clock.cc',
514           'time/tick_clock.h',
515           # TODO(akalin): Move time* into time/.
516           'time.cc',
517           'time.h',
518           'time_mac.cc',
519           'time_posix.cc',
520           'time_win.cc',
521           'timer.cc',
522           'timer.h',
523           'tracked_objects.cc',
524           'tracked_objects.h',
525           'tracking_info.cc',
526           'tracking_info.h',
527           'tuple.h',
528           'values.cc',
529           'values.h',
530           'value_conversions.cc',
531           'value_conversions.h',
532           'version.cc',
533           'version.h',
534           'vlog.cc',
535           'vlog.h',
536           'nix/mime_util_xdg.cc',
537           'nix/mime_util_xdg.h',
538           'nix/xdg_util.cc',
539           'nix/xdg_util.h',
540           'win/enum_variant.h',
541           'win/enum_variant.cc',
542           'win/event_trace_consumer.h',
543           'win/event_trace_controller.cc',
544           'win/event_trace_controller.h',
545           'win/event_trace_provider.cc',
546           'win/event_trace_provider.h',
547           'win/i18n.cc',
548           'win/i18n.h',
549           'win/iat_patch_function.cc',
550           'win/iat_patch_function.h',
551           'win/iunknown_impl.h',
552           'win/iunknown_impl.cc',
553           'win/metro.cc',
554           'win/metro.h',
555           'win/object_watcher.cc',
556           'win/object_watcher.h',
557           'win/registry.cc',
558           'win/registry.h',
559           'win/resource_util.cc',
560           'win/resource_util.h',
561           'win/sampling_profiler.cc',
562           'win/sampling_profiler.h',
563           'win/scoped_bstr.cc',
564           'win/scoped_bstr.h',
565           'win/scoped_co_mem.h',
566           'win/scoped_com_initializer.h',
567           'win/scoped_comptr.h',
568           'win/scoped_gdi_object.h',
569           'win/scoped_handle.cc',
570           'win/scoped_handle.h',
571           'win/scoped_hdc.h',
572           'win/scoped_hglobal.h',
573           'win/scoped_process_information.cc',
574           'win/scoped_process_information.h',
575           'win/scoped_propvariant.h',
576           'win/scoped_select_object.h',
577           'win/scoped_variant.cc',
578           'win/scoped_variant.h',
579           'win/shortcut.cc',
580           'win/shortcut.h',
581           'win/startup_information.cc',
582           'win/startup_information.h',
583           'win/text_services_message_filter.cc',
584           'win/text_services_message_filter.h',
585           'win/windows_version.cc',
586           'win/windows_version.h',
587           'win/win_util.cc',
588           'win/win_util.h',
589           'win/wrapped_window_proc.cc',
590           'win/wrapped_window_proc.h',
591         ],
592         'defines': [
593           'BASE_IMPLEMENTATION',
594         ],
595         'include_dirs': [
596           '..',
597         ],
598         'msvs_disabled_warnings': [
599           4018,
600         ],
601         'target_conditions': [
602           ['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
603               'sources/': [
604                 ['exclude', '^nix/'],
605               ],
606               'sources!': [
607                 'atomicops_internals_x86_gcc.cc',
608                 'message_pump_glib.cc',
609                 'message_pump_aurax11.cc',
610               ],
611           }],
612           ['<(toolkit_uses_gtk)==0 or >(nacl_untrusted_build)==1', {
613             'sources!': ['message_pump_gtk.cc'],
614           }],
615           ['(OS != "linux" and <(os_bsd) != 1 and OS != "android") or >(nacl_untrusted_build)==1', {
616               'sources!': [
617                 # Not automatically excluded by the *linux.cc rules.
618                 'linux_util.cc',
619               ],
620             },
621           ],
622           ['>(nacl_untrusted_build)==1', {
623             'sources!': [
624                'allocator/type_profiler_control.cc',
625                'allocator/type_profiler_control.h',
626                'base_paths.cc',
627                'cpu.cc',
628                'debug/stack_trace_posix.cc',
629                'file_util.cc',
630                'file_util_posix.cc',
631                'file_util_proxy.cc',
632                'files/file_path_watcher_kqueue.cc',
633                'memory/shared_memory_posix.cc',
634                'native_library_posix.cc',
635                'path_service.cc',
636                'platform_file_posix.cc',
637                'posix/unix_domain_socket_linux.cc',
638                'process_posix.cc',
639                'process_util.cc',
640                'process_util_posix.cc',
641                'rand_util_posix.cc',
642                'scoped_native_library.cc',
643                'files/scoped_temp_dir.cc',
644                'sys_info_posix.cc',
645                'threading/sequenced_worker_pool.cc',
646                'third_party/dynamic_annotations/dynamic_annotations.c',
647             ],
648             # Metrics won't work in the NaCl sandbox.
649             'sources/': [ ['exclude', '^metrics/'] ],
650           }],
651           ['OS == "android" and >(nacl_untrusted_build)==0', {
652             'sources!': [
653               'base_paths_posix.cc',
654               'files/file_path_watcher_kqueue.cc',
655               'files/file_path_watcher_stub.cc',
656               'power_monitor/power_monitor_posix.cc',
657             ],
658             'sources/': [
659               ['include', '^files/file_path_watcher_linux\\.cc$'],
660               ['include', '^process_util_linux\\.cc$'],
661               ['include', '^posix/unix_domain_socket_linux\\.cc$'],
662               ['include', '^strings/sys_string_conversions_posix\\.cc$'],
663               ['include', '^sys_info_linux\\.cc$'],
664               ['include', '^worker_pool_linux\\.cc$'],
665             ],
666           }],
667           ['OS == "ios"', {
668             'sources/': [
669               # Pull in specific Mac files for iOS (which have been filtered out
670               # by file name rules).
671               ['include', '^atomicops_internals_mac\\.'],
672               ['include', '^base_paths_mac\\.'],
673               ['include', '^file_util_mac\\.'],
674               ['include', '^file_version_info_mac\\.'],
675               ['include', '^mac/bundle_locations\\.'],
676               ['include', '^mac/foundation_util\\.'],
677               ['include', '^mac/mac_logging\\.'],
678               ['include', '^mac/objc_property_releaser\\.'],
679               ['include', '^mac/scoped_mach_port\\.'],
680               ['include', '^mac/scoped_nsautorelease_pool\\.'],
681               ['include', '^memory/discardable_memory_mac\\.'],
682               ['include', '^message_pump_mac\\.'],
683               ['include', '^threading/platform_thread_mac\\.'],
684               ['include', '^strings/sys_string_conversions_mac\\.'],
685               ['include', '^time_mac\\.'],
686               ['include', '^worker_pool_mac\\.'],
687               # Exclude all process_util except the minimal implementation
688               # needed on iOS (mostly for unit tests).
689               ['exclude', '^process_util'],
690               ['include', '^process_util_ios\\.mm$'],
691             ],
692             'sources!': [
693               'message_pump_libevent.cc'
694             ],
695           }],
696           ['OS != "mac" or >(nacl_untrusted_build)==1', {
697               'sources!': [
698                 'mac/scoped_aedesc.h'
699               ],
700           }],
701           # For now, just test the *BSD platforms enough to exclude them.
702           # Subsequent changes will include them further.
703           ['OS != "freebsd" or >(nacl_untrusted_build)==1', {
704               'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
705             },
706           ],
707           ['OS != "openbsd" or >(nacl_untrusted_build)==1', {
708               'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
709             },
710           ],
711           ['OS != "win" or >(nacl_untrusted_build)==1', {
712               'sources/': [ ['exclude', '^win/'] ],
713             },
714           ],
715           ['OS != "android" or >(nacl_untrusted_build)==1', {
716               'sources/': [ ['exclude', '^android/'] ],
717             },
718           ],
719           ['OS == "win" and >(nacl_untrusted_build)==0', {
720             'include_dirs': [
721               '<(DEPTH)/third_party/wtl/include',
722             ],
723             'sources!': [
724               'event_recorder_stubs.cc',
725               'files/file_path_watcher_kqueue.cc',
726               'files/file_path_watcher_stub.cc',
727               'message_pump_libevent.cc',
728               'posix/file_descriptor_shuffle.cc',
729               # Not using sha1_win.cc because it may have caused a
730               # regression to page cycler moz.
731               'sha1_win.cc',
732               'string16.cc',
733             ],
734           },],
735           ['<(use_ozone) == 1', {
736             'sources!': [
737               'message_pump_glib.cc',
738               'message_pump_aurax11.cc',
739             ]
740           }],
741           ['OS == "linux" and >(nacl_untrusted_build)==0', {
742             'sources!': [
743               'files/file_path_watcher_kqueue.cc',
744               'files/file_path_watcher_stub.cc',
745             ],
746           }],
747           ['(OS == "mac" or OS == "ios") and >(nacl_untrusted_build)==0', {
748             'sources/': [
749               ['exclude', '^files/file_path_watcher_stub\\.cc$'],
750               ['exclude', '^base_paths_posix\\.cc$'],
751               ['exclude', '^native_library_posix\\.cc$'],
752               ['exclude', '^strings/sys_string_conversions_posix\\.cc$'],
753             ],
754           }],
755           ['<(os_bsd)==1 and >(nacl_untrusted_build)==0', {
756             'sources/': [
757               ['exclude', '^files/file_path_watcher_linux\\.cc$'],
758               ['exclude', '^files/file_path_watcher_stub\\.cc$'],
759               ['exclude', '^file_util_linux\\.cc$'],
760               ['exclude', '^process_linux\\.cc$'],
761               ['exclude', '^process_util_linux\\.cc$'],
762               ['exclude', '^sys_info_linux\\.cc$'],
763             ],
764           }],
765           ['<(chromeos)!=1 or >(nacl_untrusted_build)==1', {
766             'sources/': [
767               ['exclude', '^chromeos/'],
768             ],
769           }],
770           # Remove all unnecessary files for build_nexe.py to avoid exceeding
771           # command-line-string limitation when building NaCl on Windows.
772           ['OS == "win" and >(nacl_untrusted_build)==1', {
773               'sources/': [ ['exclude', '\\.h$'] ],
774           }],
775           ['<(use_system_nspr)==1 and >(nacl_untrusted_build)==0', {
776             'sources/': [
777               ['exclude', '^third_party/nspr/'],
778             ],
779           }],
780         ],
781       }],
782     ],
783   },