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 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1383 'variables': { | 1383 'variables': { |
1384 'variables': { | 1384 'variables': { |
1385 # Unfortuantely we have to use absolute paths to the SDK/NDK beause | 1385 # Unfortuantely we have to use absolute paths to the SDK/NDK beause |
1386 # they're passed to ant which uses a different relative path from | 1386 # they're passed to ant which uses a different relative path from |
1387 # gyp. | 1387 # gyp. |
1388 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android _tools/ndk/', | 1388 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android _tools/ndk/', |
1389 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android _tools/sdk/', | 1389 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android _tools/sdk/', |
1390 'android_host_arch%': '<!(uname -m)', | 1390 'android_host_arch%': '<!(uname -m)', |
1391 # Android API-level of the SDK used for compilation. | 1391 # Android API-level of the SDK used for compilation. |
1392 'android_sdk_version%': '19', | 1392 'android_sdk_version%': '19', |
1393 # Android SDK build tools (e.g. dx, aapt, aidl) | |
1394 'android_sdk_tools%': '<!(/bin/echo -n ${ANDROID_SDK_TOOLS})', | |
1395 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", | 1393 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", |
1396 }, | 1394 }, |
1397 # Copy conditionally-set variables out one scope. | 1395 # Copy conditionally-set variables out one scope. |
1398 'android_ndk_root%': '<(android_ndk_root)', | 1396 'android_ndk_root%': '<(android_ndk_root)', |
1399 'android_sdk_root%': '<(android_sdk_root)', | 1397 'android_sdk_root%': '<(android_sdk_root)', |
1400 'android_sdk_version%': '<(android_sdk_version)', | 1398 'android_sdk_version%': '<(android_sdk_version)', |
1401 'android_sdk_tools%': '<(android_sdk_tools)', | |
1402 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', | 1399 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', |
1403 'host_os%': '<(host_os)', | 1400 'host_os%': '<(host_os)', |
1404 | 1401 |
1405 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v ersion)', | 1402 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v ersion)', |
1403 # Android SDK build tools (e.g. dx, aapt, aidl) | |
1404 'android_sdk_tools%': '<(android_sdk_root)/build-tools/<(android_sdk_v ersion).0.0', | |
Torne
2014/02/17 12:14:19
I don't think this is correct; I think the current
Nico
2014/02/17 16:20:21
Are you sure? They were updated at the same time t
Yaron
2014/02/18 18:55:51
Two things come to mind:
1) When we first getting
| |
1406 | 1405 |
1407 # Android API level 14 is ICS (Android 4.0) which is the minimum | 1406 # Android API level 14 is ICS (Android 4.0) which is the minimum |
1408 # platform requirement for Chrome on Android, we use it for native | 1407 # platform requirement for Chrome on Android, we use it for native |
1409 # code compilation. | 1408 # code compilation. |
1410 'conditions': [ | 1409 'conditions': [ |
1411 ['target_arch == "ia32"', { | 1410 ['target_arch == "ia32"', { |
1412 'android_app_abi%': 'x86', | 1411 'android_app_abi%': 'x86', |
1413 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd bserver/gdbserver', | 1412 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd bserver/gdbserver', |
1414 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-x86', | 1413 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-x86', |
1415 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.6/preb uilt/<(host_os)-<(android_host_arch)/bin', | 1414 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.6/preb uilt/<(host_os)-<(android_host_arch)/bin', |
(...skipping 3562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4978 # settings in target dicts. SYMROOT is a special case, because many other | 4977 # settings in target dicts. SYMROOT is a special case, because many other |
4979 # Xcode variables depend on it, including variables such as | 4978 # Xcode variables depend on it, including variables such as |
4980 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4979 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4981 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4980 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4982 # files to appear (when present) in the UI as actual files and not red | 4981 # files to appear (when present) in the UI as actual files and not red |
4983 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4982 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4984 # and therefore SYMROOT, needs to be set at the project level. | 4983 # and therefore SYMROOT, needs to be set at the project level. |
4985 'SYMROOT': '<(DEPTH)/xcodebuild', | 4984 'SYMROOT': '<(DEPTH)/xcodebuild', |
4986 }, | 4985 }, |
4987 } | 4986 } |
OLD | NEW |