Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: build/common.gypi

Issue 494713002: [MIPS] Add support in common.gypi for building MIPS64 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 'use_goma%': 0, 169 'use_goma%': 0,
170 'gomadir%': '', 170 'gomadir%': '',
171 171
172 # The system root for cross-compiles. Default: none. 172 # The system root for cross-compiles. Default: none.
173 'sysroot%': '', 173 'sysroot%': '',
174 'chroot_cmd%': '', 174 'chroot_cmd%': '',
175 175
176 # The system libdir used for this ABI. 176 # The system libdir used for this ABI.
177 'system_libdir%': 'lib', 177 'system_libdir%': 'lib',
178 178
179 # Default MIPS arch variant. This is set in the conditions block
180 # below for MIPS targets.
181 'mips_arch_variant%': '',
182
179 'conditions': [ 183 'conditions': [
180 # Ash needs Aura. 184 # Ash needs Aura.
181 ['use_aura==0', { 185 ['use_aura==0', {
182 'use_ash%': 0, 186 'use_ash%': 0,
183 }], 187 }],
184 188
185 # Set default value of toolkit_views based on OS. 189 # Set default value of toolkit_views based on OS.
186 ['OS=="win" or chromeos==1 or use_aura==1', { 190 ['OS=="win" or chromeos==1 or use_aura==1', {
187 'toolkit_views%': 1, 191 'toolkit_views%': 1,
188 }, { 192 }, {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 # "arm64" and "both" (meaning a fat binary). 235 # "arm64" and "both" (meaning a fat binary).
232 # 236 #
233 # TODO(sdefresne): change the default from "arm32" to "both" for 237 # TODO(sdefresne): change the default from "arm32" to "both" for
234 # "target_subarch" once http://crbug.com/339477 is fixed. 238 # "target_subarch" once http://crbug.com/339477 is fixed.
235 # 239 #
236 # TODO(sdefresne): set the "target_arch" to "arm" once compilation 240 # TODO(sdefresne): set the "target_arch" to "arm" once compilation
237 # of skia has been fixed for simulator. http://crbug.com/342377 241 # of skia has been fixed for simulator. http://crbug.com/342377
238 ['OS=="ios"', { 242 ['OS=="ios"', {
239 'target_subarch%': 'arm32', 243 'target_subarch%': 'arm32',
240 }], 244 }],
245
246 # Set arch variants for MIPS platforms.
247 ['target_arch=="mips64el"', {
248 'conditions': [
249 ['OS=="android"', {
250 'mips_arch_variant%': 'r6',
251 }, {
252 'mips_arch_variant%': 'r2',
253 }],
254 ],
255 }],
256
257 ['target_arch=="mipsel"', {
258 'mips_arch_variant%': 'r1',
259 }],
241 ], 260 ],
242 }, 261 },
243 262
244 # Copy conditionally-set variables out one scope. 263 # Copy conditionally-set variables out one scope.
245 'chromeos%': '<(chromeos)', 264 'chromeos%': '<(chromeos)',
246 'chromecast%': '<(chromecast)', 265 'chromecast%': '<(chromecast)',
247 'host_arch%': '<(host_arch)', 266 'host_arch%': '<(host_arch)',
248 'target_arch%': '<(target_arch)', 267 'target_arch%': '<(target_arch)',
249 'target_subarch%': '<(target_subarch)', 268 'target_subarch%': '<(target_subarch)',
269 'mips_arch_variant%': '<(mips_arch_variant)',
250 'toolkit_views%': '<(toolkit_views)', 270 'toolkit_views%': '<(toolkit_views)',
251 'desktop_linux%': '<(desktop_linux)', 271 'desktop_linux%': '<(desktop_linux)',
252 'use_aura%': '<(use_aura)', 272 'use_aura%': '<(use_aura)',
253 'use_ash%': '<(use_ash)', 273 'use_ash%': '<(use_ash)',
254 'use_cras%': '<(use_cras)', 274 'use_cras%': '<(use_cras)',
255 'use_ozone%': '<(use_ozone)', 275 'use_ozone%': '<(use_ozone)',
256 'use_ozone_evdev%': '<(use_ozone_evdev)', 276 'use_ozone_evdev%': '<(use_ozone_evdev)',
257 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', 277 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
258 'embedded%': '<(embedded)', 278 'embedded%': '<(embedded)',
259 'use_openssl%': '<(use_openssl)', 279 'use_openssl%': '<(use_openssl)',
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 'google_default_client_secret%': '', 1052 'google_default_client_secret%': '',
1033 # Native Client is enabled by default. 1053 # Native Client is enabled by default.
1034 'disable_nacl%': '0', 1054 'disable_nacl%': '0',
1035 }, 1055 },
1036 1056
1037 # Copy conditionally-set variables out one scope. 1057 # Copy conditionally-set variables out one scope.
1038 'branding%': '<(branding)', 1058 'branding%': '<(branding)',
1039 'buildtype%': '<(buildtype)', 1059 'buildtype%': '<(buildtype)',
1040 'target_arch%': '<(target_arch)', 1060 'target_arch%': '<(target_arch)',
1041 'target_subarch%': '<(target_subarch)', 1061 'target_subarch%': '<(target_subarch)',
1062 'mips_arch_variant%': '<(mips_arch_variant)',
1042 'host_arch%': '<(host_arch)', 1063 'host_arch%': '<(host_arch)',
1043 'toolkit_views%': '<(toolkit_views)', 1064 'toolkit_views%': '<(toolkit_views)',
1044 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', 1065 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)',
1045 'use_aura%': '<(use_aura)', 1066 'use_aura%': '<(use_aura)',
1046 'use_ash%': '<(use_ash)', 1067 'use_ash%': '<(use_ash)',
1047 'use_cras%': '<(use_cras)', 1068 'use_cras%': '<(use_cras)',
1048 'use_openssl%': '<(use_openssl)', 1069 'use_openssl%': '<(use_openssl)',
1049 'use_openssl_certs%': '<(use_openssl_certs)', 1070 'use_openssl_certs%': '<(use_openssl_certs)',
1050 'use_nss%': '<(use_nss)', 1071 'use_nss%': '<(use_nss)',
1051 'use_udev%': '<(use_udev)', 1072 'use_udev%': '<(use_udev)',
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 1333
1313 # Enable TCMalloc. 1334 # Enable TCMalloc.
1314 # Default of 'use_allocator' is set to 'none' if OS=='android' later. 1335 # Default of 'use_allocator' is set to 'none' if OS=='android' later.
1315 'use_allocator%': 'tcmalloc', 1336 'use_allocator%': 'tcmalloc',
1316 1337
1317 # Set to 1 to link against libgnome-keyring instead of using dlopen(). 1338 # Set to 1 to link against libgnome-keyring instead of using dlopen().
1318 'linux_link_gnome_keyring%': 0, 1339 'linux_link_gnome_keyring%': 0,
1319 # Set to 1 to link against gsettings APIs instead of using dlopen(). 1340 # Set to 1 to link against gsettings APIs instead of using dlopen().
1320 'linux_link_gsettings%': 0, 1341 'linux_link_gsettings%': 0,
1321 1342
1322 # Default arch variant for MIPS.
1323 'mips_arch_variant%': 'mips32r1',
1324
1325 # Enable use of OpenMAX DL FFT routines. 1343 # Enable use of OpenMAX DL FFT routines.
1326 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)', 1344 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)',
1327 1345
1328 # Enable new NPDevice API. 1346 # Enable new NPDevice API.
1329 'enable_new_npdevice_api%': 0, 1347 'enable_new_npdevice_api%': 0,
1330 1348
1331 # Enable EGLImage support in OpenMAX 1349 # Enable EGLImage support in OpenMAX
1332 'enable_eglimage%': 1, 1350 'enable_eglimage%': 1,
1333 1351
1334 # .gyp files or targets should set chromium_code to 1 if they build 1352 # .gyp files or targets should set chromium_code to 1 if they build
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 ['OS=="win" and "<!pymod_do_main(dir_exists <(directx_sdk_default_path))"= ="True"', { 1572 ['OS=="win" and "<!pymod_do_main(dir_exists <(directx_sdk_default_path))"= ="True"', {
1555 'directx_sdk_path%': '<(directx_sdk_default_path)', 1573 'directx_sdk_path%': '<(directx_sdk_default_path)',
1556 }, { 1574 }, {
1557 'directx_sdk_path%': '$(DXSDK_DIR)', 1575 'directx_sdk_path%': '$(DXSDK_DIR)',
1558 }], 1576 }],
1559 ['OS=="win"', { 1577 ['OS=="win"', {
1560 'windows_driver_kit_path%': '$(WDK_DIR)', 1578 'windows_driver_kit_path%': '$(WDK_DIR)',
1561 }], 1579 }],
1562 ['os_posix==1 and OS!="mac" and OS!="ios"', { 1580 ['os_posix==1 and OS!="mac" and OS!="ios"', {
1563 'conditions': [ 1581 'conditions': [
1564 ['target_arch=="mipsel"', { 1582 ['target_arch=="mipsel" or target_arch=="mips64el"', {
1565 'werror%': '', 1583 'werror%': '',
1566 'disable_nacl%': 1, 1584 'disable_nacl%': 1,
1567 'nacl_untrusted_build%': 0, 1585 'nacl_untrusted_build%': 0,
1568 'use_allocator%': 'none', 1586 'use_allocator%': 'none',
1569 }], 1587 }],
1570 ['OS=="linux" and target_arch=="mipsel"', { 1588 ['OS=="linux" and target_arch=="mipsel"', {
1571 'sysroot%': '<(sysroot)', 1589 'sysroot%': '<(sysroot)',
1572 'CXX%': '<(CXX)', 1590 'CXX%': '<(CXX)',
1573 }], 1591 }],
1574 # All Chrome builds have breakpad symbols, but only process the 1592 # All Chrome builds have breakpad symbols, but only process the
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 'android_ndk_lib_dir%': 'usr/lib', 1717 'android_ndk_lib_dir%': 'usr/lib',
1700 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linu x-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', 1718 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linu x-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1701 }], 1719 }],
1702 ['target_arch == "mipsel"', { 1720 ['target_arch == "mipsel"', {
1703 'android_app_abi%': 'mips', 1721 'android_app_abi%': 'mips',
1704 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/g dbserver/gdbserver', 1722 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/g dbserver/gdbserver',
1705 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-mips', 1723 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-mips',
1706 'android_ndk_lib_dir%': 'usr/lib', 1724 'android_ndk_lib_dir%': 'usr/lib',
1707 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux -android-4.8/prebuilt/<(host_os)-<(android_host_arch)/bin', 1725 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux -android-4.8/prebuilt/<(host_os)-<(android_host_arch)/bin',
1708 }], 1726 }],
1727 ['target_arch == "mips64el"', {
1728 'android_app_abi%': 'mips64',
1729 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips64 /gdbserver/gdbserver',
1730 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-L/a rch-mips64',
1731 'android_ndk_lib_dir%': 'usr/lib64',
1732 'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-lin ux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1733 'gcc_version%': 49,
1734 }],
1709 ], 1735 ],
1710 }, 1736 },
1711 # Copy conditionally-set variables out one scope. 1737 # Copy conditionally-set variables out one scope.
1712 'android_app_abi%': '<(android_app_abi)', 1738 'android_app_abi%': '<(android_app_abi)',
1713 'android_gdbserver%': '<(android_gdbserver)', 1739 'android_gdbserver%': '<(android_gdbserver)',
1714 'android_ndk_root%': '<(android_ndk_root)', 1740 'android_ndk_root%': '<(android_ndk_root)',
1715 'android_ndk_sysroot%': '<(android_ndk_sysroot)', 1741 'android_ndk_sysroot%': '<(android_ndk_sysroot)',
1716 'android_sdk_root%': '<(android_sdk_root)', 1742 'android_sdk_root%': '<(android_sdk_root)',
1717 'android_sdk_version%': '<(android_sdk_version)', 1743 'android_sdk_version%': '<(android_sdk_version)',
1718 'android_toolchain%': '<(android_toolchain)', 1744 'android_toolchain%': '<(android_toolchain)',
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
1945 'enable_pepper_cdms%': 0, 1971 'enable_pepper_cdms%': 0,
1946 }], 1972 }],
1947 1973
1948 ['OS=="android"', { 1974 ['OS=="android"', {
1949 'enable_browser_cdms%': 1, 1975 'enable_browser_cdms%': 1,
1950 }, { 1976 }, {
1951 'enable_browser_cdms%': 0, 1977 'enable_browser_cdms%': 0,
1952 }], 1978 }],
1953 1979
1954 # Native Client glibc toolchain is enabled 1980 # Native Client glibc toolchain is enabled
1955 # by default except on arm and mips. 1981 # by default except on arm, mips and mips64.
1956 ['target_arch=="arm" or target_arch=="mipsel"', { 1982 ['target_arch=="arm" or target_arch=="mipsel" or target_arch=="mips64el"', {
1957 'disable_glibc%': 1, 1983 'disable_glibc%': 1,
1958 }, { 1984 }, {
1959 'disable_glibc%': 0, 1985 'disable_glibc%': 0,
1960 }], 1986 }],
1961 1987
1962 # Set the relative path from this file to the GYP file of the JPEG 1988 # Set the relative path from this file to the GYP file of the JPEG
1963 # library used by Chromium. 1989 # library used by Chromium.
1964 ['use_system_libjpeg==1 or use_libjpeg_turbo==0', { 1990 ['use_system_libjpeg==1 or use_libjpeg_turbo==0', {
1965 # Configuration for using the system libjeg is here. 1991 # Configuration for using the system libjeg is here.
1966 'libjpeg_gyp_path': '../third_party/libjpeg/libjpeg.gyp', 1992 'libjpeg_gyp_path': '../third_party/libjpeg/libjpeg.gyp',
(...skipping 1943 matching lines...) Expand 10 before | Expand all | Expand 10 after
3910 ], 3936 ],
3911 }], 3937 }],
3912 ], 3938 ],
3913 }], 3939 }],
3914 ], 3940 ],
3915 }], 3941 }],
3916 ['target_arch=="mipsel"', { 3942 ['target_arch=="mipsel"', {
3917 'target_conditions': [ 3943 'target_conditions': [
3918 ['_toolset=="target"', { 3944 ['_toolset=="target"', {
3919 'conditions': [ 3945 'conditions': [
3920 ['android_webview_build==0 and mips_arch_variant=="mips32r2"', { 3946 ['android_webview_build==0 and mips_arch_variant=="r6"', {
3947 'cflags': ['-mips32r6', '-Wa,-mips32r6'],
3948 'conditions': [
3949 ['OS=="android"', {
3950 'ldflags': ['-mips32r6', '-Wl,-melf32ltsmip',],
3951 }],
3952 ],
3953 }],
3954 ['android_webview_build==0 and mips_arch_variant=="r2"', {
3921 'cflags': ['-mips32r2', '-Wa,-mips32r2'], 3955 'cflags': ['-mips32r2', '-Wa,-mips32r2'],
3922 }], 3956 }],
3923 ['android_webview_build==0 and mips_arch_variant!="mips32r2"', { 3957 ['android_webview_build==0 and mips_arch_variant=="r1"', {
3924 'cflags': ['-mips32', '-Wa,-mips32'], 3958 'cflags': ['-mips32', '-Wa,-mips32'],
3925 }], 3959 }],
3926 ], 3960 ],
3927 'cflags': [
3928 '-EL',
3929 '-mhard-float',
3930 ],
3931 'ldflags': [ 3961 'ldflags': [
3932 '-EL',
3933 '-Wl,--no-keep-memory' 3962 '-Wl,--no-keep-memory'
3934 ], 3963 ],
3935 'cflags_cc': [ 3964 'cflags_cc': [
3936 '-Wno-uninitialized', 3965 '-Wno-uninitialized',
3937 ], 3966 ],
3938 }], 3967 }],
3939 ], 3968 ],
3940 }], 3969 }],
3970 ['target_arch=="mips64el"', {
3971 'target_conditions': [
3972 ['_toolset=="target"', {
3973 'conditions': [
3974 ['android_webview_build==0 and mips_arch_variant=="r6"', {
3975 'cflags': ['-mips64r6', '-Wa,-mips64r6'],
3976 'ldflags': [ '-mips64r6' ],
3977 }],
3978 ['android_webview_build==0 and mips_arch_variant=="r2"', {
3979 'cflags': ['-mips64r2', '-Wa,-mips64r2'],
3980 'ldflags': [ '-mips64r2' ],
3981 }],
3982 ],
3983 'cflags_cc': [
3984 '-Wno-uninitialized',
3985 ],
3986 }],
3987 ],
3988 }],
3941 ['linux_fpic==1', { 3989 ['linux_fpic==1', {
3942 'cflags': [ 3990 'cflags': [
3943 '-fPIC', 3991 '-fPIC',
3944 ], 3992 ],
3945 'ldflags': [ 3993 'ldflags': [
3946 '-fPIC', 3994 '-fPIC',
3947 ], 3995 ],
3948 }], 3996 }],
3949 ['sysroot!=""', { 3997 ['sysroot!=""', {
3950 'target_conditions': [ 3998 'target_conditions': [
(...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after
5710 # settings in target dicts. SYMROOT is a special case, because many other 5758 # settings in target dicts. SYMROOT is a special case, because many other
5711 # Xcode variables depend on it, including variables such as 5759 # Xcode variables depend on it, including variables such as
5712 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5760 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5713 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5761 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5714 # files to appear (when present) in the UI as actual files and not red 5762 # files to appear (when present) in the UI as actual files and not red
5715 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5763 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5716 # and therefore SYMROOT, needs to be set at the project level. 5764 # and therefore SYMROOT, needs to be set at the project level.
5717 'SYMROOT': '<(DEPTH)/xcodebuild', 5765 'SYMROOT': '<(DEPTH)/xcodebuild',
5718 }, 5766 },
5719 } 5767 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698