1 # Copyright (c) 2010 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.
9 'base_extra_target': 0,
11 'target_conditions': [
12 # This part is shared between the targets defined below.
15 '../build/build_config.h',
16 'third_party/dmg_fp/dmg_fp.h',
17 'third_party/dmg_fp/dtoa.cc',
18 'third_party/dmg_fp/g_fmt.cc',
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',
26 'atomic_sequence_num.h',
28 'atomicops_internals_x86_gcc.cc',
29 'atomicops_internals_x86_msvc.h',
34 'base_paths_linux.cc',
41 'bzip2_error_handler.cc',
43 'cancellation_flag.cc',
44 'cancellation_flag.h',
45 'chrome_application_mac.h',
46 'chrome_application_mac.mm',
47 'cocoa_protocols_mac.h',
50 'compiler_specific.h',
51 'condition_variable.h',
52 'condition_variable_posix.cc',
53 'condition_variable_win.cc',
61 'debug_util_posix.cc',
63 'dir_reader_fallback.h',
68 'event_trace_consumer_win.h',
69 'event_trace_controller_win.cc',
70 'event_trace_controller_win.h',
71 'event_trace_provider_win.cc',
72 'event_trace_provider_win.h',
77 'file_util_deprecated.h',
84 'file_version_info.h',
85 'file_version_info_mac.h',
86 'file_version_info_mac.mm',
87 'file_version_info_win.cc',
88 'file_version_info_win.h',
91 'foundation_utils_mac.h',
92 'global_descriptors_posix.cc',
93 'global_descriptors_posix.h',
99 'json/json_reader.cc',
100 'json/json_reader.h',
101 'json/json_writer.cc',
102 'json/json_writer.h',
103 'json/string_escape.cc',
104 'json/string_escape.h',
107 'leak_annotations.h',
114 'lock_impl_posix.cc',
121 'mac/scoped_aedesc.h',
122 'mac/scoped_nsautorelease_pool.h',
123 'mac/scoped_nsautorelease_pool.mm',
130 'message_loop_proxy.cc',
131 'message_loop_proxy.h',
132 'message_loop_proxy_impl.cc',
133 'message_loop_proxy_impl.h',
136 'message_pump_default.cc',
137 'message_pump_default.h',
138 'message_pump_win.cc',
139 'message_pump_win.h',
140 'metrics/histogram.cc',
141 'metrics/histogram.h',
142 'metrics/stats_counters.cc',
143 'metrics/stats_counters.h',
144 'metrics/stats_table.cc',
145 'metrics/stats_table.h',
150 'native_library_linux.cc',
151 'native_library_mac.mm',
152 'native_library_win.cc',
153 'non_thread_safe.cc',
155 'nullable_string16.h',
159 'observer_list_threadsafe.h',
165 'platform_file_posix.cc',
166 'platform_file_win.cc',
168 'platform_thread_mac.mm',
169 'platform_thread_posix.cc',
170 'platform_thread_win.cc',
177 'process_util_linux.cc',
178 'process_util_mac.mm',
179 'process_util_posix.cc',
180 'process_util_win.cc',
184 'rand_util_posix.cc',
186 'raw_scoped_refptr_mismatch_checker.h',
189 'ref_counted_memory.cc',
190 'ref_counted_memory.h',
193 'safe_strerror_posix.cc',
194 'safe_strerror_posix.h',
195 'scoped_callback_factory.h',
196 'scoped_cftyperef.h',
199 'scoped_open_process.h',
201 'scoped_temp_dir.cc',
208 'shared_memory_posix.cc',
209 'shared_memory_win.cc',
216 'string_number_conversions.cc',
217 'string_number_conversions.h',
222 'string_tokenizer.h',
229 'sys_info_chromeos.cc',
230 'sys_info_freebsd.cc',
233 'sys_info_openbsd.cc',
236 'sys_string_conversions.h',
237 'sys_string_conversions_linux.cc',
238 'sys_string_conversions_mac.mm',
239 'sys_string_conversions_win.cc',
249 'thread_collision_warner.cc',
250 'thread_collision_warner.h',
252 'thread_local_posix.cc',
253 'thread_local_storage.h',
254 'thread_local_storage_posix.cc',
255 'thread_local_storage_win.cc',
256 'thread_local_win.cc',
262 'trace_event_win.cc',
267 'tracked_objects.cc',
270 'unix_domain_socket_posix.cc',
271 'utf_offset_string_conversions.cc',
272 'utf_offset_string_conversions.h',
273 'utf_string_conversion_utils.cc',
274 'utf_string_conversion_utils.h',
275 'utf_string_conversions.cc',
276 'utf_string_conversions.h',
282 'waitable_event_posix.cc',
283 'waitable_event_watcher.h',
284 'waitable_event_watcher_posix.cc',
285 'waitable_event_watcher_win.cc',
286 'waitable_event_win.cc',
295 'win/scoped_bstr.cc',
297 'win/scoped_comptr.h',
298 'win/scoped_gdi_object.h',
299 'win/scoped_handle.h',
301 'win/scoped_hglobal.h',
302 'win/scoped_variant.cc',
303 'win/scoped_variant.h',
304 'win/windows_version.cc',
305 'win/windows_version.h',
308 'windows_message_list.h',
310 'worker_pool_linux.cc',
311 'worker_pool_linux.h',
313 'worker_pool_mac.mm',
314 'worker_pool_win.cc',
321 # These warnings are needed for the files in third_party\dmg_fp.
322 'msvs_disabled_warnings': [
323 4244, 4554, 4018, 4102,
325 'mac_framework_dirs': [
326 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
329 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
331 ['exclude', '^nix/'],
334 'atomicops_internals_x86_gcc.cc',
335 'message_pump_glib.cc',
340 # Not automatically excluded by the *linux.cc rules.
344 'setproctitle_linux.c',
345 'setproctitle_linux.h',
354 # For now, just test the *BSD platforms enough to exclude them.
355 # Subsequent changes will include them further.
356 [ 'OS != "freebsd"', {
357 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
360 [ 'OS != "openbsd"', {
361 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
365 'sources/': [ ['exclude', '^win/'] ],
370 '<(DEPTH)/third_party/wtl/include',
373 'event_recorder_stubs.cc',
374 'file_descriptor_shuffle.cc',
375 'message_pump_libevent.cc',
376 # Not using sha1_win.cc because it may have caused a
377 # regression to page cycler moz.
385 ['base_extra_target==1', {
387 'crypto/capi_util.cc',
388 'crypto/capi_util.h',
389 'crypto/cssm_init.cc',
390 'crypto/cssm_init.h',
391 'crypto/encryptor.h',
392 'crypto/encryptor_mac.cc',
393 'crypto/encryptor_nss.cc',
394 'crypto/encryptor_win.cc',
395 'crypto/rsa_private_key.h',
396 'crypto/rsa_private_key.cc',
397 'crypto/rsa_private_key_mac.cc',
398 'crypto/rsa_private_key_nss.cc',
399 'crypto/rsa_private_key_win.cc',
400 'crypto/signature_creator.h',
401 'crypto/signature_creator_mac.cc',
402 'crypto/signature_creator_nss.cc',
403 'crypto/signature_creator_win.cc',
404 'crypto/signature_verifier.h',
405 'crypto/signature_verifier_mac.cc',
406 'crypto/signature_verifier_nss.cc',
407 'crypto/signature_verifier_win.cc',
408 'crypto/symmetric_key.h',
409 'crypto/symmetric_key_mac.cc',
410 'crypto/symmetric_key_nss.cc',
411 'crypto/symmetric_key_win.cc',
412 'third_party/nspr/prcpucfg.h',
413 'third_party/nspr/prcpucfg_win.h',
414 'third_party/nspr/prtypes.h',
415 'third_party/nss/blapi.h',
416 'third_party/nss/blapit.h',
417 'third_party/nss/sha256.h',
418 'third_party/nss/sha512.cc',
419 'third_party/purify/pure.h',
420 'third_party/purify/pure_api.c',
421 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
422 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
429 'event_recorder_stubs.cc',
430 'file_descriptor_shuffle.cc',
431 'file_descriptor_shuffle.h',
442 'message_pump_glib.cc',
443 'message_pump_glib.h',
444 'message_pump_libevent.cc',
445 'message_pump_libevent.h',
446 'message_pump_mac.h',
447 'message_pump_mac.mm',
448 'metrics/field_trial.cc',
449 'metrics/field_trial.h',
450 'nsimage_cache_mac.h',
451 'nsimage_cache_mac.mm',
454 'setproctitle_linux.c',
455 'setproctitle_linux.h',
461 'sync_socket_win.cc',
462 'sync_socket_posix.cc',
463 'thread_restrictions.h',
464 'thread_restrictions.cc',
471 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
474 'sources/': [ ['include', '_chromeos\\.cc$'] ]
482 '-Wno-write-strings',
484 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
486 ['exclude', '/xdg_user_dirs/'],
487 ['exclude', '_nss\.cc$'],
492 'crypto/cssm_init.cc',
493 'crypto/cssm_init.h',
498 'third_party/purify/pure_api.c',
499 'base_drag_source.cc',
500 'base_drop_target.cc',
502 'crypto/capi_util.h',
503 'crypto/capi_util.cc',
506 'file_version_info.cc',
521 'target_name': 'base',
522 'type': '<(library)',
523 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
526 'base_extra_target': 1,
529 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
530 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
532 # TODO(gregoryd): direct_dependent_settings should be shared with the
533 # 64-bit target, but it doesn't work due to a bug in gyp
534 'direct_dependent_settings': {
540 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
542 [ 'linux_use_tcmalloc==0', {
546 'direct_dependent_settings': {
556 '../build/util/build_util.gyp:lastchange',
557 '../build/linux/system.gyp:gtk',
558 '../build/linux/system.gyp:nss',
561 'export_dependent_settings': [
562 '../build/linux/system.gyp:gtk',
565 [ 'OS == "freebsd" or OS == "openbsd"', {
568 '-L/usr/local/lib -lexecinfo',
576 # We need rt for clock_gettime().
578 # For 'native_library_linux.cc'
586 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
587 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
588 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
589 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
590 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
591 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
595 [ 'OS == "mac" or OS == "win"', {
597 '../third_party/nss/nss.gyp:nss',
601 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
610 'target_name': 'base_nacl_win64',
611 'type': '<(library)',
612 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
617 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
619 # TODO(gregoryd): direct_dependent_settings should be shared with the
620 # 32-bit target, but it doesn't work due to a bug in gyp
621 'direct_dependent_settings': {
627 '<@(nacl_win64_defines)',
630 'i18n/icu_util_nacl_win64.cc',
634 'msvs_target_platform': 'x64',
640 [ 'OS == "linux" and internal_pdf', {
643 'target_name': 'base_fpic',
644 'type': '<(library)',
647 'base_extra_target': 1,
652 'direct_dependent_settings': {
658 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
660 '../build/util/build_util.gyp:lastchange',
661 '../build/linux/system.gyp:gtk',
662 '../build/linux/system.gyp:nss',
665 'export_dependent_settings': [
666 '../build/linux/system.gyp:gtk',
672 # We need rt for clock_gettime().
674 # For 'native_library_linux.cc'
679 [ 'OS == "mac" or OS == "win"', {
681 '../third_party/nss/nss.gyp:nss',
685 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
691 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
694 'target_name': 'symbolize',
695 'type': '<(library)',
700 [ 'OS == "solaris"', {
703 '/usr/gnu/include/libelf',
714 'third_party/symbolize/symbolize.cc',
715 'third_party/symbolize/demangle.cc',
719 'target_name': 'xdg_mime',
720 'type': '<(library)',
728 'third_party/xdg_mime/xdgmime.c',
729 'third_party/xdg_mime/xdgmime.h',
730 'third_party/xdg_mime/xdgmimealias.c',
731 'third_party/xdg_mime/xdgmimealias.h',
732 'third_party/xdg_mime/xdgmimecache.c',
733 'third_party/xdg_mime/xdgmimecache.h',
734 'third_party/xdg_mime/xdgmimeglob.c',
735 'third_party/xdg_mime/xdgmimeglob.h',
736 'third_party/xdg_mime/xdgmimeicon.c',
737 'third_party/xdg_mime/xdgmimeicon.h',
738 'third_party/xdg_mime/xdgmimeint.c',
739 'third_party/xdg_mime/xdgmimeint.h',
740 'third_party/xdg_mime/xdgmimemagic.c',
741 'third_party/xdg_mime/xdgmimemagic.h',
742 'third_party/xdg_mime/xdgmimeparent.c',
743 'third_party/xdg_mime/xdgmimeparent.h',