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 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1705 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_
tools/sdk/', | 1705 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_
tools/sdk/', |
1706 # Similarly, gdbserver and the Android toolchain need to use the | 1706 # Similarly, gdbserver and the Android toolchain need to use the |
1707 # absolute path to the NDK because they are used at different levels | 1707 # absolute path to the NDK because they are used at different levels |
1708 # in the GYP files. | 1708 # in the GYP files. |
1709 'android_ndk_absolute_root%': '<!(cd <(DEPTH) && pwd -P)/third_party
/android_tools/ndk/', | 1709 'android_ndk_absolute_root%': '<!(cd <(DEPTH) && pwd -P)/third_party
/android_tools/ndk/', |
1710 'android_host_arch%': '<!(uname -m)', | 1710 'android_host_arch%': '<!(uname -m)', |
1711 # Android API-level of the SDK used for compilation. | 1711 # Android API-level of the SDK used for compilation. |
1712 'android_sdk_version%': '22', | 1712 'android_sdk_version%': '22', |
1713 'android_sdk_build_tools_version%': '22.0.0', | 1713 'android_sdk_build_tools_version%': '22.0.0', |
1714 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", | 1714 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", |
| 1715 |
| 1716 'conditions': [ |
| 1717 # Figure this out early since it needs symbols from libgcc.a, so i
t |
| 1718 # has to be before that in the set of libraries. |
| 1719 ['component=="shared_library" or asan==1', { |
| 1720 'android_libcpp_library': 'c++_shared', |
| 1721 }, { |
| 1722 'android_libcpp_library': 'c++_static', |
| 1723 }], |
| 1724 ], |
| 1725 |
1715 }, | 1726 }, |
1716 # Copy conditionally-set variables out one scope. | 1727 # Copy conditionally-set variables out one scope. |
1717 'android_ndk_root%': '<(android_ndk_root)', | 1728 'android_ndk_root%': '<(android_ndk_root)', |
1718 'android_ndk_absolute_root%': '<(android_ndk_absolute_root)', | 1729 'android_ndk_absolute_root%': '<(android_ndk_absolute_root)', |
1719 'android_sdk_root%': '<(android_sdk_root)', | 1730 'android_sdk_root%': '<(android_sdk_root)', |
1720 'android_sdk_version%': '<(android_sdk_version)', | 1731 'android_sdk_version%': '<(android_sdk_version)', |
1721 'android_libcpp_root': '<(android_ndk_root)/sources/cxx-stl/llvm-libc+
+', | 1732 'android_libcpp_root': '<(android_ndk_root)/sources/cxx-stl/llvm-libc+
+', |
| 1733 'android_libcpp_library': '<(android_libcpp_library)', |
1722 'host_os%': '<(host_os)', | 1734 'host_os%': '<(host_os)', |
1723 | 1735 |
1724 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v
ersion)', | 1736 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v
ersion)', |
1725 # Android SDK build tools (e.g. dx, aidl) | 1737 # Android SDK build tools (e.g. dx, aidl) |
1726 'android_sdk_tools%': '<(android_sdk_root)/build-tools/<(android_sdk_b
uild_tools_version)', | 1738 'android_sdk_tools%': '<(android_sdk_root)/build-tools/<(android_sdk_b
uild_tools_version)', |
1727 | 1739 |
1728 # Android API level 16 is JB (Android 4.1) which is the minimum | 1740 # Android API level 16 is JB (Android 4.1) which is the minimum |
1729 # platform requirement for Chrome on Android, we use it for native | 1741 # platform requirement for Chrome on Android, we use it for native |
1730 # code compilation. | 1742 # code compilation. |
1731 'conditions': [ | 1743 'conditions': [ |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1789 'android_toolchain%': '<(android_toolchain)', | 1801 'android_toolchain%': '<(android_toolchain)', |
1790 | 1802 |
1791 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', | 1803 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', |
1792 'android_ndk_lib': '<(android_ndk_sysroot)/<(android_ndk_lib_dir)', | 1804 'android_ndk_lib': '<(android_ndk_sysroot)/<(android_ndk_lib_dir)', |
1793 'android_sdk_tools%': '<(android_sdk_tools)', | 1805 'android_sdk_tools%': '<(android_sdk_tools)', |
1794 'android_aapt_path%': '<(android_sdk_tools)/aapt', | 1806 'android_aapt_path%': '<(android_sdk_tools)/aapt', |
1795 'android_sdk%': '<(android_sdk)', | 1807 'android_sdk%': '<(android_sdk)', |
1796 'android_sdk_jar%': '<(android_sdk)/android.jar', | 1808 'android_sdk_jar%': '<(android_sdk)/android.jar', |
1797 | 1809 |
1798 'android_libcpp_root': '<(android_libcpp_root)', | 1810 'android_libcpp_root': '<(android_libcpp_root)', |
| 1811 'android_libcpp_library': '<(android_libcpp_library)', |
1799 'android_libcpp_include': '<(android_libcpp_root)/libcxx/include', | 1812 'android_libcpp_include': '<(android_libcpp_root)/libcxx/include', |
1800 'android_libcpp_libs_dir%': '<(android_libcpp_root)/libs/<(android_app_a
bi)', | 1813 'android_libcpp_libs_dir%': '<(android_libcpp_root)/libs/<(android_app_a
bi)', |
1801 'host_os%': '<(host_os)', | 1814 'host_os%': '<(host_os)', |
1802 | 1815 |
1803 # Location of the "objcopy" binary, used by both gyp and scripts. | 1816 # Location of the "objcopy" binary, used by both gyp and scripts. |
1804 'android_objcopy%' : '<!(/bin/echo -n <(android_toolchain)/*-objcopy)', | 1817 'android_objcopy%' : '<!(/bin/echo -n <(android_toolchain)/*-objcopy)', |
1805 | 1818 |
1806 # Location of the "strip" binary, used by both gyp and scripts. | 1819 # Location of the "strip" binary, used by both gyp and scripts. |
1807 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)', | 1820 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)', |
1808 | 1821 |
(...skipping 2928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4737 ], | 4750 ], |
4738 }, | 4751 }, |
4739 }], | 4752 }], |
4740 # Android-specific options; note that most are set above with Linux. | 4753 # Android-specific options; note that most are set above with Linux. |
4741 ['OS=="android"', { | 4754 ['OS=="android"', { |
4742 'variables': { | 4755 'variables': { |
4743 # This is a unique identifier for a given build. It's used for | 4756 # This is a unique identifier for a given build. It's used for |
4744 # identifying various build artifacts corresponding to a particular | 4757 # identifying various build artifacts corresponding to a particular |
4745 # build of chrome (e.g. where to find archived symbols). | 4758 # build of chrome (e.g. where to find archived symbols). |
4746 'chrome_build_id%': '', | 4759 'chrome_build_id%': '', |
4747 'conditions': [ | |
4748 # Figure this out early since it needs symbols from libgcc.a, so it | |
4749 # has to be before that in the set of libraries. | |
4750 ['component=="shared_library"', { | |
4751 'android_libcpp_library': 'c++_shared', | |
4752 }, { | |
4753 'android_libcpp_library': 'c++_static', | |
4754 }], | |
4755 ], | |
4756 | 4760 |
4757 # Placing this variable here prevents from forking libvpx, used | 4761 # Placing this variable here prevents from forking libvpx, used |
4758 # by remoting. Remoting is off, so it needn't built, | 4762 # by remoting. Remoting is off, so it needn't built, |
4759 # so forking it's deps seems like overkill. | 4763 # so forking it's deps seems like overkill. |
4760 # But this variable need defined to properly run gyp. | 4764 # But this variable need defined to properly run gyp. |
4761 # A proper solution is to have an OS==android conditional | 4765 # A proper solution is to have an OS==android conditional |
4762 # in third_party/libvpx/libvpx.gyp to define it. | 4766 # in third_party/libvpx/libvpx.gyp to define it. |
4763 'libvpx_path': 'lib/linux/arm', | 4767 'libvpx_path': 'lib/linux/arm', |
4764 }, | 4768 }, |
4765 'target_defaults': { | 4769 'target_defaults': { |
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6283 # settings in target dicts. SYMROOT is a special case, because many other | 6287 # settings in target dicts. SYMROOT is a special case, because many other |
6284 # Xcode variables depend on it, including variables such as | 6288 # Xcode variables depend on it, including variables such as |
6285 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6289 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6286 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6290 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6287 # files to appear (when present) in the UI as actual files and not red | 6291 # files to appear (when present) in the UI as actual files and not red |
6288 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6292 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6289 # and therefore SYMROOT, needs to be set at the project level. | 6293 # and therefore SYMROOT, needs to be set at the project level. |
6290 'SYMROOT': '<(DEPTH)/xcodebuild', | 6294 'SYMROOT': '<(DEPTH)/xcodebuild', |
6291 }, | 6295 }, |
6292 } | 6296 } |
OLD | NEW |