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

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: Reduce ndk configurations. 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.
180 'mips_arch_variant%': '',
rmcilroy 2014/08/26 17:40:19 Mention in the comment is set in the conditions bl
petarj 2014/08/27 13:24:52 Done.
181
179 'conditions': [ 182 'conditions': [
180 # Ash needs Aura. 183 # Ash needs Aura.
181 ['use_aura==0', { 184 ['use_aura==0', {
182 'use_ash%': 0, 185 'use_ash%': 0,
183 }], 186 }],
184 187
185 # Set default value of toolkit_views based on OS. 188 # Set default value of toolkit_views based on OS.
186 ['OS=="win" or chromeos==1 or use_aura==1', { 189 ['OS=="win" or chromeos==1 or use_aura==1', {
187 'toolkit_views%': 1, 190 'toolkit_views%': 1,
188 }, { 191 }, {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 # "arm64" and "both" (meaning a fat binary). 234 # "arm64" and "both" (meaning a fat binary).
232 # 235 #
233 # TODO(sdefresne): change the default from "arm32" to "both" for 236 # TODO(sdefresne): change the default from "arm32" to "both" for
234 # "target_subarch" once http://crbug.com/339477 is fixed. 237 # "target_subarch" once http://crbug.com/339477 is fixed.
235 # 238 #
236 # TODO(sdefresne): set the "target_arch" to "arm" once compilation 239 # TODO(sdefresne): set the "target_arch" to "arm" once compilation
237 # of skia has been fixed for simulator. http://crbug.com/342377 240 # of skia has been fixed for simulator. http://crbug.com/342377
238 ['OS=="ios"', { 241 ['OS=="ios"', {
239 'target_subarch%': 'arm32', 242 'target_subarch%': 'arm32',
240 }], 243 }],
244
245 # Set arch variants for MIPS platforms.
246 ['target_arch=="mips64el"', {
247 'conditions': [
248 ['OS=="android"', {
249 'mips_arch_variant%': 'r6',
250 }, {
251 'mips_arch_variant%': 'r2',
252 }],
253 ],
254 }],
rmcilroy 2014/08/26 17:40:19 insert a newline between the conditions
petarj 2014/08/27 13:24:52 Done.
255 ['target_arch=="mipsel"', {
256 'mips_arch_variant%': 'r1',
257 }],
241 ], 258 ],
242 }, 259 },
243 260
244 # Copy conditionally-set variables out one scope. 261 # Copy conditionally-set variables out one scope.
245 'chromeos%': '<(chromeos)', 262 'chromeos%': '<(chromeos)',
246 'chromecast%': '<(chromecast)', 263 'chromecast%': '<(chromecast)',
247 'host_arch%': '<(host_arch)', 264 'host_arch%': '<(host_arch)',
248 'target_arch%': '<(target_arch)', 265 'target_arch%': '<(target_arch)',
249 'target_subarch%': '<(target_subarch)', 266 'target_subarch%': '<(target_subarch)',
267 'mips_arch_variant%': '<(mips_arch_variant)',
250 'toolkit_views%': '<(toolkit_views)', 268 'toolkit_views%': '<(toolkit_views)',
251 'desktop_linux%': '<(desktop_linux)', 269 'desktop_linux%': '<(desktop_linux)',
252 'use_aura%': '<(use_aura)', 270 'use_aura%': '<(use_aura)',
253 'use_ash%': '<(use_ash)', 271 'use_ash%': '<(use_ash)',
254 'use_cras%': '<(use_cras)', 272 'use_cras%': '<(use_cras)',
255 'use_ozone%': '<(use_ozone)', 273 'use_ozone%': '<(use_ozone)',
256 'use_ozone_evdev%': '<(use_ozone_evdev)', 274 'use_ozone_evdev%': '<(use_ozone_evdev)',
257 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', 275 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
258 'embedded%': '<(embedded)', 276 'embedded%': '<(embedded)',
259 'use_openssl%': '<(use_openssl)', 277 'use_openssl%': '<(use_openssl)',
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 'google_default_client_secret%': '', 1050 'google_default_client_secret%': '',
1033 # Native Client is enabled by default. 1051 # Native Client is enabled by default.
1034 'disable_nacl%': '0', 1052 'disable_nacl%': '0',
1035 }, 1053 },
1036 1054
1037 # Copy conditionally-set variables out one scope. 1055 # Copy conditionally-set variables out one scope.
1038 'branding%': '<(branding)', 1056 'branding%': '<(branding)',
1039 'buildtype%': '<(buildtype)', 1057 'buildtype%': '<(buildtype)',
1040 'target_arch%': '<(target_arch)', 1058 'target_arch%': '<(target_arch)',
1041 'target_subarch%': '<(target_subarch)', 1059 'target_subarch%': '<(target_subarch)',
1060 'mips_arch_variant%': '<(mips_arch_variant)',
1042 'host_arch%': '<(host_arch)', 1061 'host_arch%': '<(host_arch)',
1043 'toolkit_views%': '<(toolkit_views)', 1062 'toolkit_views%': '<(toolkit_views)',
1044 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', 1063 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)',
1045 'use_aura%': '<(use_aura)', 1064 'use_aura%': '<(use_aura)',
1046 'use_ash%': '<(use_ash)', 1065 'use_ash%': '<(use_ash)',
1047 'use_cras%': '<(use_cras)', 1066 'use_cras%': '<(use_cras)',
1048 'use_openssl%': '<(use_openssl)', 1067 'use_openssl%': '<(use_openssl)',
1049 'use_openssl_certs%': '<(use_openssl_certs)', 1068 'use_openssl_certs%': '<(use_openssl_certs)',
1050 'use_nss%': '<(use_nss)', 1069 'use_nss%': '<(use_nss)',
1051 'use_udev%': '<(use_udev)', 1070 'use_udev%': '<(use_udev)',
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 1331
1313 # Enable TCMalloc. 1332 # Enable TCMalloc.
1314 # Default of 'use_allocator' is set to 'none' if OS=='android' later. 1333 # Default of 'use_allocator' is set to 'none' if OS=='android' later.
1315 'use_allocator%': 'tcmalloc', 1334 'use_allocator%': 'tcmalloc',
1316 1335
1317 # Set to 1 to link against libgnome-keyring instead of using dlopen(). 1336 # Set to 1 to link against libgnome-keyring instead of using dlopen().
1318 'linux_link_gnome_keyring%': 0, 1337 'linux_link_gnome_keyring%': 0,
1319 # Set to 1 to link against gsettings APIs instead of using dlopen(). 1338 # Set to 1 to link against gsettings APIs instead of using dlopen().
1320 'linux_link_gsettings%': 0, 1339 'linux_link_gsettings%': 0,
1321 1340
1322 # Default arch variant for MIPS.
1323 'mips_arch_variant%': 'mips32r1',
1324
1325 # Enable use of OpenMAX DL FFT routines. 1341 # Enable use of OpenMAX DL FFT routines.
1326 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)', 1342 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)',
1327 1343
1328 # Enable new NPDevice API. 1344 # Enable new NPDevice API.
1329 'enable_new_npdevice_api%': 0, 1345 'enable_new_npdevice_api%': 0,
1330 1346
1331 # Enable EGLImage support in OpenMAX 1347 # Enable EGLImage support in OpenMAX
1332 'enable_eglimage%': 1, 1348 'enable_eglimage%': 1,
1333 1349
1334 # .gyp files or targets should set chromium_code to 1 if they build 1350 # .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"', { 1570 ['OS=="win" and "<!pymod_do_main(dir_exists <(directx_sdk_default_path))"= ="True"', {
1555 'directx_sdk_path%': '<(directx_sdk_default_path)', 1571 'directx_sdk_path%': '<(directx_sdk_default_path)',
1556 }, { 1572 }, {
1557 'directx_sdk_path%': '$(DXSDK_DIR)', 1573 'directx_sdk_path%': '$(DXSDK_DIR)',
1558 }], 1574 }],
1559 ['OS=="win"', { 1575 ['OS=="win"', {
1560 'windows_driver_kit_path%': '$(WDK_DIR)', 1576 'windows_driver_kit_path%': '$(WDK_DIR)',
1561 }], 1577 }],
1562 ['os_posix==1 and OS!="mac" and OS!="ios"', { 1578 ['os_posix==1 and OS!="mac" and OS!="ios"', {
1563 'conditions': [ 1579 'conditions': [
1564 ['target_arch=="mipsel"', { 1580 ['target_arch=="mipsel" or target_arch=="mips64el"', {
1565 'werror%': '', 1581 'werror%': '',
1566 'disable_nacl%': 1, 1582 'disable_nacl%': 1,
1567 'nacl_untrusted_build%': 0, 1583 'nacl_untrusted_build%': 0,
1568 'use_allocator%': 'none', 1584 'use_allocator%': 'none',
1569 }], 1585 }],
1570 ['OS=="linux" and target_arch=="mipsel"', { 1586 ['OS=="linux" and target_arch=="mipsel"', {
1571 'sysroot%': '<(sysroot)', 1587 'sysroot%': '<(sysroot)',
1572 'CXX%': '<(CXX)', 1588 'CXX%': '<(CXX)',
1573 }], 1589 }],
1574 # All Chrome builds have breakpad symbols, but only process the 1590 # 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', 1715 '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', 1716 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linu x-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1701 }], 1717 }],
1702 ['target_arch == "mipsel"', { 1718 ['target_arch == "mipsel"', {
1703 'android_app_abi%': 'mips', 1719 'android_app_abi%': 'mips',
1704 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/g dbserver/gdbserver', 1720 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/g dbserver/gdbserver',
1705 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-mips', 1721 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-mips',
1706 'android_ndk_lib_dir%': 'usr/lib', 1722 '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', 1723 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux -android-4.8/prebuilt/<(host_os)-<(android_host_arch)/bin',
1708 }], 1724 }],
1725 ['target_arch == "mips64el"', {
1726 'android_app_abi%': 'mips64',
1727 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips64 /gdbserver/gdbserver',
1728 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-L/a rch-mips64',
1729 'android_ndk_lib_dir%': 'usr/lib64',
1730 'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-lin ux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1731 'gcc_version%': 49,
1732 }],
1709 ], 1733 ],
1710 }, 1734 },
1711 # Copy conditionally-set variables out one scope. 1735 # Copy conditionally-set variables out one scope.
1712 'android_app_abi%': '<(android_app_abi)', 1736 'android_app_abi%': '<(android_app_abi)',
1713 'android_gdbserver%': '<(android_gdbserver)', 1737 'android_gdbserver%': '<(android_gdbserver)',
1714 'android_ndk_root%': '<(android_ndk_root)', 1738 'android_ndk_root%': '<(android_ndk_root)',
1715 'android_ndk_sysroot%': '<(android_ndk_sysroot)', 1739 'android_ndk_sysroot%': '<(android_ndk_sysroot)',
1716 'android_sdk_root%': '<(android_sdk_root)', 1740 'android_sdk_root%': '<(android_sdk_root)',
1717 'android_sdk_version%': '<(android_sdk_version)', 1741 'android_sdk_version%': '<(android_sdk_version)',
1718 'android_toolchain%': '<(android_toolchain)', 1742 'android_toolchain%': '<(android_toolchain)',
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
1945 'enable_pepper_cdms%': 0, 1969 'enable_pepper_cdms%': 0,
1946 }], 1970 }],
1947 1971
1948 ['OS=="android"', { 1972 ['OS=="android"', {
1949 'enable_browser_cdms%': 1, 1973 'enable_browser_cdms%': 1,
1950 }, { 1974 }, {
1951 'enable_browser_cdms%': 0, 1975 'enable_browser_cdms%': 0,
1952 }], 1976 }],
1953 1977
1954 # Native Client glibc toolchain is enabled 1978 # Native Client glibc toolchain is enabled
1955 # by default except on arm and mips. 1979 # by default except on arm, mips and mips64.
1956 ['target_arch=="arm" or target_arch=="mipsel"', { 1980 ['target_arch=="arm" or target_arch=="mipsel" or target_arch=="mips64el"', {
1957 'disable_glibc%': 1, 1981 'disable_glibc%': 1,
1958 }, { 1982 }, {
1959 'disable_glibc%': 0, 1983 'disable_glibc%': 0,
1960 }], 1984 }],
1961 1985
1962 # Set the relative path from this file to the GYP file of the JPEG 1986 # Set the relative path from this file to the GYP file of the JPEG
1963 # library used by Chromium. 1987 # library used by Chromium.
1964 ['use_system_libjpeg==1 or use_libjpeg_turbo==0', { 1988 ['use_system_libjpeg==1 or use_libjpeg_turbo==0', {
1965 # Configuration for using the system libjeg is here. 1989 # Configuration for using the system libjeg is here.
1966 'libjpeg_gyp_path': '../third_party/libjpeg/libjpeg.gyp', 1990 'libjpeg_gyp_path': '../third_party/libjpeg/libjpeg.gyp',
(...skipping 1938 matching lines...) Expand 10 before | Expand all | Expand 10 after
3905 ], 3929 ],
3906 }], 3930 }],
3907 ], 3931 ],
3908 }], 3932 }],
3909 ], 3933 ],
3910 }], 3934 }],
3911 ['target_arch=="mipsel"', { 3935 ['target_arch=="mipsel"', {
3912 'target_conditions': [ 3936 'target_conditions': [
3913 ['_toolset=="target"', { 3937 ['_toolset=="target"', {
3914 'conditions': [ 3938 'conditions': [
3915 ['android_webview_build==0 and mips_arch_variant=="mips32r2"', { 3939 ['android_webview_build==0 and mips_arch_variant=="r6"', {
3940 'cflags': ['-mips32r6', '-Wa,-mips32r6'],
3941 }],
3942 ['android_webview_build==0 and mips_arch_variant=="r2"', {
3916 'cflags': ['-mips32r2', '-Wa,-mips32r2'], 3943 'cflags': ['-mips32r2', '-Wa,-mips32r2'],
3917 }], 3944 }],
3918 ['android_webview_build==0 and mips_arch_variant!="mips32r2"', { 3945 ['android_webview_build==0 and mips_arch_variant=="r1"', {
3919 'cflags': ['-mips32', '-Wa,-mips32'], 3946 'cflags': ['-mips32', '-Wa,-mips32'],
3920 }], 3947 }],
3921 ], 3948 ['OS=="android" and android_webview_build==0 and mips_arch_var iant=="r6"', {
3922 'cflags': [ 3949 'ldflags': [ '-mips32r6', '-Wl,-melf32ltsmip', ],
rmcilroy 2014/08/26 17:40:19 please fold this into the above 'android_webview_b
petarj 2014/08/27 13:24:52 Done.
3923 '-EL', 3950 }],
3924 '-mhard-float',
3925 ], 3951 ],
3926 'ldflags': [ 3952 'ldflags': [
3927 '-EL',
3928 '-Wl,--no-keep-memory' 3953 '-Wl,--no-keep-memory'
3929 ], 3954 ],
3930 'cflags_cc': [ 3955 'cflags_cc': [
3931 '-Wno-uninitialized', 3956 '-Wno-uninitialized',
3932 ], 3957 ],
3933 }], 3958 }],
3934 ], 3959 ],
3935 }], 3960 }],
3961 ['target_arch=="mips64el"', {
3962 'target_conditions': [
3963 ['_toolset=="target"', {
3964 'conditions': [
3965 ['android_webview_build==0 and mips_arch_variant=="r6"', {
3966 'cflags': ['-mips64r6', '-Wa,-mips64r6'],
3967 'ldflags': [ '-mips64r6' ],
3968 }],
3969 ['android_webview_build==0 and mips_arch_variant=="r2"', {
3970 'cflags': ['-mips64r2', '-Wa,-mips64r2'],
3971 'ldflags': [ '-mips64r2' ],
3972 }],
3973 ],
3974 'cflags_cc': [
3975 '-Wno-uninitialized',
3976 ],
3977 }],
3978 ],
3979 }],
3936 ['linux_fpic==1', { 3980 ['linux_fpic==1', {
3937 'cflags': [ 3981 'cflags': [
3938 '-fPIC', 3982 '-fPIC',
3939 ], 3983 ],
3940 'ldflags': [ 3984 'ldflags': [
3941 '-fPIC', 3985 '-fPIC',
3942 ], 3986 ],
3943 }], 3987 }],
3944 ['sysroot!=""', { 3988 ['sysroot!=""', {
3945 'target_conditions': [ 3989 'target_conditions': [
(...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after
5705 # settings in target dicts. SYMROOT is a special case, because many other 5749 # settings in target dicts. SYMROOT is a special case, because many other
5706 # Xcode variables depend on it, including variables such as 5750 # Xcode variables depend on it, including variables such as
5707 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5751 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5708 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5752 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5709 # files to appear (when present) in the UI as actual files and not red 5753 # files to appear (when present) in the UI as actual files and not red
5710 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5754 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5711 # and therefore SYMROOT, needs to be set at the project level. 5755 # and therefore SYMROOT, needs to be set at the project level.
5712 'SYMROOT': '<(DEPTH)/xcodebuild', 5756 'SYMROOT': '<(DEPTH)/xcodebuild',
5713 }, 5757 },
5714 } 5758 }
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