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