[cros] Don't succeed if user has default profile picturewq
[chromium-blink-merge.git] / base / base.gypi
blob8fa20dc31ae680c715d7cdb58e803be84081df76
1 # Copyright (c) 2011 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/dynamic_annotations/dynamic_annotations.h',
19           'third_party/icu/icu_utf.cc',
20           'third_party/icu/icu_utf.h',
21           'third_party/nspr/prtime.cc',
22           'third_party/nspr/prtime.h',
23           'third_party/nspr/prcpucfg_linux.h',
24           'third_party/xdg_mime/xdgmime.h',
25           'android/scoped_java_ref.cc',
26           'android/scoped_java_ref.h',
27           'android/jni_android.cc',
28           'android/jni_android.h',
29           'android/jni_array.cc',
30           'android/jni_array.h',
31           'android/jni_string.cc',
32           'android/jni_string.h',
33           'android/path_utils.cc',
34           'android/path_utils.h',
35           'at_exit.cc',
36           'at_exit.h',
37           'atomic_ref_count.h',
38           'atomic_sequence_num.h',
39           'atomicops.h',
40           'atomicops_internals_x86_gcc.cc',
41           'atomicops_internals_x86_gcc.h',
42           'atomicops_internals_x86_msvc.h',
43           'base_export.h',
44           'base_paths.cc',
45           'base_paths.h',
46           'base_paths_android.cc',
47           'base_paths_mac.h',
48           'base_paths_mac.mm',
49           'base_paths_linux.cc',
50           'base_paths_win.cc',
51           'base_paths_win.h',
52           'base_switches.h',
53           'basictypes.h',
54           'bind.h',
55           'bind_helpers.h',
56           'bind_internal.h',
57           'bind_internal_win.h',
58           'bits.h',
59           'callback.h',
60           'callback_internal.cc',
61           'callback_internal.h',
62           'callback_old.h',
63           'command_line.cc',
64           'command_line.h',
65           'compiler_specific.h',
66           'cpu.cc',
67           'cpu.h',
68           'debug/alias.cc',
69           'debug/alias.h',
70           'debug/debug_on_start_win.cc',
71           'debug/debug_on_start_win.h',
72           'debug/debugger.cc',
73           'debug/debugger.h',
74           'debug/debugger_posix.cc',
75           'debug/debugger_win.cc',
76           'debug/leak_annotations.h',
77           'debug/leak_tracker.h',
78           'debug/profiler.cc',
79           'debug/profiler.h',
80           'debug/stack_trace.cc',
81           'debug/stack_trace.h',
82           'debug/stack_trace_android.cc',
83           'debug/stack_trace_posix.cc',
84           'debug/stack_trace_win.cc',
85           'debug/trace_event_win.cc',
86           'debug/trace_event.cc',
87           'debug/trace_event.h',
88           'dir_reader_fallback.h',
89           'dir_reader_linux.h',
90           'dir_reader_posix.h',
91           'eintr_wrapper.h',
92           'environment.cc',
93           'environment.h',
94           'file_descriptor_posix.h',
95           'file_path.cc',
96           'file_path.h',
97           'file_util.cc',
98           'file_util.h',
99           'file_util_android.cc',
100           'file_util_deprecated.h',
101           'file_util_linux.cc',
102           'file_util_mac.mm',
103           'file_util_posix.cc',
104           'file_util_win.cc',
105           'file_util_proxy.cc',
106           'file_util_proxy.h',
107           'file_version_info.h',
108           'file_version_info_mac.h',
109           'file_version_info_mac.mm',
110           'file_version_info_win.cc',
111           'file_version_info_win.h',
112           'files/file_path_watcher.cc',
113           'files/file_path_watcher.h',
114           'files/file_path_watcher_kqueue.cc',
115           'files/file_path_watcher_linux.cc',
116           'files/file_path_watcher_stub.cc',
117           'files/file_path_watcher_win.cc',
118           'float_util.h',
119           'format_macros.h',
120           'global_descriptors_posix.cc',
121           'global_descriptors_posix.h',
122           'gtest_prod_util.h',
123           'hash_tables.h',
124           'id_map.h',
125           'json/json_reader.cc',
126           'json/json_reader.h',
127           'json/json_value_serializer.cc',
128           'json/json_value_serializer.h',
129           'json/json_writer.cc',
130           'json/json_writer.h',
131           'json/string_escape.cc',
132           'json/string_escape.h',
133           'lazy_instance.cc',
134           'lazy_instance.h',
135           'linked_list.h',
136           'location.cc',
137           'location.h',
138           'logging.cc',
139           'logging.h',
140           'logging_win.cc',
141           'logging_win.h',
142           'mac/cocoa_protocols.h',
143           'mac/crash_logging.h',
144           'mac/crash_logging.mm',
145           'mac/foundation_util.h',
146           'mac/foundation_util.mm',
147           'mac/mac_util.h',
148           'mac/mac_util.mm',
149           'mac/objc_property_releaser.h',
150           'mac/objc_property_releaser.mm',
151           'mac/os_crash_dumps.cc',
152           'mac/os_crash_dumps.h',
153           'mac/scoped_aedesc.h',
154           'mac/scoped_cftyperef.h',
155           'mac/scoped_nsautorelease_pool.h',
156           'mac/scoped_nsautorelease_pool.mm',
157           'mac/scoped_nsexception_enabler.h',
158           'mac/scoped_nsexception_enabler.mm',
159           'mach_ipc_mac.h',
160           'mach_ipc_mac.mm',
161           'memory/linked_ptr.h',
162           'memory/mru_cache.h',
163           'memory/raw_scoped_refptr_mismatch_checker.h',
164           'memory/ref_counted.cc',
165           'memory/ref_counted.h',
166           'memory/ref_counted_memory.cc',
167           'memory/ref_counted_memory.h',
168           'memory/scoped_callback_factory.h',
169           'memory/scoped_handle.h',
170           'memory/scoped_nsobject.h',
171           'memory/scoped_open_process.h',
172           'memory/scoped_ptr.h',
173           'memory/scoped_vector.h',
174           'memory/singleton.h',
175           'memory/weak_ptr.cc',
176           'memory/weak_ptr.h',
177           'message_loop.cc',
178           'message_loop.h',
179           'message_loop_proxy.cc',
180           'message_loop_proxy.h',
181           'message_loop_proxy_impl.cc',
182           'message_loop_proxy_impl.h',
183           'message_pump.cc',
184           'message_pump.h',
185           'message_pump_default.cc',
186           'message_pump_default.h',
187           'message_pump_win.cc',
188           'message_pump_win.h',
189           'metrics/histogram.cc',
190           'metrics/histogram.h',
191           'metrics/stats_counters.cc',
192           'metrics/stats_counters.h',
193           'metrics/stats_table.cc',
194           'metrics/stats_table.h',
195           'mime_util.h',
196           'mime_util_xdg.cc',
197           'native_library.h',
198           'native_library_linux.cc',
199           'native_library_mac.mm',
200           'native_library_win.cc',
201           'observer_list.h',
202           'observer_list_threadsafe.h',
203           'os_compat_android.cc',
204           'os_compat_android.h',
205           'path_service.cc',
206           'path_service.h',
207           'pickle.cc',
208           'pickle.h',
209           'platform_file.cc',
210           'platform_file.h',
211           'platform_file_posix.cc',
212           'platform_file_win.cc',
213           'port.h',
214           'process.h',
215           'process_linux.cc',
216           'process_posix.cc',
217           'process_util.cc',
218           'process_util.h',
219           'process_util_linux.cc',
220           'process_util_mac.mm',
221           'process_util_openbsd.cc',
222           'process_util_posix.cc',
223           'process_util_win.cc',
224           'process_win.cc',
225           'rand_util.cc',
226           'rand_util.h',
227           'rand_util_c.h',
228           'rand_util_posix.cc',
229           'rand_util_win.cc',
230           'safe_strerror_posix.cc',
231           'safe_strerror_posix.h',
232           'scoped_native_library.cc',
233           'scoped_native_library.h',
234           'scoped_temp_dir.cc',
235           'scoped_temp_dir.h',
236           'sha1.h',
237           'sha1_portable.cc',
238           'sha1_win.cc',
239           'shared_memory.h',
240           'shared_memory_android.cc',
241           'shared_memory_posix.cc',
242           'shared_memory_win.cc',
243           'spin_wait.h',
244           'stack_container.h',
245           'stl_util.h',
246           'string_number_conversions.cc',
247           'string_number_conversions.h',
248           'string_piece.cc',
249           'string_piece.h',
250           'string_split.cc',
251           'string_split.h',
252           'string_tokenizer.h',
253           'string_util.cc',
254           'string_util.h',
255           'string_util_posix.h',
256           'string_util_win.h',
257           'stringize_macros.h',
258           'stringprintf.cc',
259           'stringprintf.h',
260           'synchronization/cancellation_flag.cc',
261           'synchronization/cancellation_flag.h',
262           'synchronization/condition_variable.h',
263           'synchronization/condition_variable_posix.cc',
264           'synchronization/condition_variable_win.cc',
265           'synchronization/lock.cc',
266           'synchronization/lock.h',
267           'synchronization/lock_impl.h',
268           'synchronization/lock_impl_posix.cc',
269           'synchronization/lock_impl_win.cc',
270           'synchronization/waitable_event.h',
271           'synchronization/waitable_event_posix.cc',
272           'synchronization/waitable_event_watcher.h',
273           'synchronization/waitable_event_watcher_posix.cc',
274           'synchronization/waitable_event_watcher_win.cc',
275           'synchronization/waitable_event_win.cc',
276           'system_monitor/system_monitor.cc',
277           'system_monitor/system_monitor.h',
278           'system_monitor/system_monitor_android.cc',
279           'system_monitor/system_monitor_mac.mm',
280           'system_monitor/system_monitor_posix.cc',
281           'system_monitor/system_monitor_win.cc',
282           'sys_info.h',
283           'sys_info_chromeos.cc',
284           'sys_info_freebsd.cc',
285           'sys_info_linux.cc',
286           'sys_info_mac.cc',
287           'sys_info_openbsd.cc',
288           'sys_info_posix.cc',
289           'sys_info_win.cc',
290           'sys_string_conversions.h',
291           'sys_string_conversions_linux.cc',
292           'sys_string_conversions_mac.mm',
293           'sys_string_conversions_win.cc',
294           'task.cc',
295           'task.h',
296           'task_queue.cc',
297           'task_queue.h',
298           'template_util.h',
299           'threading/non_thread_safe.h',
300           'threading/non_thread_safe_impl.cc',
301           'threading/non_thread_safe_impl.h',
302           'threading/platform_thread.h',
303           'threading/platform_thread_mac.mm',
304           'threading/platform_thread_posix.cc',
305           'threading/platform_thread_win.cc',
306           'threading/post_task_and_reply_impl.cc',
307           'threading/post_task_and_reply_impl.h',
308           'threading/simple_thread.cc',
309           'threading/simple_thread.h',
310           'threading/thread.cc',
311           'threading/thread.h',
312           'threading/thread_checker.h',
313           'threading/thread_checker_impl.cc',
314           'threading/thread_checker_impl.h',
315           'threading/thread_collision_warner.cc',
316           'threading/thread_collision_warner.h',
317           'threading/thread_local.h',
318           'threading/thread_local_posix.cc',
319           'threading/thread_local_storage.h',
320           'threading/thread_local_storage_posix.cc',
321           'threading/thread_local_storage_win.cc',
322           'threading/thread_local_win.cc',
323           'threading/thread_restrictions.h',
324           'threading/thread_restrictions.cc',
325           'threading/watchdog.cc',
326           'threading/watchdog.h',
327           'threading/worker_pool.h',
328           'threading/worker_pool.cc',
329           'threading/worker_pool_posix.cc',
330           'threading/worker_pool_posix.h',
331           'threading/worker_pool_win.cc',
332           'time.cc',
333           'time.h',
334           'time_win.cc',
335           'timer.cc',
336           'timer.h',
337           'tracked_objects.cc',
338           'tracked_objects.h',
339           'tuple.h',
340           'utf_offset_string_conversions.cc',
341           'utf_offset_string_conversions.h',
342           'utf_string_conversion_utils.cc',
343           'utf_string_conversion_utils.h',
344           'utf_string_conversions.cc',
345           'utf_string_conversions.h',
346           'values.cc',
347           'values.h',
348           'value_conversions.cc',
349           'value_conversions.h',
350           'version.cc',
351           'version.h',
352           'vlog.cc',
353           'vlog.h',
354           'nix/xdg_util.cc',
355           'nix/xdg_util.h',
356           'win/event_trace_consumer.h',
357           'win/event_trace_controller.cc',
358           'win/event_trace_controller.h',
359           'win/event_trace_provider.cc',
360           'win/event_trace_provider.h',
361           'win/i18n.cc',
362           'win/i18n.h',
363           'win/iat_patch_function.cc',
364           'win/iat_patch_function.h',
365           'win/object_watcher.cc',
366           'win/object_watcher.h',
367           'win/registry.cc',
368           'win/registry.h',
369           'win/resource_util.cc',
370           'win/resource_util.h',
371           'win/scoped_bstr.cc',
372           'win/scoped_bstr.h',
373           'win/scoped_co_mem.h',
374           'win/scoped_com_initializer.h',
375           'win/scoped_comptr.h',
376           'win/scoped_gdi_object.h',
377           'win/scoped_handle.h',
378           'win/scoped_hdc.h',
379           'win/scoped_hglobal.h',
380           'win/scoped_select_object.h',
381           'win/scoped_variant.cc',
382           'win/scoped_variant.h',
383           'win/windows_version.cc',
384           'win/windows_version.h',
385           'win/win_util.cc',
386           'win/win_util.h',
387           'win/wrapped_window_proc.cc',
388           'win/wrapped_window_proc.h',
389         ],
390         'defines': [
391           'BASE_IMPLEMENTATION',
392         ],
393         'include_dirs': [
394           '..',
395         ],
396         # These warnings are needed for the files in third_party\dmg_fp.
397         'msvs_disabled_warnings': [
398           4244, 4554, 4018, 4102,
399         ],
400         'mac_framework_dirs': [
401           '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
402         ],
403         'conditions': [
404           [ 'use_wayland == 1', {
405             'sources!': [
406               'message_pump_gtk.cc',
407               'message_pump_x.cc',
408             ],
409           }],
410           [ 'use_glib==0', {
411               'sources/': [
412                 ['exclude', '^nix/'],
413               ],
414               'sources!': [
415                 'atomicops_internals_x86_gcc.cc',
416                 'message_pump_glib.cc',
417                 'message_pump_x.cc',
418               ],
419           }],
420           [ 'toolkit_uses_gtk==0', {
421             'sources!': [ 'message_pump_gtk.cc', ],
422           }],
423           [ '(touchui==0 and use_aura==0) or OS == "win"', {
424             'sources!' : [ 'message_pump_x.cc', ],
425           }, {
426             'sources!' : [ 'message_pump_gtk.cc', ],
427             'sources/' : [ [ 'include', 'message_pump_x.cc', ] ],
428           }],
429           [ 'OS != "linux" and OS != "openbsd"', {
430               'sources!': [
431                 # Not automatically excluded by the *linux.cc rules.
432                 'linux_util.cc',
433               ],
434             },
435           ],
436           [ 'OS == "android"', {
437             'sources/': [
438               ['exclude', '^debug/stack_trace.cc'],
439               ['exclude', '^debug/stack_trace_posix.cc'],
440               ['exclude', '^system_monitor/system_monitor_posix.cc'],
441               ['include', '^native_library_linux.cc'],
442               ['include', '^process_util_linux.cc'],
443               ['include', '^sys_info_linux.cc'],
444               ['include', '^sys_string_conversions_linux.cc'],
445               ['include', '^worker_pool_linux.cc'],
446               # TODO(michaelbai): The below files are excluded because of the
447               # missing JNI, add them back when JNI is ready.
448               ['exclude', '^android/'],
449               ['exclude', '^message_pump_android.cc'],
450               ['exclude', '^base_paths_android.cc'],
451               ['exclude', '^debug/stack_trace_android.cc'],
452             ],
453           }],
454           [ 'OS != "mac"', {
455               'sources!': [
456                 'mac/scoped_aedesc.h'
457               ],
458           }],
459           # For now, just test the *BSD platforms enough to exclude them.
460           # Subsequent changes will include them further.
461           [ 'OS != "freebsd"', {
462               'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
463             },
464           ],
465           [ 'OS != "openbsd"', {
466               'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
467             },
468           ],
469           ['OS != "win"', {
470               'sources/': [ ['exclude', '^win/'] ],
471             },
472           ],
473           ['OS != "android"', {
474               'sources/': [ ['exclude', '^android/'] ],
475             },
476           ],
477           [ 'OS == "win"', {
478             'include_dirs': [
479               '<(DEPTH)/third_party/wtl/include',
480             ],
481             'sources!': [
482               'event_recorder_stubs.cc',
483               'file_descriptor_shuffle.cc',
484               'files/file_path_watcher_kqueue.cc',
485               'files/file_path_watcher_stub.cc',
486               'message_pump_libevent.cc',
487               # Not using sha1_win.cc because it may have caused a
488               # regression to page cycler moz.
489               'sha1_win.cc',
490               'string16.cc',
491             ],
492           },],
493           [ 'OS == "linux"', {
494             'sources!': [
495               'files/file_path_watcher_kqueue.cc',
496               'files/file_path_watcher_stub.cc',
497             ],
498           }],
499           [ 'OS == "mac"', {
500             'sources!': [
501               'files/file_path_watcher_stub.cc',
502             ],
503           }],
504           [ 'OS == "openbsd"', {
505             'sources/': [
506               ['exclude', '^files/file_path_watcher_linux\\.cc$'],
507               ['exclude', '^files/file_path_watcher_stub\\.cc$'],
508               ['exclude', '^file_util_linux\\.cc$'],
509               ['exclude', '^process_linux\\.cc$'],
510               ['exclude', '^process_util_linux\\.cc$'],
511               ['exclude', '^sys_info_linux\\.cc$'],
512             ],
513           }],
514         ],
515       }],
516     ],
517   },
518   'targets': [
519     {
520       'target_name': 'base',
521       'type': '<(component)',
522       'toolsets': ['host', 'target'],
523       'variables': {
524         'base_target': 1,
525       },
526       'dependencies': [
527         'base_static',
528         '../third_party/modp_b64/modp_b64.gyp:modp_b64',
529         'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
530       ],
531       # TODO(gregoryd): direct_dependent_settings should be shared with the
532       #  64-bit target, but it doesn't work due to a bug in gyp
533       'direct_dependent_settings': {
534         'include_dirs': [
535           '..',
536         ],
537       },
538       'conditions': [
539         [ 'use_glib==1', {
540           'conditions': [
541             [ 'chromeos==1', {
542                 'sources/': [ ['include', '_chromeos\\.cc$'] ]
543               },
544             ],
545             [ 'linux_use_tcmalloc==0', {
546                 'defines': [
547                   'NO_TCMALLOC',
548                 ],
549                 'direct_dependent_settings': {
550                   'defines': [
551                     'NO_TCMALLOC',
552                   ],
553                 },
554               },
555             ],
556             [ 'toolkit_uses_gtk==1', {
557               'dependencies': [
558                 '../build/linux/system.gyp:gtk',
559               ],
560               'export_dependent_settings': [
561                 '../build/linux/system.gyp:gtk',
562               ],
563             }],
564           ],
565           'dependencies': [
566             'symbolize',
567             '../build/util/build_util.gyp:lastchange#target',
568             '../build/linux/system.gyp:glib',
569             '../build/linux/system.gyp:x11',
570             'xdg_mime',
571           ],
572           'defines': [
573             'USE_SYMBOLIZE',
574           ],
575           'cflags': [
576             '-Wno-write-strings',
577           ],
578           'export_dependent_settings': [
579             '../build/linux/system.gyp:glib',
580             '../build/linux/system.gyp:x11',
581           ],
582         }, {  # use_glib!=1
583             'sources/': [
584               ['exclude', '/xdg_user_dirs/'],
585               ['exclude', '_nss\.cc$'],
586             ],
587         }],
588         [ 'OS == "android"', {
589           'dependencies': [
590             'symbolize',
591             '../third_party/ashmem/ashmem.gyp:ashmem#target',
592           ],
593           'defines': [
594             'USE_SYMBOLIZE',
595           ],
596           'link_settings': {
597             'libraries': [
598               '-llog',
599             ],
600           },
601           'conditions': [
602             [ '_toolset=="host" and host_os=="linux"', {
603               'dependencies': [
604                 '../build/linux/system.gyp:glib',
605               ],
606             }],
607           ],
608         }],
609         [ 'OS == "freebsd" or OS == "openbsd"', {
610           'include_dirs': [
611             '/usr/local/include',
612           ],
613           'link_settings': {
614             'libraries': [
615               '-L/usr/local/lib -lexecinfo',
616               ],
617             },
618           },
619         ],
620         [ 'OS == "linux"', {
621           'link_settings': {
622              'libraries': [
623              # We need rt for clock_gettime().
624              '-lrt',
625              # For 'native_library_linux.cc'
626              '-ldl',
627            ],
628          },
629         }],
630         [ 'OS == "mac"', {
631           'link_settings': {
632             'libraries': [
633               '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
634               '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
635               '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
636               '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
637               '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
638               '$(SDKROOT)/System/Library/Frameworks/Security.framework',
639             ],
640           },
641           'dependencies': [
642             '../third_party/mach_override/mach_override.gyp:mach_override',
643           ],
644         }],
645         [ 'OS != "win"', {
646             'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
647         },],
648         [ 'component=="shared_library"', {
649           'conditions': [
650             ['OS=="win"', {
651               'sources!': [
652                 'debug/debug_on_start_win.cc',
653               ],
654             }],
655           ],
656         }],
657       ],
658       'sources': [
659         'third_party/nspr/prcpucfg.h',
660         'third_party/nspr/prcpucfg_win.h',
661         'third_party/nspr/prtypes.h',
662         'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
663         'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
664         'auto_reset.h',
665         'base64.cc',
666         'base64.h',
667         'event_recorder.h',
668         'event_recorder_stubs.cc',
669         'event_recorder_win.cc',
670         'file_descriptor_shuffle.cc',
671         'file_descriptor_shuffle.h',
672         'linux_util.cc',
673         'linux_util.h',
674         'md5.cc',
675         'md5.h',
676         'message_pump_android.cc',
677         'message_pump_android.h',
678         'message_pump_glib.cc',
679         'message_pump_glib.h',
680         'message_pump_gtk.cc',
681         'message_pump_gtk.h',
682         'message_pump_observer.h',
683         'message_pump_x.cc',
684         'message_pump_x.h',
685         'message_pump_libevent.cc',
686         'message_pump_libevent.h',
687         'message_pump_mac.h',
688         'message_pump_mac.mm',
689         'message_pump_wayland.cc',
690         'message_pump_wayland.h',
691         'metrics/field_trial.cc',
692         'metrics/field_trial.h',
693         'string16.cc',
694         'string16.h',
695         'sync_socket.h',
696         'sync_socket_win.cc',
697         'sync_socket_posix.cc',
698         'time_mac.cc',
699         'time_posix.cc',
700       ],
701     },
702   ],
703   'conditions': [
704     [ 'OS == "win"', {
705       'targets': [
706         {
707           'target_name': 'base_nacl_win64',
708           'type': '<(component)',
709           'variables': {
710             'base_target': 1,
711           },
712           'dependencies': [
713             'base_static_win64',
714             'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
715           ],
716           # TODO(gregoryd): direct_dependent_settings should be shared with the
717           # 32-bit target, but it doesn't work due to a bug in gyp
718           'direct_dependent_settings': {
719             'include_dirs': [
720               '..',
721             ],
722           },
723           'defines': [
724             '<@(nacl_win64_defines)',
725           ],
726           'configurations': {
727             'Common_Base': {
728               'msvs_target_platform': 'x64',
729             },
730           },
731           'conditions': [
732             [ 'component == "shared_library"', {
733               'sources!': [
734                 'debug/debug_on_start_win.cc',
735               ],
736             }],
737           ],
738         },
739         {
740           'target_name': 'base_i18n_nacl_win64',
741           'type': '<(component)',
742           # TODO(gregoryd): direct_dependent_settings should be shared with the
743           # 32-bit target, but it doesn't work due to a bug in gyp
744           'direct_dependent_settings': {
745             'include_dirs': [
746               '..',
747             ],
748           },
749           'defines': [
750             '<@(nacl_win64_defines)',
751             'BASE_I18N_IMPLEMENTATION',
752           ],
753           'include_dirs': [
754             '..',
755           ],
756           'sources': [
757             'i18n/icu_util_nacl_win64.cc',
758           ],
759           'configurations': {
760             'Common_Base': {
761               'msvs_target_platform': 'x64',
762             },
763           },
764         },
765       ],
766     }],
767     [ 'os_posix==1 and OS!="mac"', {
768       'targets': [
769         {
770           'target_name': 'symbolize',
771           'type': 'static_library',
772           'toolsets': ['host', 'target'],
773           'variables': {
774             'chromium_code': 0,
775           },
776           'conditions': [
777             [ 'OS == "solaris"', {
778               'include_dirs': [
779                 '/usr/gnu/include',
780                 '/usr/gnu/include/libelf',
781               ],
782             },],
783           ],
784           'cflags': [
785             '-Wno-sign-compare',
786           ],
787           'cflags!': [
788             '-Wextra',
789           ],
790           'sources': [
791             'third_party/symbolize/symbolize.cc',
792             'third_party/symbolize/demangle.cc',
793           ],
794           'include_dirs': [
795             '..',
796           ],
797         },
798         {
799           'target_name': 'xdg_mime',
800           'type': 'static_library',
801           'toolsets': ['host', 'target'],
802           'variables': {
803             'chromium_code': 0,
804           },
805           'cflags!': [
806             '-Wextra',
807           ],
808           'sources': [
809             'third_party/xdg_mime/xdgmime.c',
810             'third_party/xdg_mime/xdgmime.h',
811             'third_party/xdg_mime/xdgmimealias.c',
812             'third_party/xdg_mime/xdgmimealias.h',
813             'third_party/xdg_mime/xdgmimecache.c',
814             'third_party/xdg_mime/xdgmimecache.h',
815             'third_party/xdg_mime/xdgmimeglob.c',
816             'third_party/xdg_mime/xdgmimeglob.h',
817             'third_party/xdg_mime/xdgmimeicon.c',
818             'third_party/xdg_mime/xdgmimeicon.h',
819             'third_party/xdg_mime/xdgmimeint.c',
820             'third_party/xdg_mime/xdgmimeint.h',
821             'third_party/xdg_mime/xdgmimemagic.c',
822             'third_party/xdg_mime/xdgmimemagic.h',
823             'third_party/xdg_mime/xdgmimeparent.c',
824             'third_party/xdg_mime/xdgmimeparent.h',
825           ],
826         },
827       ],
828     }],
829   ],