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 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1645 'variables': { | 1645 'variables': { |
1646 'variables': { | 1646 'variables': { |
1647 # Unfortunately we have to use absolute paths to the SDK/NDK because | 1647 # Unfortunately we have to use absolute paths to the SDK/NDK because |
1648 # they're passed to ant which uses a different relative path from | 1648 # they're passed to ant which uses a different relative path from |
1649 # gyp. | 1649 # gyp. |
1650 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_
tools/ndk/', | 1650 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_
tools/ndk/', |
1651 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_
tools/sdk/', | 1651 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_
tools/sdk/', |
1652 'android_host_arch%': '<!(uname -m)', | 1652 'android_host_arch%': '<!(uname -m)', |
1653 # Android API-level of the SDK used for compilation. | 1653 # Android API-level of the SDK used for compilation. |
1654 'android_sdk_version%': '21', | 1654 'android_sdk_version%': '21', |
1655 'android_sdk_build_tools_version%': '21.0.0', | 1655 'android_sdk_build_tools_version%': '21.0.1', |
1656 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", | 1656 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", |
1657 }, | 1657 }, |
1658 # Copy conditionally-set variables out one scope. | 1658 # Copy conditionally-set variables out one scope. |
1659 'android_ndk_root%': '<(android_ndk_root)', | 1659 'android_ndk_root%': '<(android_ndk_root)', |
1660 'android_sdk_root%': '<(android_sdk_root)', | 1660 'android_sdk_root%': '<(android_sdk_root)', |
1661 'android_sdk_version%': '<(android_sdk_version)', | 1661 'android_sdk_version%': '<(android_sdk_version)', |
1662 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', | 1662 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', |
1663 'host_os%': '<(host_os)', | 1663 'host_os%': '<(host_os)', |
1664 | 1664 |
1665 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v
ersion)', | 1665 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v
ersion)', |
1666 # Android SDK build tools (e.g. dx, aapt, aidl) | 1666 # Android SDK build tools (e.g. dx, aapt, aidl) |
1667 'android_sdk_tools%': '<(android_sdk_root)/build-tools/<(android_sdk_b
uild_tools_version)', | 1667 'android_sdk_tools%': '<(android_sdk_root)/build-tools/<(android_sdk_b
uild_tools_version)', |
1668 | 1668 |
1669 # Android API level 14 is ICS (Android 4.0) which is the minimum | 1669 # Android API level 14 is ICS (Android 4.0) which is the minimum |
1670 # platform requirement for Chrome on Android, we use it for native | 1670 # platform requirement for Chrome on Android, we use it for native |
1671 # code compilation. | 1671 # code compilation. |
1672 'conditions': [ | 1672 'conditions': [ |
1673 ['target_arch == "ia32"', { | 1673 ['target_arch == "ia32"', { |
1674 'android_app_abi%': 'x86', | 1674 'android_app_abi%': 'x86', |
1675 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd
bserver/gdbserver', | 1675 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd
bserver/gdbserver', |
1676 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-x86', | 1676 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-x86', |
1677 'android_ndk_lib_dir%': 'usr/lib', | 1677 'android_ndk_lib_dir%': 'usr/lib', |
1678 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.9/preb
uilt/<(host_os)-<(android_host_arch)/bin', | 1678 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.9/preb
uilt/<(host_os)-<(android_host_arch)/bin', |
1679 }], | 1679 }], |
1680 ['target_arch == "x64"', { | 1680 ['target_arch == "x64"', { |
1681 'android_app_abi%': 'x86_64', | 1681 'android_app_abi%': 'x86_64', |
1682 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86_64
/gdbserver/gdbserver', | 1682 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86_64
/gdbserver/gdbserver', |
1683 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-L/a
rch-x86_64', | 1683 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/
arch-x86_64', |
1684 'android_ndk_lib_dir%': 'usr/lib64', | 1684 'android_ndk_lib_dir%': 'usr/lib64', |
1685 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.9/p
rebuilt/<(host_os)-<(android_host_arch)/bin', | 1685 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.9/p
rebuilt/<(host_os)-<(android_host_arch)/bin', |
1686 }], | 1686 }], |
1687 ['target_arch=="arm"', { | 1687 ['target_arch=="arm"', { |
1688 'conditions': [ | 1688 'conditions': [ |
1689 ['arm_version<7', { | 1689 ['arm_version<7', { |
1690 'android_app_abi%': 'armeabi', | 1690 'android_app_abi%': 'armeabi', |
1691 }, { | 1691 }, { |
1692 'android_app_abi%': 'armeabi-v7a', | 1692 'android_app_abi%': 'armeabi-v7a', |
1693 }], | 1693 }], |
1694 ], | 1694 ], |
1695 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd
bserver/gdbserver', | 1695 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd
bserver/gdbserver', |
1696 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-arm', | 1696 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-arm', |
1697 'android_ndk_lib_dir%': 'usr/lib', | 1697 'android_ndk_lib_dir%': 'usr/lib', |
1698 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an
droideabi-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', | 1698 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an
droideabi-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
1699 }], | 1699 }], |
1700 ['target_arch == "arm64"', { | 1700 ['target_arch == "arm64"', { |
1701 'android_app_abi%': 'arm64-v8a', | 1701 'android_app_abi%': 'arm64-v8a', |
1702 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm64/
gdbserver/gdbserver', | 1702 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm64/
gdbserver/gdbserver', |
1703 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-L/a
rch-arm64', | 1703 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/
arch-arm64', |
1704 'android_ndk_lib_dir%': 'usr/lib', | 1704 'android_ndk_lib_dir%': 'usr/lib', |
1705 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linu
x-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', | 1705 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linu
x-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
1706 }], | 1706 }], |
1707 ['target_arch == "mipsel"', { | 1707 ['target_arch == "mipsel"', { |
1708 'android_app_abi%': 'mips', | 1708 'android_app_abi%': 'mips', |
1709 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/g
dbserver/gdbserver', | 1709 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/g
dbserver/gdbserver', |
1710 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-mips', | 1710 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-mips', |
1711 'android_ndk_lib_dir%': 'usr/lib', | 1711 'android_ndk_lib_dir%': 'usr/lib', |
1712 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux
-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', | 1712 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux
-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
1713 }], | 1713 }], |
1714 ['target_arch == "mips64el"', { | 1714 ['target_arch == "mips64el"', { |
1715 'android_app_abi%': 'mips64', | 1715 'android_app_abi%': 'mips64', |
1716 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips64
/gdbserver/gdbserver', | 1716 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips64
/gdbserver/gdbserver', |
1717 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-L/a
rch-mips64', | 1717 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-21/
arch-mips64', |
1718 'android_ndk_lib_dir%': 'usr/lib64', | 1718 'android_ndk_lib_dir%': 'usr/lib64', |
1719 'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-lin
ux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', | 1719 'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-lin
ux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
1720 'gcc_version%': 49, | 1720 'gcc_version%': 49, |
1721 }], | 1721 }], |
1722 ], | 1722 ], |
1723 }, | 1723 }, |
1724 # Copy conditionally-set variables out one scope. | 1724 # Copy conditionally-set variables out one scope. |
1725 'android_app_abi%': '<(android_app_abi)', | 1725 'android_app_abi%': '<(android_app_abi)', |
1726 'android_gdbserver%': '<(android_gdbserver)', | 1726 'android_gdbserver%': '<(android_gdbserver)', |
1727 'android_ndk_root%': '<(android_ndk_root)', | 1727 'android_ndk_root%': '<(android_ndk_root)', |
(...skipping 4110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5838 # settings in target dicts. SYMROOT is a special case, because many other | 5838 # settings in target dicts. SYMROOT is a special case, because many other |
5839 # Xcode variables depend on it, including variables such as | 5839 # Xcode variables depend on it, including variables such as |
5840 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5840 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5841 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5841 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5842 # files to appear (when present) in the UI as actual files and not red | 5842 # files to appear (when present) in the UI as actual files and not red |
5843 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5843 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5844 # and therefore SYMROOT, needs to be set at the project level. | 5844 # and therefore SYMROOT, needs to be set at the project level. |
5845 'SYMROOT': '<(DEPTH)/xcodebuild', | 5845 'SYMROOT': '<(DEPTH)/xcodebuild', |
5846 }, | 5846 }, |
5847 } | 5847 } |
OLD | NEW |