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