blob: 0c556f1985532932fc706b5777699e3dab5cde94 [file] [log] [blame]
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'target_defaults': {
'variables': {
'base_target': 0,
},
'target_conditions': [
# This part is shared between the targets defined below.
['base_target==1', {
'sources': [
'../build/build_config.h',
'third_party/dmg_fp/dmg_fp.h',
'third_party/dmg_fp/g_fmt.cc',
'third_party/dmg_fp/dtoa_wrapper.cc',
'third_party/icu/icu_utf.cc',
'third_party/icu/icu_utf.h',
'third_party/nspr/prtime.cc',
'third_party/nspr/prtime.h',
'third_party/nspr/prcpucfg_linux.h',
'third_party/xdg_mime/xdgmime.h',
'android/scoped_java_ref.cc',
'android/scoped_java_ref.h',
'android/jni_android.cc',
'android/jni_android.h',
'android/jni_array.cc',
'android/jni_array.h',
'android/jni_string.cc',
'android/jni_string.h',
'android/path_utils.cc',
'android/path_utils.h',
'at_exit.cc',
'at_exit.h',
'atomic_ref_count.h',
'atomic_sequence_num.h',
'atomicops.h',
'atomicops_internals_x86_gcc.cc',
'atomicops_internals_x86_gcc.h',
'atomicops_internals_x86_msvc.h',
'base_export.h',
'base_paths.cc',
'base_paths.h',
'base_paths_android.cc',
'base_paths_mac.h',
'base_paths_mac.mm',
'base_paths_posix.cc',
'base_paths_win.cc',
'base_paths_win.h',
'base_switches.h',
'basictypes.h',
'bind.h',
'bind_helpers.cc',
'bind_helpers.h',
'bind_internal.h',
'bind_internal_win.h',
'bits.h',
'build_time.cc',
'build_time.h',
'callback.h',
'callback_internal.cc',
'callback_internal.h',
'cancelable_callback.h',
'chromeos/chromeos_version.cc',
'chromeos/chromeos_version.h',
'command_line.cc',
'command_line.h',
'compiler_specific.h',
'cpu.cc',
'cpu.h',
'debug/alias.cc',
'debug/alias.h',
'debug/debug_on_start_win.cc',
'debug/debug_on_start_win.h',
'debug/debugger.cc',
'debug/debugger.h',
'debug/debugger_posix.cc',
'debug/debugger_win.cc',
'debug/leak_annotations.h',
'debug/leak_tracker.h',
'debug/profiler.cc',
'debug/profiler.h',
'debug/stack_trace.cc',
'debug/stack_trace.h',
'debug/stack_trace_android.cc',
'debug/stack_trace_posix.cc',
'debug/stack_trace_win.cc',
'debug/trace_event.cc',
'debug/trace_event.h',
'debug/trace_event_impl.cc',
'debug/trace_event_impl.h',
'debug/trace_event_win.cc',
'dir_reader_fallback.h',
'dir_reader_linux.h',
'dir_reader_posix.h',
'eintr_wrapper.h',
'environment.cc',
'environment.h',
'file_descriptor_posix.h',
'file_path.cc',
'file_path.h',
'file_util.cc',
'file_util.h',
'file_util_android.cc',
'file_util_linux.cc',
'file_util_mac.mm',
'file_util_posix.cc',
'file_util_win.cc',
'file_util_proxy.cc',
'file_util_proxy.h',
'file_version_info.h',
'file_version_info_mac.h',
'file_version_info_mac.mm',
'file_version_info_win.cc',
'file_version_info_win.h',
'files/file_path_watcher.cc',
'files/file_path_watcher.h',
'files/file_path_watcher_kqueue.cc',
'files/file_path_watcher_linux.cc',
'files/file_path_watcher_stub.cc',
'files/file_path_watcher_win.cc',
'float_util.h',
'format_macros.h',
'global_descriptors_posix.cc',
'global_descriptors_posix.h',
'gtest_prod_util.h',
'hash_tables.h',
'id_map.h',
'json/json_file_value_serializer.cc',
'json/json_file_value_serializer.h',
'json/json_reader.cc',
'json/json_reader.h',
'json/json_string_value_serializer.cc',
'json/json_string_value_serializer.h',
'json/json_value_converter.h',
'json/json_writer.cc',
'json/json_writer.h',
'json/string_escape.cc',
'json/string_escape.h',
'lazy_instance.cc',
'lazy_instance.h',
'linked_list.h',
'location.cc',
'location.h',
'logging.cc',
'logging.h',
'logging_win.cc',
'logging_win.h',
'mac/bundle_locations.h',
'mac/bundle_locations.mm',
'mac/cocoa_protocols.h',
'mac/crash_logging.h',
'mac/crash_logging.mm',
'mac/foundation_util.h',
'mac/foundation_util.mm',
'mac/mac_logging.h',
'mac/mac_logging.cc',
'mac/mac_util.h',
'mac/mac_util.mm',
'mac/objc_property_releaser.h',
'mac/objc_property_releaser.mm',
'mac/os_crash_dumps.cc',
'mac/os_crash_dumps.h',
'mac/scoped_aedesc.h',
'mac/scoped_cftyperef.h',
'mac/scoped_nsautorelease_pool.h',
'mac/scoped_nsautorelease_pool.mm',
'mac/scoped_nsexception_enabler.h',
'mac/scoped_nsexception_enabler.mm',
'mac/scoped_sending_event.h',
'mac/scoped_sending_event.mm',
'mach_ipc_mac.h',
'mach_ipc_mac.mm',
'memory/linked_ptr.h',
'memory/mru_cache.h',
'memory/raw_scoped_refptr_mismatch_checker.h',
'memory/ref_counted.cc',
'memory/ref_counted.h',
'memory/ref_counted_memory.cc',
'memory/ref_counted_memory.h',
'memory/scoped_handle.h',
'memory/scoped_nsobject.h',
'memory/scoped_open_process.h',
'memory/scoped_ptr.h',
'memory/scoped_vector.h',
'memory/singleton.cc',
'memory/singleton.h',
'memory/weak_ptr.cc',
'memory/weak_ptr.h',
'message_loop.cc',
'message_loop.h',
'message_loop_helpers.h',
'message_loop_proxy.cc',
'message_loop_proxy.h',
'message_loop_proxy_impl.cc',
'message_loop_proxy_impl.h',
'message_pump.cc',
'message_pump.h',
'message_pump_default.cc',
'message_pump_default.h',
'message_pump_win.cc',
'message_pump_win.h',
'metrics/histogram.cc',
'metrics/histogram.h',
'metrics/stats_counters.cc',
'metrics/stats_counters.h',
'metrics/stats_table.cc',
'metrics/stats_table.h',
'move.h',
'native_library.h',
'native_library_mac.mm',
'native_library_posix.cc',
'native_library_win.cc',
'observer_list.h',
'observer_list_threadsafe.h',
'os_compat_android.cc',
'os_compat_android.h',
'path_service.cc',
'path_service.h',
'pending_task.cc',
'pending_task.h',
'pickle.cc',
'pickle.h',
'platform_file.cc',
'platform_file.h',
'platform_file_posix.cc',
'platform_file_win.cc',
'port.h',
'process.h',
'process_linux.cc',
'process_posix.cc',
'process_util.cc',
'process_util.h',
'process_util_freebsd.cc',
'process_util_linux.cc',
'process_util_mac.mm',
'process_util_openbsd.cc',
'process_util_posix.cc',
'process_util_win.cc',
'process_win.cc',
'profiler/scoped_profile.cc',
'profiler/scoped_profile.h',
'profiler/alternate_timer.cc',
'profiler/alternate_timer.h',
'profiler/tracked_time.cc',
'profiler/tracked_time.h',
'property_bag.cc',
'property_bag.h',
'rand_util.cc',
'rand_util.h',
'rand_util_c.h',
'rand_util_posix.cc',
'rand_util_win.cc',
'safe_strerror_posix.cc',
'safe_strerror_posix.h',
'scoped_native_library.cc',
'scoped_native_library.h',
'scoped_temp_dir.cc',
'scoped_temp_dir.h',
'sequenced_task_runner.cc',
'sequenced_task_runner.h',
'sequenced_task_runner_helpers.h',
'sha1.h',
'sha1_portable.cc',
'sha1_win.cc',
'shared_memory.h',
'shared_memory_android.cc',
'shared_memory_posix.cc',
'shared_memory_win.cc',
'single_thread_task_runner.h',
'stack_container.h',
'stl_util.h',
'string_number_conversions.cc',
'string_number_conversions.h',
'string_piece.cc',
'string_piece.h',
'string_split.cc',
'string_split.h',
'string_tokenizer.h',
'string_util.cc',
'string_util.h',
'string_util_posix.h',
'string_util_win.h',
'stringize_macros.h',
'stringprintf.cc',
'stringprintf.h',
'supports_user_data.cc',
'supports_user_data.h',
'synchronization/cancellation_flag.cc',
'synchronization/cancellation_flag.h',
'synchronization/condition_variable.h',
'synchronization/condition_variable_posix.cc',
'synchronization/condition_variable_win.cc',
'synchronization/lock.cc',
'synchronization/lock.h',
'synchronization/lock_impl.h',
'synchronization/lock_impl_posix.cc',
'synchronization/lock_impl_win.cc',
'synchronization/spin_wait.h',
'synchronization/waitable_event.h',
'synchronization/waitable_event_posix.cc',
'synchronization/waitable_event_watcher.h',
'synchronization/waitable_event_watcher_posix.cc',
'synchronization/waitable_event_watcher_win.cc',
'synchronization/waitable_event_win.cc',
'system_monitor/system_monitor.cc',
'system_monitor/system_monitor.h',
'system_monitor/system_monitor_android.cc',
'system_monitor/system_monitor_mac.mm',
'system_monitor/system_monitor_posix.cc',
'system_monitor/system_monitor_win.cc',
'sys_byteorder.h',
'sys_info.h',
'sys_info_chromeos.cc',
'sys_info_freebsd.cc',
'sys_info_linux.cc',
'sys_info_mac.cc',
'sys_info_openbsd.cc',
'sys_info_posix.cc',
'sys_info_win.cc',
'sys_string_conversions.h',
'sys_string_conversions_mac.mm',
'sys_string_conversions_posix.cc',
'sys_string_conversions_win.cc',
'task_runner.cc',
'task_runner.h',
'template_util.h',
'threading/non_thread_safe.h',
'threading/non_thread_safe_impl.cc',
'threading/non_thread_safe_impl.h',
'threading/platform_thread.h',
'threading/platform_thread_mac.mm',
'threading/platform_thread_posix.cc',
'threading/platform_thread_win.cc',
'threading/post_task_and_reply_impl.cc',
'threading/post_task_and_reply_impl.h',
'threading/sequenced_worker_pool.cc',
'threading/sequenced_worker_pool.h',
'threading/simple_thread.cc',
'threading/simple_thread.h',
'threading/thread.cc',
'threading/thread.h',
'threading/thread_checker.h',
'threading/thread_checker_impl.cc',
'threading/thread_checker_impl.h',
'threading/thread_collision_warner.cc',
'threading/thread_collision_warner.h',
'threading/thread_local.h',
'threading/thread_local_posix.cc',
'threading/thread_local_storage.h',
'threading/thread_local_storage_posix.cc',
'threading/thread_local_storage_win.cc',
'threading/thread_local_win.cc',
'threading/thread_restrictions.h',
'threading/thread_restrictions.cc',
'threading/watchdog.cc',
'threading/watchdog.h',
'threading/worker_pool.h',
'threading/worker_pool.cc',
'threading/worker_pool_posix.cc',
'threading/worker_pool_posix.h',
'threading/worker_pool_win.cc',
'time.cc',
'time.h',
'time_win.cc',
'timer.cc',
'timer.h',
'tracked_objects.cc',
'tracked_objects.h',
'tracking_info.cc',
'tracking_info.h',
'tuple.h',
'utf_offset_string_conversions.cc',
'utf_offset_string_conversions.h',
'utf_string_conversion_utils.cc',
'utf_string_conversion_utils.h',
'utf_string_conversions.cc',
'utf_string_conversions.h',
'values.cc',
'values.h',
'value_conversions.cc',
'value_conversions.h',
'version.cc',
'version.h',
'vlog.cc',
'vlog.h',
'nix/mime_util_xdg.cc',
'nix/mime_util_xdg.h',
'nix/xdg_util.cc',
'nix/xdg_util.h',
'wayland/wayland_event.h',
'win/enum_variant.h',
'win/enum_variant.cc',
'win/event_trace_consumer.h',
'win/event_trace_controller.cc',
'win/event_trace_controller.h',
'win/event_trace_provider.cc',
'win/event_trace_provider.h',
'win/i18n.cc',
'win/i18n.h',
'win/iat_patch_function.cc',
'win/iat_patch_function.h',
'win/iunknown_impl.h',
'win/iunknown_impl.cc',
'win/object_watcher.cc',
'win/object_watcher.h',
'win/registry.cc',
'win/registry.h',
'win/resource_util.cc',
'win/resource_util.h',
'win/sampling_profiler.cc',
'win/sampling_profiler.h',
'win/scoped_bstr.cc',
'win/scoped_bstr.h',
'win/scoped_co_mem.h',
'win/scoped_com_initializer.h',
'win/scoped_comptr.h',
'win/scoped_gdi_object.h',
'win/scoped_handle.h',
'win/scoped_hdc.h',
'win/scoped_hglobal.h',
'win/scoped_select_object.h',
'win/scoped_variant.cc',
'win/scoped_variant.h',
'win/windows_version.cc',
'win/windows_version.h',
'win/win_util.cc',
'win/win_util.h',
'win/wrapped_window_proc.cc',
'win/wrapped_window_proc.h',
],
'defines': [
'BASE_IMPLEMENTATION',
],
'include_dirs': [
'..',
],
# These warnings are needed for the files in third_party\dmg_fp.
'msvs_disabled_warnings': [
4244, 4554, 4018, 4102,
],
'mac_framework_dirs': [
'$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
],
'conditions': [
[ 'use_glib==0', {
'sources/': [
['exclude', '^nix/'],
],
'sources!': [
'atomicops_internals_x86_gcc.cc',
'message_pump_glib.cc',
'message_pump_x.cc',
],
}],
[ 'toolkit_uses_gtk==0', {
'sources!': [ 'message_pump_gtk.cc', ],
}],
[ 'use_aura==0 or OS == "win" or OS == "mac"', {
'sources!' : [ 'message_pump_x.cc', ],
}, {
'sources!' : [ 'message_pump_gtk.cc', ],
'sources/' : [ [ 'include', '^message_pump_x\\.cc$', ] ],
}],
[ 'use_wayland==1', {
'sources/': [
[ 'exclude', '^message_pump_gtk\\.cc$',],
[ 'exclude', '^message_pump_x\\.cc$',],
],
}],
[ 'OS != "linux" and os_bsd != 1', {
'sources!': [
# Not automatically excluded by the *linux.cc rules.
'linux_util.cc',
],
},
],
[ 'OS == "android"', {
'sources!': [
'files/file_path_watcher_kqueue.cc',
'system_monitor/system_monitor_posix.cc',
],
'sources/': [
['include', '^process_util_linux\\.cc$'],
['include', '^sys_info_linux\\.cc$'],
['include', '^sys_string_conversions_posix\\.cc$'],
['include', '^worker_pool_linux\\.cc$'],
],
}],
[ 'OS != "mac"', {
'sources!': [
'mac/scoped_aedesc.h'
],
}],
# For now, just test the *BSD platforms enough to exclude them.
# Subsequent changes will include them further.
[ 'OS != "freebsd"', {
'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
},
],
[ 'OS != "openbsd"', {
'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
},
],
['OS != "win"', {
'sources/': [ ['exclude', '^win/'] ],
},
],
['OS != "android"', {
'sources/': [ ['exclude', '^android/'] ],
},
],
[ 'OS == "win"', {
'include_dirs': [
'<(DEPTH)/third_party/wtl/include',
],
'sources!': [
'event_recorder_stubs.cc',
'file_descriptor_shuffle.cc',
'files/file_path_watcher_kqueue.cc',
'files/file_path_watcher_stub.cc',
'message_pump_libevent.cc',
# Not using sha1_win.cc because it may have caused a
# regression to page cycler moz.
'sha1_win.cc',
'string16.cc',
],
},],
[ 'OS == "linux"', {
'sources!': [
'files/file_path_watcher_kqueue.cc',
'files/file_path_watcher_stub.cc',
],
}],
[ 'OS == "mac"', {
'sources/': [
['exclude', '^files/file_path_watcher_stub\\.cc$'],
['exclude', '^base_paths_posix\\.cc$'],
['exclude', '^native_library_posix\\.cc$'],
['exclude', '^sys_string_conversions_posix\\.cc$'],
],
}],
[ 'os_bsd==1', {
'sources/': [
['exclude', '^files/file_path_watcher_linux\\.cc$'],
['exclude', '^files/file_path_watcher_stub\\.cc$'],
['exclude', '^file_util_linux\\.cc$'],
['exclude', '^process_linux\\.cc$'],
['exclude', '^process_util_linux\\.cc$'],
['exclude', '^sys_info_linux\\.cc$'],
],
}],
[ 'chromeos != 1', {
'sources/': [
['exclude', '^chromeos/'],
],
}],
],
}],
],
},
'targets': [
{
'target_name': 'base',
'type': '<(component)',
'toolsets': ['host', 'target'],
'variables': {
'base_target': 1,
'enable_wexit_time_destructors': 1,
'optimize': 'max',
},
'dependencies': [
'base_static',
'../testing/gtest.gyp:gtest_prod',
'../third_party/modp_b64/modp_b64.gyp:modp_b64',
'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
],
# TODO(gregoryd): direct_dependent_settings should be shared with the
# 64-bit target, but it doesn't work due to a bug in gyp
'direct_dependent_settings': {
'include_dirs': [
'..',
],
},
'conditions': [
[ 'use_glib==1', {
'conditions': [
[ 'chromeos==1', {
'sources/': [ ['include', '_chromeos\\.cc$'] ]
},
],
[ 'linux_use_tcmalloc==0', {
'defines': [
'NO_TCMALLOC',
],
'direct_dependent_settings': {
'defines': [
'NO_TCMALLOC',
],
},
},
],
[ 'toolkit_uses_gtk==1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
'export_dependent_settings': [
'../build/linux/system.gyp:gtk',
],
}],
],
'dependencies': [
'symbolize',
'../build/util/build_util.gyp:lastchange#target',
'../build/linux/system.gyp:glib',
'../build/linux/system.gyp:x11',
'xdg_mime',
],
'defines': [
'USE_SYMBOLIZE',
],
'cflags': [
'-Wno-write-strings',
],
'export_dependent_settings': [
'../build/linux/system.gyp:glib',
'../build/linux/system.gyp:x11',
],
}, { # use_glib!=1
'sources/': [
['exclude', '/xdg_user_dirs/'],
['exclude', '_nss\.cc$'],
],
}],
[ 'OS == "android" and _toolset == "host"', {
# Base for host support is the minimum required to run the
# ssl false start blacklist tool. It requires further changes
# to generically support host builds (and tests).
# Note: when building for host, gyp has OS == "android",
# hence the *_android.cc files are included but the actual code
# doesn't have OS_ANDROID / ANDROID defined.
'conditions': [
['host_os == "linux"', {
'sources/': [
['include', '^atomicops_internals_x86_gcc\\.cc$'],
],
'dependencies': [
'../build/linux/system.gyp:glib',
],
'export_dependent_settings': [
'../build/linux/system.gyp:glib',
],
}],
['host_os == "mac"', {
'sources/': [
['exclude', '^native_library_linux\\.cc$'],
['exclude', '^process_util_linux\\.cc$'],
['exclude', '^sys_info_linux\\.cc$'],
['exclude', '^sys_string_conversions_linux\\.cc$'],
['exclude', '^worker_pool_linux\\.cc$'],
],
}],
],
}],
[ 'OS == "android" and _toolset == "target"', {
'dependencies': [
'symbolize',
'../third_party/ashmem/ashmem.gyp:ashmem',
'android/java/java.gyp:base_java',
'base_jni_headers',
],
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/base',
],
'link_settings': {
'libraries': [
'-llog',
],
},
'defines': [
'USE_SYMBOLIZE',
],
'sources!': [
'debug/stack_trace.cc',
'debug/stack_trace_posix.cc',
],
}],
[ 'os_bsd==1', {
'include_dirs': [
'/usr/local/include',
],
'link_settings': {
'libraries': [
'-L/usr/local/lib -lexecinfo',
],
},
},
],
[ 'OS == "linux"', {
'link_settings': {
'libraries': [
# We need rt for clock_gettime().
'-lrt',
# For 'native_library_linux.cc'
'-ldl',
],
},
}],
[ 'OS == "mac"', {
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
'$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
'$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
'$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
'$(SDKROOT)/System/Library/Frameworks/Security.framework',
],
},
'dependencies': [
'../third_party/mach_override/mach_override.gyp:mach_override',
],
}],
[ 'OS != "win"', {
'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
},],
[ 'component=="shared_library"', {
'conditions': [
['OS=="win"', {
'sources!': [
'debug/debug_on_start_win.cc',
],
}],
],
}],
],
'sources': [
'third_party/nspr/prcpucfg.h',
'third_party/nspr/prcpucfg_win.h',
'third_party/nspr/prtypes.h',
'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
'auto_reset.h',
'base64.cc',
'base64.h',
'event_recorder.h',
'event_recorder_stubs.cc',
'event_recorder_win.cc',
'file_descriptor_shuffle.cc',
'file_descriptor_shuffle.h',
'linux_util.cc',
'linux_util.h',
'md5.cc',
'md5.h',
'message_pump_android.cc',
'message_pump_android.h',
'message_pump_glib.cc',
'message_pump_glib.h',
'message_pump_gtk.cc',
'message_pump_gtk.h',
'message_pump_observer.h',
'message_pump_x.cc',
'message_pump_x.h',
'message_pump_libevent.cc',
'message_pump_libevent.h',
'message_pump_mac.h',
'message_pump_mac.mm',
'message_pump_wayland.h',
'metrics/field_trial.cc',
'metrics/field_trial.h',
'string16.cc',
'string16.h',
'sync_socket.h',
'sync_socket_win.cc',
'sync_socket_posix.cc',
'time_mac.cc',
'time_posix.cc',
],
},
],
'conditions': [
[ 'OS == "win"', {
'targets': [
{
'target_name': 'base_nacl_win64',
'type': '<(component)',
'variables': {
'base_target': 1,
},
'dependencies': [
'base_static_win64',
'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
],
# TODO(gregoryd): direct_dependent_settings should be shared with the
# 32-bit target, but it doesn't work due to a bug in gyp
'direct_dependent_settings': {
'include_dirs': [
'..',
],
},
'defines': [
'<@(nacl_win64_defines)',
],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
'conditions': [
[ 'component == "shared_library"', {
'sources!': [
'debug/debug_on_start_win.cc',
],
}],
],
},
{
'target_name': 'base_i18n_nacl_win64',
'type': '<(component)',
# TODO(gregoryd): direct_dependent_settings should be shared with the
# 32-bit target, but it doesn't work due to a bug in gyp
'direct_dependent_settings': {
'include_dirs': [
'..',
],
},
'defines': [
'<@(nacl_win64_defines)',
'BASE_I18N_IMPLEMENTATION',
],
'include_dirs': [
'..',
],
'sources': [
'i18n/icu_util_nacl_win64.cc',
],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
},
],
}],
[ 'os_posix==1 and OS!="mac"', {
'targets': [
{
'target_name': 'symbolize',
'type': 'static_library',
'toolsets': ['host', 'target'],
'variables': {
'chromium_code': 0,
},
'conditions': [
[ 'OS == "solaris"', {
'include_dirs': [
'/usr/gnu/include',
'/usr/gnu/include/libelf',
],
},],
],
'cflags': [
'-Wno-sign-compare',
],
'cflags!': [
'-Wextra',
],
'sources': [
'third_party/symbolize/config.h',
'third_party/symbolize/demangle.cc',
'third_party/symbolize/demangle.h',
'third_party/symbolize/glog/logging.h',
'third_party/symbolize/glog/raw_logging.h',
'third_party/symbolize/symbolize.cc',
'third_party/symbolize/symbolize.h',
'third_party/symbolize/utilities.h',
],
'include_dirs': [
'..',
],
},
{
'target_name': 'xdg_mime',
'type': 'static_library',
'toolsets': ['host', 'target'],
'variables': {
'chromium_code': 0,
},
'cflags!': [
'-Wextra',
],
'sources': [
'third_party/xdg_mime/xdgmime.c',
'third_party/xdg_mime/xdgmime.h',
'third_party/xdg_mime/xdgmimealias.c',
'third_party/xdg_mime/xdgmimealias.h',
'third_party/xdg_mime/xdgmimecache.c',
'third_party/xdg_mime/xdgmimecache.h',
'third_party/xdg_mime/xdgmimeglob.c',
'third_party/xdg_mime/xdgmimeglob.h',
'third_party/xdg_mime/xdgmimeicon.c',
'third_party/xdg_mime/xdgmimeicon.h',
'third_party/xdg_mime/xdgmimeint.c',
'third_party/xdg_mime/xdgmimeint.h',
'third_party/xdg_mime/xdgmimemagic.c',
'third_party/xdg_mime/xdgmimemagic.h',
'third_party/xdg_mime/xdgmimeparent.c',
'third_party/xdg_mime/xdgmimeparent.h',
],
},
],
}],
],
}