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