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

Side by Side Diff: build/common.gypi

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 years, 9 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 | « build/apk_test.gypi ('k') | build/config/BUILDCONFIG.gn » ('j') | 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 'sysroot%': '', 177 'sysroot%': '',
178 'chroot_cmd%': '', 178 'chroot_cmd%': '',
179 179
180 # The system libdir used for this ABI. 180 # The system libdir used for this ABI.
181 'system_libdir%': 'lib', 181 'system_libdir%': 'lib',
182 182
183 # Default MIPS arch variant. This is set in the conditions block 183 # Default MIPS arch variant. This is set in the conditions block
184 # below for MIPS targets. 184 # below for MIPS targets.
185 'mips_arch_variant%': '', 185 'mips_arch_variant%': '',
186 186
187 # MIPS DSP ASE revision. Possible values are:
188 # 0: unavailable
189 # 1: revision 1
190 # 2: revision 2
191 'mips_dsp_rev%': 0,
192
187 'conditions': [ 193 'conditions': [
188 # Ash needs Aura. 194 # Ash needs Aura.
189 ['use_aura==0', { 195 ['use_aura==0', {
190 'use_ash%': 0, 196 'use_ash%': 0,
191 }], 197 }],
192 198
193 # Set default value of toolkit_views based on OS. 199 # Set default value of toolkit_views based on OS.
194 ['OS=="win" or chromeos==1 or use_aura==1', { 200 ['OS=="win" or chromeos==1 or use_aura==1', {
195 'toolkit_views%': 1, 201 'toolkit_views%': 1,
196 }, { 202 }, {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 ], 275 ],
270 }, 276 },
271 277
272 # Copy conditionally-set variables out one scope. 278 # Copy conditionally-set variables out one scope.
273 'chromeos%': '<(chromeos)', 279 'chromeos%': '<(chromeos)',
274 'chromecast%': '<(chromecast)', 280 'chromecast%': '<(chromecast)',
275 'host_arch%': '<(host_arch)', 281 'host_arch%': '<(host_arch)',
276 'target_arch%': '<(target_arch)', 282 'target_arch%': '<(target_arch)',
277 'target_subarch%': '<(target_subarch)', 283 'target_subarch%': '<(target_subarch)',
278 'mips_arch_variant%': '<(mips_arch_variant)', 284 'mips_arch_variant%': '<(mips_arch_variant)',
285 'mips_dsp_rev%': '<(mips_dsp_rev)',
279 'toolkit_views%': '<(toolkit_views)', 286 'toolkit_views%': '<(toolkit_views)',
280 'desktop_linux%': '<(desktop_linux)', 287 'desktop_linux%': '<(desktop_linux)',
281 'use_aura%': '<(use_aura)', 288 'use_aura%': '<(use_aura)',
282 'use_ash%': '<(use_ash)', 289 'use_ash%': '<(use_ash)',
283 'use_cras%': '<(use_cras)', 290 'use_cras%': '<(use_cras)',
284 'use_libpci%': '<(use_libpci)', 291 'use_libpci%': '<(use_libpci)',
285 'use_ozone%': '<(use_ozone)', 292 'use_ozone%': '<(use_ozone)',
286 'use_ozone_evdev%': '<(use_ozone_evdev)', 293 'use_ozone_evdev%': '<(use_ozone_evdev)',
287 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', 294 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)',
288 'embedded%': '<(embedded)', 295 'embedded%': '<(embedded)',
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
1060 # Set to 1 to support old history files 1067 # Set to 1 to support old history files
1061 'support_pre_M6_history_database%': '1', 1068 'support_pre_M6_history_database%': '1',
1062 }, 1069 },
1063 1070
1064 # Copy conditionally-set variables out one scope. 1071 # Copy conditionally-set variables out one scope.
1065 'branding%': '<(branding)', 1072 'branding%': '<(branding)',
1066 'buildtype%': '<(buildtype)', 1073 'buildtype%': '<(buildtype)',
1067 'target_arch%': '<(target_arch)', 1074 'target_arch%': '<(target_arch)',
1068 'target_subarch%': '<(target_subarch)', 1075 'target_subarch%': '<(target_subarch)',
1069 'mips_arch_variant%': '<(mips_arch_variant)', 1076 'mips_arch_variant%': '<(mips_arch_variant)',
1077 'mips_dsp_rev%': '<(mips_dsp_rev)',
1070 'host_arch%': '<(host_arch)', 1078 'host_arch%': '<(host_arch)',
1071 'toolkit_views%': '<(toolkit_views)', 1079 'toolkit_views%': '<(toolkit_views)',
1072 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)', 1080 'ui_compositor_image_transport%': '<(ui_compositor_image_transport)',
1073 'use_aura%': '<(use_aura)', 1081 'use_aura%': '<(use_aura)',
1074 'use_ash%': '<(use_ash)', 1082 'use_ash%': '<(use_ash)',
1075 'use_cras%': '<(use_cras)', 1083 'use_cras%': '<(use_cras)',
1076 'use_libpci%': '<(use_libpci)', 1084 'use_libpci%': '<(use_libpci)',
1077 'use_openssl%': '<(use_openssl)', 1085 'use_openssl%': '<(use_openssl)',
1078 'use_openssl_certs%': '<(use_openssl_certs)', 1086 'use_openssl_certs%': '<(use_openssl_certs)',
1079 'use_nss%': '<(use_nss)', 1087 'use_nss%': '<(use_nss)',
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1656 'ios_breakpad%': 1, 1664 'ios_breakpad%': 1,
1657 }, { # else: branding!="Chrome" or buildtype!="Official" 1665 }, { # else: branding!="Chrome" or buildtype!="Official"
1658 'ios_breakpad%': 0, 1666 'ios_breakpad%': 0,
1659 }], 1667 }],
1660 ], 1668 ],
1661 }], # OS=="ios" 1669 }], # OS=="ios"
1662 ['OS=="android"', { 1670 ['OS=="android"', {
1663 # Location of Android NDK. 1671 # Location of Android NDK.
1664 'variables': { 1672 'variables': {
1665 'variables': { 1673 'variables': {
1666 # Unfortunately we have to use absolute paths to the SDK/NDK because 1674 # Standard libraries can use the relative path to the NDK.
1667 # they're passed to ant which uses a different relative path from 1675 'android_ndk_root%': '../../third_party/android_tools/ndk/',
1668 # gyp. 1676 # Unfortunately, it is required to use the absolute path to the SDK
1669 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_ tools/ndk/', 1677 # because it us passed to ant which uses a different relative path
1678 # from GYP.
1670 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_ tools/sdk/', 1679 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_ tools/sdk/',
1680 # Similarly, gdbserver and the Android toolchain need to use the
1681 # absolute path to the NDK because they are used at different levels
1682 # in the GYP files.
1683 'android_ndk_absolute_root%': '<!(cd <(DEPTH) && pwd -P)/third_party /android_tools/ndk/',
1671 'android_host_arch%': '<!(uname -m)', 1684 'android_host_arch%': '<!(uname -m)',
1672 # Android API-level of the SDK used for compilation. 1685 # Android API-level of the SDK used for compilation.
1673 'android_sdk_version%': '21', 1686 'android_sdk_version%': '21',
1674 'android_sdk_build_tools_version%': '21.0.1', 1687 'android_sdk_build_tools_version%': '21.0.1',
1675 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", 1688 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')",
1676 }, 1689 },
1677 # Copy conditionally-set variables out one scope. 1690 # Copy conditionally-set variables out one scope.
1678 'android_ndk_root%': '<(android_ndk_root)', 1691 'android_ndk_root%': '<(android_ndk_root)',
1692 'android_ndk_absolute_root%': '<(android_ndk_absolute_root)',
1679 'android_sdk_root%': '<(android_sdk_root)', 1693 'android_sdk_root%': '<(android_sdk_root)',
1680 'android_sdk_version%': '<(android_sdk_version)', 1694 'android_sdk_version%': '<(android_sdk_version)',
1681 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', 1695 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport',
1682 'host_os%': '<(host_os)', 1696 'host_os%': '<(host_os)',
1683 1697
1684 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v ersion)', 1698 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v ersion)',
1685 # Android SDK build tools (e.g. dx, aapt, aidl) 1699 # Android SDK build tools (e.g. dx, aapt, aidl)
1686 'android_sdk_tools%': '<(android_sdk_root)/build-tools/<(android_sdk_b uild_tools_version)', 1700 'android_sdk_tools%': '<(android_sdk_root)/build-tools/<(android_sdk_b uild_tools_version)',
1687 1701
1688 # Android API level 14 is ICS (Android 4.0) which is the minimum 1702 # Android API level 14 is ICS (Android 4.0) which is the minimum
1689 # platform requirement for Chrome on Android, we use it for native 1703 # platform requirement for Chrome on Android, we use it for native
1690 # code compilation. 1704 # code compilation.
1691 'conditions': [ 1705 'conditions': [
1692 ['target_arch == "ia32"', { 1706 ['target_arch == "ia32"', {
1693 'android_app_abi%': 'x86', 1707 'android_app_abi%': 'x86',
1694 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd bserver/gdbserver', 1708 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-x86/gdbserver/gdbserver',
1695 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-x86', 1709 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-x86',
1696 'android_ndk_lib_dir%': 'usr/lib', 1710 'android_ndk_lib_dir%': 'usr/lib',
1697 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.9/preb uilt/<(host_os)-<(android_host_arch)/bin', 1711 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/x86 -4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1698 }], 1712 }],
1699 ['target_arch == "x64"', { 1713 ['target_arch == "x64"', {
1700 'android_app_abi%': 'x86_64', 1714 'android_app_abi%': 'x86_64',
1701 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86_64 /gdbserver/gdbserver', 1715 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-x86_64/gdbserver/gdbserver',
1702 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-x86_64', 1716 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-x86_64',
1703 'android_ndk_lib_dir%': 'usr/lib64', 1717 'android_ndk_lib_dir%': 'usr/lib64',
1704 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.9/p rebuilt/<(host_os)-<(android_host_arch)/bin', 1718 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/x86 _64-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1705 }], 1719 }],
1706 ['target_arch=="arm"', { 1720 ['target_arch=="arm"', {
1707 'conditions': [ 1721 'conditions': [
1708 ['arm_version<7', { 1722 ['arm_version<7', {
1709 'android_app_abi%': 'armeabi', 1723 'android_app_abi%': 'armeabi',
1710 }, { 1724 }, {
1711 'android_app_abi%': 'armeabi-v7a', 1725 'android_app_abi%': 'armeabi-v7a',
1712 }], 1726 }],
1713 ], 1727 ],
1714 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd bserver/gdbserver', 1728 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-arm/gdbserver/gdbserver',
1715 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-arm', 1729 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-arm',
1716 'android_ndk_lib_dir%': 'usr/lib', 1730 'android_ndk_lib_dir%': 'usr/lib',
1717 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an droideabi-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', 1731 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/arm -linux-androideabi-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1718 }], 1732 }],
1719 ['target_arch == "arm64"', { 1733 ['target_arch == "arm64"', {
1720 'android_app_abi%': 'arm64-v8a', 1734 'android_app_abi%': 'arm64-v8a',
1721 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm64/ gdbserver/gdbserver', 1735 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-arm64/gdbserver/gdbserver',
1722 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-arm64', 1736 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-arm64',
1723 'android_ndk_lib_dir%': 'usr/lib', 1737 'android_ndk_lib_dir%': 'usr/lib',
1724 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linu x-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', 1738 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/aar ch64-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1725 }], 1739 }],
1726 ['target_arch == "mipsel"', { 1740 ['target_arch == "mipsel"', {
1727 'android_app_abi%': 'mips', 1741 'android_app_abi%': 'mips',
1728 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/g dbserver/gdbserver', 1742 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-mips/gdbserver/gdbserver',
1729 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-mips', 1743 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-mips',
1730 'android_ndk_lib_dir%': 'usr/lib', 1744 'android_ndk_lib_dir%': 'usr/lib',
1731 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux -android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', 1745 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/mip sel-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1732 }], 1746 }],
1733 ['target_arch == "mips64el"', { 1747 ['target_arch == "mips64el"', {
1734 'android_app_abi%': 'mips64', 1748 'android_app_abi%': 'mips64',
1735 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips64 /gdbserver/gdbserver', 1749 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-mips64/gdbserver/gdbserver',
1736 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-mips64', 1750 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-mips64',
1737 'android_ndk_lib_dir%': 'usr/lib64', 1751 'android_ndk_lib_dir%': 'usr/lib64',
1738 'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-lin ux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', 1752 'android_toolchain%': '<(android_ndk_absolute_root)/toolchains/mip s64el-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin',
1739 'gcc_version%': 49,
1740 }], 1753 }],
1741 ], 1754 ],
1742 }, 1755 },
1743 # Copy conditionally-set variables out one scope. 1756 # Copy conditionally-set variables out one scope.
1744 'android_app_abi%': '<(android_app_abi)', 1757 'android_app_abi%': '<(android_app_abi)',
1745 'android_gdbserver%': '<(android_gdbserver)', 1758 'android_gdbserver%': '<(android_gdbserver)',
1746 'android_ndk_root%': '<(android_ndk_root)', 1759 'android_ndk_root%': '<(android_ndk_root)',
1747 'android_ndk_sysroot%': '<(android_ndk_sysroot)', 1760 'android_ndk_sysroot%': '<(android_ndk_sysroot)',
1748 'android_sdk_root%': '<(android_sdk_root)', 1761 'android_sdk_root%': '<(android_sdk_root)',
1749 'android_sdk_version%': '<(android_sdk_version)', 1762 'android_sdk_version%': '<(android_sdk_version)',
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 'grit_rc_header_format': ['-h', '#define {textual_id} _Pragma("whitelist ed_resource_{numeric_id}") {numeric_id}'], 2155 'grit_rc_header_format': ['-h', '#define {textual_id} _Pragma("whitelist ed_resource_{numeric_id}") {numeric_id}'],
2143 }], 2156 }],
2144 ['enable_resource_whitelist_generation==1 and OS=="win"', { 2157 ['enable_resource_whitelist_generation==1 and OS=="win"', {
2145 'grit_rc_header_format': ['-h', '#define {textual_id} __pragma(message(" whitelisted_resource_{numeric_id}")) {numeric_id}'], 2158 'grit_rc_header_format': ['-h', '#define {textual_id} __pragma(message(" whitelisted_resource_{numeric_id}")) {numeric_id}'],
2146 }], 2159 }],
2147 ['enable_mdns==1 or OS=="mac"', { 2160 ['enable_mdns==1 or OS=="mac"', {
2148 'grit_defines': ['-D', 'enable_service_discovery'], 2161 'grit_defines': ['-D', 'enable_service_discovery'],
2149 'enable_service_discovery%': 1 2162 'enable_service_discovery%': 1
2150 }], 2163 }],
2151 ['clang_use_chrome_plugins==1 and OS!="win"', { 2164 ['clang_use_chrome_plugins==1 and OS!="win"', {
2152 'clang_chrome_plugins_flags': [ 2165 'clang_chrome_plugins_flags%':
2153 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' 2166 '<!(python <(DEPTH)/tools/clang/scripts/plugin_flags.py)',
2154 ],
2155 }], 2167 }],
2156 ['asan==1 or msan==1 or lsan==1 or tsan==1', { 2168 ['asan==1 or msan==1 or lsan==1 or tsan==1', {
2157 'clang%': 1, 2169 'clang%': 1,
2158 'use_allocator%': 'none', 2170 'use_allocator%': 'none',
2159 'use_sanitizer_options%': 1, 2171 'use_sanitizer_options%': 1,
2160 # Disable ICF in the linker to avoid debug info loss. 2172 # Disable ICF in the linker to avoid debug info loss.
2161 'gold_icf_level%': 'none', 2173 'gold_icf_level%': 'none',
2162 }], 2174 }],
2163 ['asan==1 and OS=="linux" and chromeos==0', { 2175 ['asan==1 and OS=="linux" and chromeos==0', {
2164 'use_custom_libcxx%': 1, 2176 'use_custom_libcxx%': 1,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
2283 'arm_fpu%': 'neon', 2295 'arm_fpu%': 'neon',
2284 }, { 2296 }, {
2285 'arm_fpu%': 'vfpv3-d16', 2297 'arm_fpu%': 'vfpv3-d16',
2286 }], 2298 }],
2287 ], 2299 ],
2288 # Change the default to hard once the armhf transition is complete. 2300 # Change the default to hard once the armhf transition is complete.
2289 'arm_float_abi%': 'softfp', 2301 'arm_float_abi%': 'softfp',
2290 'arm_thumb%': 1, 2302 'arm_thumb%': 1,
2291 }], 2303 }],
2292 2304
2293 # Set default compiler flags depending on MIPS architecture variant. 2305 # Set default compiler flags for MIPS floating-point support.
2306 ['target_arch=="mipsel" and android_webview_build==0', {
2307 'mips_float_abi%': 'hard',
2308 }],
2294 ['target_arch=="mipsel" and mips_arch_variant=="r2" and android_webview_bu ild==0', { 2309 ['target_arch=="mipsel" and mips_arch_variant=="r2" and android_webview_bu ild==0', {
2295 'mips_fpu_mode%': 'fp32', 2310 'mips_fpu_mode%': 'fp32',
2296 }], 2311 }],
2297 2312
2298 ['android_webview_build==1', { 2313 ['android_webview_build==1', {
2299 # The WebView build gets its cpu-specific flags from the Android build s ystem. 2314 # The WebView build gets its cpu-specific flags from the Android build s ystem.
2300 'arm_arch%': '', 2315 'arm_arch%': '',
2301 'arm_tune%': '', 2316 'arm_tune%': '',
2302 'arm_fpu%': '', 2317 'arm_fpu%': '',
2303 'arm_float_abi%': '', 2318 'arm_float_abi%': '',
2304 'arm_thumb%': 0, 2319 'arm_thumb%': 0,
2320 'mips_float_abi%': '',
2305 'mips_fpu_mode%': '', 2321 'mips_fpu_mode%': '',
2306 }], 2322 }],
2307 2323
2308 # Enable brlapi by default for chromeos. 2324 # Enable brlapi by default for chromeos.
2309 [ 'chromeos==1', { 2325 [ 'chromeos==1', {
2310 'use_brlapi%': 1, 2326 'use_brlapi%': 1,
2311 }], 2327 }],
2312 2328
2313 ['use_ozone==1 and ozone_auto_platforms==1', { 2329 ['use_ozone==1 and ozone_auto_platforms==1', {
2314 # Use test as the default platform. 2330 # Use test as the default platform.
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
2584 'xcode_settings': { 2600 'xcode_settings': {
2585 'DYLIB_INSTALL_NAME_BASE': '@rpath', 2601 'DYLIB_INSTALL_NAME_BASE': '@rpath',
2586 'LD_RUNPATH_SEARCH_PATHS': [ 2602 'LD_RUNPATH_SEARCH_PATHS': [
2587 # For unbundled binaries. 2603 # For unbundled binaries.
2588 '@loader_path/.', 2604 '@loader_path/.',
2589 # For bundled binaries, to get back from Binary.app/Contents/MacOS. 2605 # For bundled binaries, to get back from Binary.app/Contents/MacOS.
2590 '@loader_path/../../..', 2606 '@loader_path/../../..',
2591 ], 2607 ],
2592 }, 2608 },
2593 }], 2609 }],
2594 ['clang==1 and OS!="win"', { 2610 ['(clang==1 or host_clang==1) and OS!="win"', {
2595 # This is here so that all files get recompiled after a clang roll and 2611 # This is here so that all files get recompiled after a clang roll and
2596 # when turning clang on or off. 2612 # when turning clang on or off.
2597 # (defines are passed via the command line, and build systems rebuild 2613 # (defines are passed via the command line, and build systems rebuild
2598 # things when their commandline changes). Nothing should ever read this 2614 # things when their commandline changes). Nothing should ever read this
2599 # define. 2615 # define.
2600 'defines': ['CR_CLANG_REVISION=<!(<(DEPTH)/tools/clang/scripts/update.sh --print-revision)'], 2616 'defines': ['CR_CLANG_REVISION=<!(<(DEPTH)/tools/clang/scripts/update.sh --print-revision)'],
2601 }], 2617 }],
2602 ['enable_rlz==1', { 2618 ['enable_rlz==1', {
2603 'defines': ['ENABLE_RLZ'], 2619 'defines': ['ENABLE_RLZ'],
2604 }], 2620 }],
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after
4045 ], 4061 ],
4046 }], 4062 }],
4047 ], 4063 ],
4048 }], 4064 }],
4049 ], 4065 ],
4050 }], 4066 }],
4051 ['target_arch=="mipsel"', { 4067 ['target_arch=="mipsel"', {
4052 'target_conditions': [ 4068 'target_conditions': [
4053 ['_toolset=="target"', { 4069 ['_toolset=="target"', {
4054 'conditions': [ 4070 'conditions': [
4055 ['android_webview_build==0 and mips_arch_variant=="r6"', { 4071 ['android_webview_build==0', {
4056 'cflags': ['-mips32r6', '-Wa,-mips32r6'],
4057 'conditions': [ 4072 'conditions': [
4058 ['OS=="android"', { 4073 ['mips_arch_variant=="r6"', {
4059 'ldflags': ['-mips32r6', '-Wl,-melf32ltsmip',], 4074 'cflags': ['-mips32r6', '-Wa,-mips32r6'],
4075 'conditions': [
4076 ['OS=="android"', {
4077 'ldflags': ['-mips32r6', '-Wl,-melf32ltsmip',],
4078 }],
4079 ],
4080 }],
4081 ['mips_arch_variant=="r2"', {
4082 'cflags': ['-mips32r2', '-Wa,-mips32r2'],
4083 'conditions': [
4084 ['mips_float_abi=="hard" and mips_fpu_mode!=""', {
4085 'cflags': ['-m<(mips_fpu_mode)'],
4086 }],
4087 ],
4088 }],
4089 ['mips_arch_variant=="r1"', {
4090 'cflags': ['-mips32', '-Wa,-mips32'],
4091 }],
4092 ['mips_dsp_rev==1', {
4093 'cflags': ['-mdsp'],
4094 }],
4095 ['mips_dsp_rev==2', {
4096 'cflags': ['-mdspr2'],
4060 }], 4097 }],
4061 ], 4098 ],
4062 }], 4099 'cflags': [
4063 ['android_webview_build==0 and mips_arch_variant=="r2"', { 4100 '-m<(mips_float_abi)-float'
4064 'cflags': ['-mips32r2', '-Wa,-mips32r2'], 4101 ],
4065 }],
4066 ['android_webview_build==0 and mips_arch_variant=="r1"', {
4067 'cflags': ['-mips32', '-Wa,-mips32'],
4068 }], 4102 }],
4069 ], 4103 ],
4070 'ldflags': [ 4104 'ldflags': [
4071 '-Wl,--no-keep-memory' 4105 '-Wl,--no-keep-memory'
4072 ], 4106 ],
4073 'cflags_cc': [ 4107 'cflags_cc': [
4074 '-Wno-uninitialized', 4108 '-Wno-uninitialized',
4075 ], 4109 ],
4076 }], 4110 }],
4077 ], 4111 ],
4078 }], 4112 }],
4079 ['target_arch=="mips64el"', { 4113 ['target_arch=="mips64el"', {
4080 'target_conditions': [ 4114 'target_conditions': [
4081 ['_toolset=="target"', { 4115 ['_toolset=="target"', {
4082 'conditions': [ 4116 'conditions': [
4083 ['android_webview_build==0 and mips_arch_variant=="r6"', { 4117 ['android_webview_build==0', {
4084 'cflags': ['-mips64r6', '-Wa,-mips64r6'], 4118 'conditions': [
4085 'ldflags': [ '-mips64r6' ], 4119 ['mips_arch_variant=="r6"', {
4086 }], 4120 'cflags': ['-mips64r6', '-Wa,-mips64r6'],
4087 ['android_webview_build==0 and mips_arch_variant=="r2"', { 4121 'ldflags': ['-mips64r6'],
4088 'cflags': ['-mips64r2', '-Wa,-mips64r2'], 4122 }],
4089 'ldflags': [ '-mips64r2' ], 4123 ['mips_arch_variant=="r2"', {
4124 'cflags': ['-mips64r2', '-Wa,-mips64r2'],
4125 'ldflags': ['-mips64r2'],
4126 }],
4127 ],
4090 }], 4128 }],
4091 ], 4129 ],
4092 'cflags_cc': [ 4130 'cflags_cc': [
4093 '-Wno-uninitialized', 4131 '-Wno-uninitialized',
4094 ], 4132 ],
4095 }], 4133 }],
4096 ], 4134 ],
4097 }], 4135 }],
4098 ['linux_fpic==1', { 4136 ['linux_fpic==1', {
4099 'cflags': [ 4137 'cflags': [
(...skipping 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after
5849 'target_defaults': { 5887 'target_defaults': {
5850 'target_conditions': [ 5888 'target_conditions': [
5851 ['_toolset=="target"', { 5889 ['_toolset=="target"', {
5852 'cflags': [ 5890 'cflags': [
5853 '-ffat-lto-objects', 5891 '-ffat-lto-objects',
5854 ], 5892 ],
5855 }], 5893 }],
5856 ], 5894 ],
5857 }, 5895 },
5858 }], 5896 }],
5897 ['use_lto==1 and clang==1', {
5898 'target_defaults': {
5899 'target_conditions': [
5900 ['_toolset=="target"', {
5901 'arflags': [
5902 '--plugin', '../../<(make_clang_dir)/lib/LLVMgold.so',
5903 ],
5904 }],
5905 ],
5906 },
5907 }],
5859 ['(use_lto==1 or use_lto_o2==1) and clang==0', { 5908 ['(use_lto==1 or use_lto_o2==1) and clang==0', {
5860 'target_defaults': { 5909 'target_defaults': {
5861 'target_conditions': [ 5910 'target_conditions': [
5862 ['_toolset=="target"', { 5911 ['_toolset=="target"', {
5863 'ldflags': [ 5912 'ldflags': [
5864 '-flto=32', 5913 '-flto=32',
5865 ], 5914 ],
5866 }], 5915 }],
5867 ], 5916 ],
5868 }, 5917 },
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
5941 # settings in target dicts. SYMROOT is a special case, because many other 5990 # settings in target dicts. SYMROOT is a special case, because many other
5942 # Xcode variables depend on it, including variables such as 5991 # Xcode variables depend on it, including variables such as
5943 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5992 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5944 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5993 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5945 # files to appear (when present) in the UI as actual files and not red 5994 # files to appear (when present) in the UI as actual files and not red
5946 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5995 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5947 # and therefore SYMROOT, needs to be set at the project level. 5996 # and therefore SYMROOT, needs to be set at the project level.
5948 'SYMROOT': '<(DEPTH)/xcodebuild', 5997 'SYMROOT': '<(DEPTH)/xcodebuild',
5949 }, 5998 },
5950 } 5999 }
OLDNEW
« no previous file with comments | « build/apk_test.gypi ('k') | build/config/BUILDCONFIG.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698