2013-02-19 19:49:03 +04:00
|
|
|
{
|
2013-05-15 15:42:21 +04:00
|
|
|
'variables': {
|
2013-10-08 23:23:31 +04:00
|
|
|
# We're not using Chromium's clang, so we can't use their plugins either.
|
|
|
|
'clang_use_chrome_plugins': 0,
|
2014-10-06 09:28:46 +04:00
|
|
|
# Enalbe using proprietary codecs.
|
|
|
|
'proprietary_codecs': 1,
|
2014-10-06 11:42:17 +04:00
|
|
|
'ffmpeg_branding': 'Chrome',
|
2014-08-12 05:52:23 +04:00
|
|
|
# And the gold's flags are not available in system's ld neither.
|
|
|
|
'linux_use_gold_flags': 0,
|
2014-03-03 10:33:32 +04:00
|
|
|
# Make Linux build contain debug symbols, this flag will add '-g' to cflags.
|
|
|
|
'linux_dump_symbols': 1,
|
2013-11-12 02:14:53 +04:00
|
|
|
# The Linux build of libchromiumcontent.so depends on, but doesn't
|
|
|
|
# provide, tcmalloc by default. Disabling tcmalloc here also prevents
|
|
|
|
# any conflicts when linking to binaries or libraries that don't use
|
|
|
|
# tcmalloc.
|
|
|
|
'linux_use_tcmalloc': 0,
|
2013-08-01 01:38:50 +04:00
|
|
|
'conditions': [
|
|
|
|
['OS=="win"', {
|
|
|
|
# Chrome turns this off for component builds, and we need to too. Leaving
|
|
|
|
# it on would result in both the Debug and Release CRTs being included in
|
|
|
|
# the library.
|
|
|
|
'win_use_allocator_shim': 0,
|
2013-05-22 00:31:05 +04:00
|
|
|
|
2013-08-01 01:38:50 +04:00
|
|
|
'win_release_RuntimeLibrary': '2', # 2 = /MD (nondebug DLL)
|
|
|
|
'win_debug_RuntimeLibrary': '3', # 3 = /MDd (debug DLL)
|
|
|
|
}],
|
2014-09-10 06:41:39 +04:00
|
|
|
['OS=="linux"', {
|
|
|
|
# Enable high DPI support on Linux.
|
|
|
|
'enable_hidpi': 1,
|
|
|
|
}],
|
2013-08-01 01:38:50 +04:00
|
|
|
],
|
2014-06-27 23:30:27 +04:00
|
|
|
'global_defines': [
|
|
|
|
'COMPONENT_BUILD',
|
|
|
|
'SKIA_DLL',
|
|
|
|
],
|
|
|
|
'chromiumcontent_defines': [
|
2014-06-25 20:06:41 +04:00
|
|
|
'ACCESSIBILITY_IMPLEMENTATION',
|
2014-01-21 20:26:59 +04:00
|
|
|
'ANGLE_TRANSLATOR_IMPLEMENTATION',
|
2014-06-25 20:06:41 +04:00
|
|
|
'APP_LIST_IMPLEMENTATION',
|
2014-01-21 23:42:29 +04:00
|
|
|
'AURA_IMPLEMENTATION',
|
2013-04-29 17:01:52 +04:00
|
|
|
'BASE_I18N_IMPLEMENTATION',
|
|
|
|
'BASE_IMPLEMENTATION',
|
2013-03-30 00:47:42 +04:00
|
|
|
'BASE_PREFS_IMPLEMENTATION',
|
2013-08-22 19:23:08 +04:00
|
|
|
'BLINK_COMMON_IMPLEMENTATION',
|
2014-01-22 01:19:08 +04:00
|
|
|
'BLINK_IMPLEMENTATION',
|
2014-01-22 01:16:23 +04:00
|
|
|
'BLINK_PLATFORM_IMPLEMENTATION',
|
2013-02-25 23:24:35 +04:00
|
|
|
'BUILDING_V8_SHARED',
|
2013-04-29 17:01:52 +04:00
|
|
|
'CC_IMPLEMENTATION',
|
2014-08-31 12:51:42 +04:00
|
|
|
'CC_SURFACES_IMPLEMENTATION',
|
2014-01-22 00:24:24 +04:00
|
|
|
'COMPOSITOR_IMPLEMENTATION',
|
2013-07-05 17:22:24 +04:00
|
|
|
'CONTENT_IMPLEMENTATION',
|
2013-04-29 17:01:52 +04:00
|
|
|
'CRYPTO_IMPLEMENTATION',
|
2014-06-25 20:06:41 +04:00
|
|
|
'EVENTS_BASE_IMPLEMENTATION',
|
2014-01-21 21:47:26 +04:00
|
|
|
'EVENTS_IMPLEMENTATION',
|
2014-06-25 20:06:41 +04:00
|
|
|
'GESTURE_DETECTION_IMPLEMENTATION',
|
2014-01-21 22:58:38 +04:00
|
|
|
'GFX_IMPLEMENTATION',
|
2014-06-26 00:14:05 +04:00
|
|
|
'GIN_IMPLEMENTATION',
|
2013-04-29 17:01:52 +04:00
|
|
|
'GLES2_C_LIB_IMPLEMENTATION',
|
|
|
|
'GLES2_IMPL_IMPLEMENTATION',
|
|
|
|
'GLES2_UTILS_IMPLEMENTATION',
|
2014-06-25 20:06:41 +04:00
|
|
|
'GL_IMPLEMENTATION',
|
2014-07-27 17:39:37 +04:00
|
|
|
'GL_IN_PROCESS_CONTEXT_IMPLEMENTATION',
|
2013-04-29 17:01:52 +04:00
|
|
|
'GPU_IMPLEMENTATION',
|
2014-06-25 22:49:51 +04:00
|
|
|
'HEAP_IMPLEMENTATION',
|
2013-04-29 17:01:52 +04:00
|
|
|
'IPC_IMPLEMENTATION',
|
2014-06-25 20:06:41 +04:00
|
|
|
'KEYBOARD_IMPLEMENTATION',
|
2013-04-29 17:01:52 +04:00
|
|
|
'LIBPROTOBUF_EXPORTS',
|
|
|
|
'LIBPROTOC_EXPORTS',
|
|
|
|
'MEDIA_IMPLEMENTATION',
|
2014-06-25 20:06:41 +04:00
|
|
|
'MESSAGE_CENTER_IMPLEMENTATION',
|
2014-08-31 12:26:26 +04:00
|
|
|
'METRO_VIEWER_IMPLEMENTATION',
|
2014-06-25 19:05:53 +04:00
|
|
|
'MOJO_COMMON_IMPLEMENTATION',
|
|
|
|
'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION',
|
|
|
|
'MOJO_GLES2_IMPLEMENTATION',
|
|
|
|
'MOJO_GLES2_IMPL_IMPLEMENTATION',
|
|
|
|
'MOJO_NATIVE_VIEWPORT_IMPLEMENTATION',
|
|
|
|
'MOJO_SERVICE_MANAGER_IMPLEMENTATION',
|
|
|
|
'MOJO_SYSTEM_IMPLEMENTATION',
|
|
|
|
'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
|
2013-04-29 17:01:52 +04:00
|
|
|
'NATIVE_THEME_IMPLEMENTATION',
|
|
|
|
'NET_IMPLEMENTATION',
|
2014-06-25 20:06:41 +04:00
|
|
|
'OZONE_IMPLEMENTATION',
|
2013-04-29 17:01:52 +04:00
|
|
|
'PPAPI_HOST_IMPLEMENTATION',
|
|
|
|
'PPAPI_PROXY_IMPLEMENTATION',
|
|
|
|
'PPAPI_SHARED_IMPLEMENTATION',
|
|
|
|
'PPAPI_THUNK_IMPLEMENTATION',
|
|
|
|
'PRINTING_IMPLEMENTATION',
|
|
|
|
'SHELL_DIALOGS_IMPLEMENTATION',
|
|
|
|
'SKIA_IMPLEMENTATION',
|
|
|
|
'SNAPSHOT_IMPLEMENTATION',
|
|
|
|
'SQL_IMPLEMENTATION',
|
|
|
|
'SURFACE_IMPLEMENTATION',
|
2014-06-25 18:12:51 +04:00
|
|
|
'UI_BASE_IMPLEMENTATION',
|
2013-04-29 17:01:52 +04:00
|
|
|
'UI_IMPLEMENTATION',
|
2013-08-22 17:35:26 +04:00
|
|
|
'URL_IMPLEMENTATION',
|
2014-06-25 20:06:41 +04:00
|
|
|
'U_COMBINED_IMPLEMENTATION_EXCEPT_DATA',
|
|
|
|
'U_NO_GLOBAL_NEW_DELETE',
|
|
|
|
'U_UTF8_IMPL',
|
|
|
|
'V2_IMPLEMENTATION',
|
2013-02-25 23:24:35 +04:00
|
|
|
'V8_SHARED',
|
2013-04-29 17:01:52 +04:00
|
|
|
'WEBKIT_BASE_IMPLEMENTATION',
|
2013-08-23 00:26:02 +04:00
|
|
|
'WEBKIT_CHILD_IMPLEMENTATION',
|
|
|
|
'WEBKIT_COMMON_IMPLEMENTATION',
|
2013-04-29 17:01:52 +04:00
|
|
|
'WEBKIT_COMPOSITOR_BINDINGS_IMPLEMENTATION',
|
2013-08-23 00:26:02 +04:00
|
|
|
'WEBKIT_EXTENSIONS_IMPLEMENTATION',
|
2013-04-29 17:01:52 +04:00
|
|
|
'WEBKIT_GLUE_IMPLEMENTATION',
|
|
|
|
'WEBKIT_GPU_IMPLEMENTATION',
|
|
|
|
'WEBKIT_PLUGINS_IMPLEMENTATION',
|
2013-08-23 00:26:02 +04:00
|
|
|
'WEBKIT_RENDERER_IMPLEMENTATION',
|
|
|
|
'WEBKIT_STORAGE_BROWSER_IMPLEMENTATION',
|
|
|
|
'WEBKIT_STORAGE_COMMON_IMPLEMENTATION',
|
|
|
|
'WEBKIT_STORAGE_RENDERER_IMPLEMENTATION',
|
2013-04-29 17:01:52 +04:00
|
|
|
'WEBKIT_USER_AGENT_IMPLEMENTATION',
|
2013-05-30 00:48:46 +04:00
|
|
|
'WEBORIGIN_IMPLEMENTATION',
|
|
|
|
'WTF_IMPLEMENTATION',
|
2013-02-22 02:04:17 +04:00
|
|
|
],
|
2014-06-27 23:30:27 +04:00
|
|
|
'chromiumviews_defines': [
|
2014-07-27 15:32:45 +04:00
|
|
|
'DISPLAY_IMPLEMENTATION',
|
|
|
|
'DISPLAY_UTIL_IMPLEMENTATION',
|
2014-06-27 23:30:27 +04:00
|
|
|
'VIEWS_IMPLEMENTATION',
|
|
|
|
'WEBVIEW_IMPLEMENTATION',
|
|
|
|
'WEB_DIALOGS_IMPLEMENTATION',
|
2014-07-27 15:32:45 +04:00
|
|
|
'WM_IMPLEMENTATION',
|
2014-06-27 23:30:27 +04:00
|
|
|
],
|
|
|
|
},
|
|
|
|
'target_defaults': {
|
|
|
|
'defines': [
|
|
|
|
'<@(global_defines)',
|
|
|
|
'<@(chromiumcontent_defines)',
|
|
|
|
],
|
2013-02-22 02:04:17 +04:00
|
|
|
'defines!': [
|
2013-05-22 00:31:05 +04:00
|
|
|
'_HAS_EXCEPTIONS=0',
|
2013-02-22 02:04:17 +04:00
|
|
|
'U_STATIC_IMPLEMENTATION',
|
2013-02-19 19:49:03 +04:00
|
|
|
],
|
2013-04-29 17:04:20 +04:00
|
|
|
'msvs_disabled_warnings': [
|
|
|
|
# class 'std::xx' needs to have dll-interface. Chrome turns this off
|
|
|
|
# for component builds, and we need to too.
|
|
|
|
4251,
|
|
|
|
],
|
2013-05-22 00:31:05 +04:00
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'ExceptionHandling': '1', # /EHsc
|
|
|
|
},
|
|
|
|
},
|
2013-10-08 23:22:43 +04:00
|
|
|
'xcode_settings': {
|
|
|
|
'WARNING_CFLAGS!': [
|
2014-06-23 18:37:39 +04:00
|
|
|
# Xcode 5.1 doesn't support these flags.
|
2014-06-23 17:54:50 +04:00
|
|
|
'-Wno-absolute-value',
|
2014-06-23 18:37:39 +04:00
|
|
|
'-Wno-tautological-pointer-compare',
|
2013-10-08 23:22:43 +04:00
|
|
|
],
|
|
|
|
},
|
2013-04-29 17:01:52 +04:00
|
|
|
'target_conditions': [
|
2013-04-29 17:03:22 +04:00
|
|
|
['_target_name=="base"', {
|
|
|
|
# This file doesn't work inside a shared library, and won't compile at
|
|
|
|
# all when COMPONENT_BUILD is defined.
|
|
|
|
# We can't use sources! here because that generates path names relative
|
|
|
|
# to this .gypi file, which won't match the relative path names in
|
|
|
|
# base.gyp.
|
|
|
|
'sources/': [
|
|
|
|
['exclude', 'debug/debug_on_start_win\.cc$'],
|
|
|
|
],
|
|
|
|
}],
|
2013-05-29 20:30:29 +04:00
|
|
|
# These targets get linked directly into client applications, so need
|
|
|
|
# to see symbols decorated with __declspec(dllimport).
|
2013-05-31 00:00:07 +04:00
|
|
|
['_target_name in ["base_prefs_test_support", "net_test_support", "sandbox_static", "test_support_base", "test_support_content"]', {
|
2013-05-21 19:15:08 +04:00
|
|
|
'defines!': [
|
2014-06-27 23:30:27 +04:00
|
|
|
'<@(chromiumcontent_defines)',
|
2013-05-21 19:15:08 +04:00
|
|
|
],
|
|
|
|
}],
|
2014-07-27 08:23:07 +04:00
|
|
|
['_target_name in ["views", "webview", "web_dialogs", "wm", "display", "display_util"]', {
|
2013-07-09 06:31:07 +04:00
|
|
|
'defines': [
|
2014-06-27 23:30:27 +04:00
|
|
|
'<@(chromiumviews_defines)',
|
2013-07-09 06:31:07 +04:00
|
|
|
],
|
2013-07-09 05:52:32 +04:00
|
|
|
'defines!': [
|
2014-06-27 23:30:27 +04:00
|
|
|
'<@(chromiumcontent_defines)',
|
2013-07-09 05:52:32 +04:00
|
|
|
],
|
|
|
|
}],
|
2014-08-31 09:54:10 +04:00
|
|
|
['_target_name in ["v8", "v8_snapshot", "v8_nosnapshot", "v8_external_snapshot", "v8_base", "v8_libbase", "v8_libplatform", "mksnapshot"]', {
|
|
|
|
# Override src/v8/build/toolchain.gypi's RuntimeLibrary setting.
|
2013-05-22 00:31:05 +04:00
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'RuntimeLibrary': '<(win_debug_RuntimeLibrary)',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'Release': {
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'RuntimeLibrary': '<(win_release_RuntimeLibrary)',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
2013-04-29 17:03:22 +04:00
|
|
|
],
|
2013-02-19 19:49:03 +04:00
|
|
|
},
|
|
|
|
}
|