OLD | NEW |
---|---|
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 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1664 'ios_breakpad%': 1, | 1664 'ios_breakpad%': 1, |
1665 }, { # else: branding!="Chrome" or buildtype!="Official" | 1665 }, { # else: branding!="Chrome" or buildtype!="Official" |
1666 'ios_breakpad%': 0, | 1666 'ios_breakpad%': 0, |
1667 }], | 1667 }], |
1668 ], | 1668 ], |
1669 }], # OS=="ios" | 1669 }], # OS=="ios" |
1670 ['OS=="android"', { | 1670 ['OS=="android"', { |
1671 # Location of Android NDK. | 1671 # Location of Android NDK. |
1672 'variables': { | 1672 'variables': { |
1673 'variables': { | 1673 'variables': { |
1674 # Unfortunately we have to use absolute paths to the SDK/NDK because | 1674 # Standard libraries can use the relative path to the NDK. |
1675 # they're passed to ant which uses a different relative path from | 1675 'android_ndk_root%': '../../third_party/android_tools/ndk/', |
1676 # gyp. | 1676 # Unfortunately, it is required to use the absolute path to the SDK |
1677 '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. | |
1678 '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/', | |
1679 'android_host_arch%': '<!(uname -m)', | 1684 'android_host_arch%': '<!(uname -m)', |
1680 # Android API-level of the SDK used for compilation. | 1685 # Android API-level of the SDK used for compilation. |
1681 'android_sdk_version%': '21', | 1686 'android_sdk_version%': '21', |
1682 'android_sdk_build_tools_version%': '21.0.1', | 1687 'android_sdk_build_tools_version%': '21.0.1', |
1683 '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/')", |
1684 }, | 1689 }, |
1685 # Copy conditionally-set variables out one scope. | 1690 # Copy conditionally-set variables out one scope. |
1686 'android_ndk_root%': '<(android_ndk_root)', | 1691 'android_ndk_root%': '<(android_ndk_root)', |
1692 'android_ndk_absolute_root%': '<(android_ndk_absolute_root)', | |
1687 'android_sdk_root%': '<(android_sdk_root)', | 1693 'android_sdk_root%': '<(android_sdk_root)', |
1688 'android_sdk_version%': '<(android_sdk_version)', | 1694 'android_sdk_version%': '<(android_sdk_version)', |
1689 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', | 1695 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', |
1690 'host_os%': '<(host_os)', | 1696 'host_os%': '<(host_os)', |
1691 | 1697 |
1692 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v ersion)', | 1698 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v ersion)', |
1693 # Android SDK build tools (e.g. dx, aapt, aidl) | 1699 # Android SDK build tools (e.g. dx, aapt, aidl) |
1694 '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)', |
1695 | 1701 |
1696 # 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 |
1697 # platform requirement for Chrome on Android, we use it for native | 1703 # platform requirement for Chrome on Android, we use it for native |
1698 # code compilation. | 1704 # code compilation. |
1699 'conditions': [ | 1705 'conditions': [ |
1700 ['target_arch == "ia32"', { | 1706 ['target_arch == "ia32"', { |
1701 'android_app_abi%': 'x86', | 1707 'android_app_abi%': 'x86', |
1702 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd bserver/gdbserver', | 1708 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-x86/gdbserver/gdbserver', |
1703 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-x86', | 1709 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-x86', |
1704 'android_ndk_lib_dir%': 'usr/lib', | 1710 'android_ndk_lib_dir%': 'usr/lib', |
1705 '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', |
1706 }], | 1712 }], |
1707 ['target_arch == "x64"', { | 1713 ['target_arch == "x64"', { |
1708 'android_app_abi%': 'x86_64', | 1714 'android_app_abi%': 'x86_64', |
1709 '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', |
1710 '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', |
1711 'android_ndk_lib_dir%': 'usr/lib64', | 1717 'android_ndk_lib_dir%': 'usr/lib64', |
1712 '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', |
1713 }], | 1719 }], |
1714 ['target_arch=="arm"', { | 1720 ['target_arch=="arm"', { |
1715 'conditions': [ | 1721 'conditions': [ |
1716 ['arm_version<7', { | 1722 ['arm_version<7', { |
1717 'android_app_abi%': 'armeabi', | 1723 'android_app_abi%': 'armeabi', |
1718 }, { | 1724 }, { |
1719 'android_app_abi%': 'armeabi-v7a', | 1725 'android_app_abi%': 'armeabi-v7a', |
1720 }], | 1726 }], |
1721 ], | 1727 ], |
1722 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd bserver/gdbserver', | 1728 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-arm/gdbserver/gdbserver', |
1723 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-arm', | 1729 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-arm', |
1724 'android_ndk_lib_dir%': 'usr/lib', | 1730 'android_ndk_lib_dir%': 'usr/lib', |
1725 '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', |
1726 }], | 1732 }], |
1727 ['target_arch == "arm64"', { | 1733 ['target_arch == "arm64"', { |
1728 'android_app_abi%': 'arm64-v8a', | 1734 'android_app_abi%': 'arm64-v8a', |
1729 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm64/ gdbserver/gdbserver', | 1735 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-arm64/gdbserver/gdbserver', |
1730 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-arm64', | 1736 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-arm64', |
1731 'android_ndk_lib_dir%': 'usr/lib', | 1737 'android_ndk_lib_dir%': 'usr/lib', |
1732 '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', |
1733 }], | 1739 }], |
1734 ['target_arch == "mipsel"', { | 1740 ['target_arch == "mipsel"', { |
1735 'android_app_abi%': 'mips', | 1741 'android_app_abi%': 'mips', |
1736 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/g dbserver/gdbserver', | 1742 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-mips/gdbserver/gdbserver', |
1737 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-mips', | 1743 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-mips', |
1738 'android_ndk_lib_dir%': 'usr/lib', | 1744 'android_ndk_lib_dir%': 'usr/lib', |
1739 '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', |
1740 }], | 1746 }], |
1741 ['target_arch == "mips64el"', { | 1747 ['target_arch == "mips64el"', { |
1742 'android_app_abi%': 'mips64', | 1748 'android_app_abi%': 'mips64', |
1743 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips64 /gdbserver/gdbserver', | 1749 'android_gdbserver%': '<(android_ndk_absolute_root)/prebuilt/andro id-mips64/gdbserver/gdbserver', |
1744 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-mips64', | 1750 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/ arch-mips64', |
1745 'android_ndk_lib_dir%': 'usr/lib64', | 1751 'android_ndk_lib_dir%': 'usr/lib64', |
1746 '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', |
1747 'gcc_version%': 49, | |
Nico
2015/03/03 16:46:27
Is this no longer needed?
Fabrice (no longer in Chrome)
2015/03/03 16:54:21
This is from a time when we were using GCC 4.8 for
| |
1748 }], | 1753 }], |
1749 ], | 1754 ], |
1750 }, | 1755 }, |
1751 # Copy conditionally-set variables out one scope. | 1756 # Copy conditionally-set variables out one scope. |
1752 'android_app_abi%': '<(android_app_abi)', | 1757 'android_app_abi%': '<(android_app_abi)', |
1753 'android_gdbserver%': '<(android_gdbserver)', | 1758 'android_gdbserver%': '<(android_gdbserver)', |
1754 'android_ndk_root%': '<(android_ndk_root)', | 1759 'android_ndk_root%': '<(android_ndk_root)', |
1755 'android_ndk_sysroot%': '<(android_ndk_sysroot)', | 1760 'android_ndk_sysroot%': '<(android_ndk_sysroot)', |
1756 'android_sdk_root%': '<(android_sdk_root)', | 1761 'android_sdk_root%': '<(android_sdk_root)', |
1757 'android_sdk_version%': '<(android_sdk_version)', | 1762 'android_sdk_version%': '<(android_sdk_version)', |
(...skipping 4217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5975 # settings in target dicts. SYMROOT is a special case, because many other | 5980 # settings in target dicts. SYMROOT is a special case, because many other |
5976 # Xcode variables depend on it, including variables such as | 5981 # Xcode variables depend on it, including variables such as |
5977 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5982 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5978 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5983 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5979 # files to appear (when present) in the UI as actual files and not red | 5984 # files to appear (when present) in the UI as actual files and not red |
5980 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5985 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5981 # and therefore SYMROOT, needs to be set at the project level. | 5986 # and therefore SYMROOT, needs to be set at the project level. |
5982 'SYMROOT': '<(DEPTH)/xcodebuild', | 5987 'SYMROOT': '<(DEPTH)/xcodebuild', |
5983 }, | 5988 }, |
5984 } | 5989 } |
OLD | NEW |