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

Side by Side Diff: build/common.gypi

Issue 225093007: [Android]: Update Arm64 and x86_64 build targets to use the experimental ndk. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update stlport too. Created 6 years, 8 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 | « no previous file | build/java_apk.gypi » ('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 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 ], 1469 ],
1470 }], # OS=="ios" 1470 }], # OS=="ios"
1471 ['OS=="android"', { 1471 ['OS=="android"', {
1472 # Location of Android NDK. 1472 # Location of Android NDK.
1473 'variables': { 1473 'variables': {
1474 'variables': { 1474 'variables': {
1475 # Unfortunately we have to use absolute paths to the SDK/NDK because 1475 # Unfortunately we have to use absolute paths to the SDK/NDK because
1476 # they're passed to ant which uses a different relative path from 1476 # they're passed to ant which uses a different relative path from
1477 # gyp. 1477 # gyp.
1478 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_ tools/ndk/', 1478 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_ tools/ndk/',
1479 'android_ndk_experimental_root%': '<!(cd <(DEPTH) && pwd -P)/third_p arty/android_tools/ndk_experimental/',
1479 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_ tools/sdk/', 1480 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android_ tools/sdk/',
1480 'android_host_arch%': '<!(uname -m)', 1481 'android_host_arch%': '<!(uname -m)',
1481 # Android API-level of the SDK used for compilation. 1482 # Android API-level of the SDK used for compilation.
1482 'android_sdk_version%': '19', 1483 'android_sdk_version%': '19',
1483 'android_sdk_build_tools_version%': '19.0.0', 1484 'android_sdk_build_tools_version%': '19.0.0',
1484 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", 1485 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')",
1485 }, 1486 },
1486 # Copy conditionally-set variables out one scope. 1487 # Copy conditionally-set variables out one scope.
1487 'android_ndk_root%': '<(android_ndk_root)', 1488 'android_ndk_root%': '<(android_ndk_root)',
1488 'android_sdk_root%': '<(android_sdk_root)', 1489 'android_sdk_root%': '<(android_sdk_root)',
1489 'android_sdk_version%': '<(android_sdk_version)', 1490 'android_sdk_version%': '<(android_sdk_version)',
1490 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', 1491 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport',
1491 'host_os%': '<(host_os)', 1492 'host_os%': '<(host_os)',
1492 1493
1493 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v ersion)', 1494 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v ersion)',
1494 # Android SDK build tools (e.g. dx, aapt, aidl) 1495 # Android SDK build tools (e.g. dx, aapt, aidl)
1495 'android_sdk_tools%': '<(android_sdk_root)/build-tools/<(android_sdk_b uild_tools_version)', 1496 'android_sdk_tools%': '<(android_sdk_root)/build-tools/<(android_sdk_b uild_tools_version)',
1496 1497
1497 # Android API level 14 is ICS (Android 4.0) which is the minimum 1498 # Android API level 14 is ICS (Android 4.0) which is the minimum
1498 # platform requirement for Chrome on Android, we use it for native 1499 # platform requirement for Chrome on Android, we use it for native
1499 # code compilation. 1500 # code compilation.
1500 'conditions': [ 1501 'conditions': [
1501 ['target_arch == "ia32"', { 1502 ['target_arch == "ia32"', {
1502 'android_app_abi%': 'x86', 1503 'android_app_abi%': 'x86',
1503 'android_gdbserver_executable%': 'gdbserver',
1504 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd bserver/gdbserver', 1504 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd bserver/gdbserver',
1505 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-x86', 1505 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-x86',
1506 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.6/preb uilt/<(host_os)-<(android_host_arch)/bin', 1506 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.6/preb uilt/<(host_os)-<(android_host_arch)/bin',
1507 }], 1507 }],
1508 ['target_arch == "x64"', { 1508 ['target_arch == "x64"', {
1509 'android_app_abi%': 'x86_64', 1509 'android_app_abi%': 'x86_64',
1510 'android_gdbserver_executable%': 'gdbserver64', 1510 'android_gdbserver%': '<(android_ndk_experimental_root)/prebuilt/a ndroid-x86_64/gdbserver/gdbserver',
1511 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86_64 /gdbserver/gdbserver64', 1511 'android_ndk_sysroot%': '<(android_ndk_experimental_root)/platform s/android-20/arch-x86_64',
1512 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-19/ arch-x86_64', 1512 'android_toolchain%': '<(android_ndk_experimental_root)/toolchains /x86_64-4.8/prebuilt/<(host_os)-<(android_host_arch)/bin',
1513 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.8/p rebuilt/<(host_os)-<(android_host_arch)/bin', 1513 'android_stlport_root': '<(android_ndk_experimental_root)/sources/ cxx-stl/stlport',
1514 }], 1514 }],
1515 ['target_arch=="arm"', { 1515 ['target_arch=="arm"', {
1516 'conditions': [ 1516 'conditions': [
1517 ['arm_version<7', { 1517 ['arm_version<7', {
1518 'android_app_abi%': 'armeabi', 1518 'android_app_abi%': 'armeabi',
1519 }, { 1519 }, {
1520 'android_app_abi%': 'armeabi-v7a', 1520 'android_app_abi%': 'armeabi-v7a',
1521 }], 1521 }],
1522 ], 1522 ],
1523 'android_gdbserver_executable%': 'gdbserver',
1524 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd bserver/gdbserver', 1523 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd bserver/gdbserver',
1525 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-arm', 1524 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-arm',
1526 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an droideabi-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', 1525 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an droideabi-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin',
1527 }], 1526 }],
1528 ['target_arch == "arm64"', { 1527 ['target_arch == "arm64"', {
1529 'android_app_abi%': 'arm64-v8a', 1528 'android_app_abi%': 'arm64-v8a',
1530 'android_gdbserver_executable%': 'gdbserver64', 1529 'android_gdbserver%': '<(android_ndk_experimental_root)/prebuilt/a ndroid-arm64/gdbserver/gdbserver',
1531 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm64/ gdbserver64/gdbserver64', 1530 'android_ndk_sysroot%': '<(android_ndk_experimental_root)/platform s/android-20/arch-arm64',
1532 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-19/ arch-arm64', 1531 'android_toolchain%': '<(android_ndk_experimental_root)/toolchains /aarch64-linux-android-4.8/prebuilt/<(host_os)-<(android_host_arch)/bin',
1533 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linu x-android-4.8/prebuilt/<(host_os)-<(android_host_arch)/bin', 1532 'android_stlport_root': '<(android_ndk_experimental_root)/sources/ cxx-stl/stlport',
1534 }], 1533 }],
1535 ['target_arch == "mipsel"', { 1534 ['target_arch == "mipsel"', {
1536 'android_app_abi%': 'mips', 1535 'android_app_abi%': 'mips',
1537 'android_gdbserver_executable%': 'gdbserver',
1538 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/g dbserver/gdbserver', 1536 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/g dbserver/gdbserver',
1539 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-mips', 1537 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-mips',
1540 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux -android-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', 1538 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux -android-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin',
1541 }], 1539 }],
1542 ], 1540 ],
1543 }, 1541 },
1544 # Copy conditionally-set variables out one scope. 1542 # Copy conditionally-set variables out one scope.
1545 'android_app_abi%': '<(android_app_abi)', 1543 'android_app_abi%': '<(android_app_abi)',
1546 'android_gdbserver_executable': '<(android_gdbserver_executable)',
1547 'android_gdbserver%': '<(android_gdbserver)', 1544 'android_gdbserver%': '<(android_gdbserver)',
1548 'android_ndk_root%': '<(android_ndk_root)', 1545 'android_ndk_root%': '<(android_ndk_root)',
1549 'android_ndk_sysroot%': '<(android_ndk_sysroot)', 1546 'android_ndk_sysroot%': '<(android_ndk_sysroot)',
1550 'android_sdk_root%': '<(android_sdk_root)', 1547 'android_sdk_root%': '<(android_sdk_root)',
1551 'android_sdk_version%': '<(android_sdk_version)', 1548 'android_sdk_version%': '<(android_sdk_version)',
1552 'android_toolchain%': '<(android_toolchain)', 1549 'android_toolchain%': '<(android_toolchain)',
1553 1550
1554 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', 1551 'android_ndk_include': '<(android_ndk_sysroot)/usr/include',
1555 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', 1552 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib',
1556 'android_sdk_tools%': '<(android_sdk_tools)', 1553 'android_sdk_tools%': '<(android_sdk_tools)',
(...skipping 3650 matching lines...) Expand 10 before | Expand all | Expand 10 after
5207 # settings in target dicts. SYMROOT is a special case, because many other 5204 # settings in target dicts. SYMROOT is a special case, because many other
5208 # Xcode variables depend on it, including variables such as 5205 # Xcode variables depend on it, including variables such as
5209 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5206 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5210 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5207 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5211 # files to appear (when present) in the UI as actual files and not red 5208 # files to appear (when present) in the UI as actual files and not red
5212 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5209 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5213 # and therefore SYMROOT, needs to be set at the project level. 5210 # and therefore SYMROOT, needs to be set at the project level.
5214 'SYMROOT': '<(DEPTH)/xcodebuild', 5211 'SYMROOT': '<(DEPTH)/xcodebuild',
5215 }, 5212 },
5216 } 5213 }
OLDNEW
« no previous file with comments | « no previous file | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698