| 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 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1301 # The version of GCC in use, set later in platforms that use GCC and have | 1301 # The version of GCC in use, set later in platforms that use GCC and have |
| 1302 # not explicitly chosen to build with clang. Currently, this means all | 1302 # not explicitly chosen to build with clang. Currently, this means all |
| 1303 # platforms except Windows, Mac and iOS. | 1303 # platforms except Windows, Mac and iOS. |
| 1304 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that | 1304 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that |
| 1305 # it takes effect here. | 1305 # it takes effect here. |
| 1306 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsa
n==0 and tsan==0 and msan==0', { | 1306 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsa
n==0 and tsan==0 and msan==0', { |
| 1307 'conditions': [ | 1307 'conditions': [ |
| 1308 ['OS=="android"', { | 1308 ['OS=="android"', { |
| 1309 # We directly set the gcc_version since we know what we use. | 1309 # We directly set the gcc_version since we know what we use. |
| 1310 'conditions': [ | 1310 'conditions': [ |
| 1311 ['target_arch=="x64"', { | 1311 ['target_arch=="x64" or target_arch=="arm64"', { |
| 1312 'gcc_version%': 48, | 1312 'gcc_version%': 48, |
| 1313 }, { | 1313 }, { |
| 1314 'gcc_version%': 46, | 1314 'gcc_version%': 46, |
| 1315 }], | 1315 }], |
| 1316 ], | 1316 ], |
| 1317 'binutils_version%': 222, | 1317 'binutils_version%': 222, |
| 1318 }, { | 1318 }, { |
| 1319 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | 1319 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
| 1320 'binutils_version%': '<!(python <(DEPTH)/build/compiler_version.py a
ssembler)', | 1320 'binutils_version%': '<!(python <(DEPTH)/build/compiler_version.py a
ssembler)', |
| 1321 }], | 1321 }], |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1431 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v
ersion)', | 1431 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v
ersion)', |
| 1432 # Android SDK build tools (e.g. dx, aapt, aidl) | 1432 # Android SDK build tools (e.g. dx, aapt, aidl) |
| 1433 'android_sdk_tools%': '<(android_sdk_root)/build-tools/<(android_sdk_b
uild_tools_version)', | 1433 'android_sdk_tools%': '<(android_sdk_root)/build-tools/<(android_sdk_b
uild_tools_version)', |
| 1434 | 1434 |
| 1435 # Android API level 14 is ICS (Android 4.0) which is the minimum | 1435 # Android API level 14 is ICS (Android 4.0) which is the minimum |
| 1436 # platform requirement for Chrome on Android, we use it for native | 1436 # platform requirement for Chrome on Android, we use it for native |
| 1437 # code compilation. | 1437 # code compilation. |
| 1438 'conditions': [ | 1438 'conditions': [ |
| 1439 ['target_arch == "ia32"', { | 1439 ['target_arch == "ia32"', { |
| 1440 'android_app_abi%': 'x86', | 1440 'android_app_abi%': 'x86', |
| 1441 'android_gdbserver_executable%': 'gdbserver', |
| 1441 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd
bserver/gdbserver', | 1442 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd
bserver/gdbserver', |
| 1442 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-x86', | 1443 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-x86', |
| 1443 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.6/preb
uilt/<(host_os)-<(android_host_arch)/bin', | 1444 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.6/preb
uilt/<(host_os)-<(android_host_arch)/bin', |
| 1444 }], | 1445 }], |
| 1445 ['target_arch == "x64"', { | 1446 ['target_arch == "x64"', { |
| 1446 'android_app_abi%': 'x86_64', | 1447 'android_app_abi%': 'x86_64', |
| 1447 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86_64
/gdbserver/gdbserver', | 1448 'android_gdbserver_executable%': 'gdbserver64', |
| 1449 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86_64
/gdbserver/gdbserver64', |
| 1448 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-19/
arch-x86_64', | 1450 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-19/
arch-x86_64', |
| 1449 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.8/p
rebuilt/<(host_os)-<(android_host_arch)/bin', | 1451 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.8/p
rebuilt/<(host_os)-<(android_host_arch)/bin', |
| 1450 }], | 1452 }], |
| 1451 ['target_arch=="arm"', { | 1453 ['target_arch=="arm"', { |
| 1452 'conditions': [ | 1454 'conditions': [ |
| 1453 ['arm_version<7', { | 1455 ['arm_version<7', { |
| 1454 'android_app_abi%': 'armeabi', | 1456 'android_app_abi%': 'armeabi', |
| 1455 }, { | 1457 }, { |
| 1456 'android_app_abi%': 'armeabi-v7a', | 1458 'android_app_abi%': 'armeabi-v7a', |
| 1457 }], | 1459 }], |
| 1458 ], | 1460 ], |
| 1461 'android_gdbserver_executable%': 'gdbserver', |
| 1459 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd
bserver/gdbserver', | 1462 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd
bserver/gdbserver', |
| 1460 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-arm', | 1463 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-arm', |
| 1461 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an
droideabi-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', | 1464 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an
droideabi-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| 1462 }], | 1465 }], |
| 1466 ['target_arch == "arm64"', { |
| 1467 'android_app_abi%': 'arm64', |
| 1468 'android_gdbserver_executable%': 'gdbserver64', |
| 1469 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm64/
gdbserver64/gdbserver64', |
| 1470 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-19/
arch-arm64', |
| 1471 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linu
x-android-4.8/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| 1472 }], |
| 1463 ['target_arch == "mipsel"', { | 1473 ['target_arch == "mipsel"', { |
| 1464 'android_app_abi%': 'mips', | 1474 'android_app_abi%': 'mips', |
| 1475 'android_gdbserver_executable%': 'gdbserver', |
| 1465 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/g
dbserver/gdbserver', | 1476 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/g
dbserver/gdbserver', |
| 1466 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-mips', | 1477 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-mips', |
| 1467 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux
-android-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', | 1478 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux
-android-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| 1468 }], | 1479 }], |
| 1469 ], | 1480 ], |
| 1470 }, | 1481 }, |
| 1471 # Copy conditionally-set variables out one scope. | 1482 # Copy conditionally-set variables out one scope. |
| 1472 'android_app_abi%': '<(android_app_abi)', | 1483 'android_app_abi%': '<(android_app_abi)', |
| 1484 'android_gdbserver_executable': '<(android_gdbserver_executable)', |
| 1473 'android_gdbserver%': '<(android_gdbserver)', | 1485 'android_gdbserver%': '<(android_gdbserver)', |
| 1474 'android_ndk_root%': '<(android_ndk_root)', | 1486 'android_ndk_root%': '<(android_ndk_root)', |
| 1475 'android_ndk_sysroot': '<(android_ndk_sysroot)', | 1487 'android_ndk_sysroot': '<(android_ndk_sysroot)', |
| 1476 'android_sdk_root%': '<(android_sdk_root)', | 1488 'android_sdk_root%': '<(android_sdk_root)', |
| 1477 'android_sdk_version%': '<(android_sdk_version)', | 1489 'android_sdk_version%': '<(android_sdk_version)', |
| 1478 'android_toolchain%': '<(android_toolchain)', | 1490 'android_toolchain%': '<(android_toolchain)', |
| 1479 | 1491 |
| 1480 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', | 1492 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', |
| 1481 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', | 1493 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', |
| 1482 'android_sdk_tools%': '<(android_sdk_tools)', | 1494 'android_sdk_tools%': '<(android_sdk_tools)', |
| (...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2984 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'], | 2996 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'], |
| 2985 }, | 2997 }, |
| 2986 'Release_x64': { | 2998 'Release_x64': { |
| 2987 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], | 2999 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], |
| 2988 }, | 3000 }, |
| 2989 }], | 3001 }], |
| 2990 ], | 3002 ], |
| 2991 }, | 3003 }, |
| 2992 }, | 3004 }, |
| 2993 'conditions': [ | 3005 'conditions': [ |
| 2994 # TODO(jochen): Enable this on chromeos. http://crbug.com/353127 | 3006 # TODO(jochen): Enable this on chromeos. http://crbug.com/353127 |
| 2995 ['os_posix==1 and chromeos==0', { | 3007 ['os_posix==1 and chromeos==0', { |
| 2996 'target_defaults': { | 3008 'target_defaults': { |
| 2997 'ldflags': [ | 3009 'ldflags': [ |
| 2998 '-Wl,--fatal-warnings', | 3010 '-Wl,--fatal-warnings', |
| 2999 '-Wl,-z,now', | 3011 '-Wl,-z,now', |
| 3000 '-Wl,-z,relro', | 3012 '-Wl,-z,relro', |
| 3001 ], | 3013 ], |
| 3002 }, | 3014 }, |
| 3003 }], | 3015 }], |
| 3004 ['os_posix==1 and chromeos==0', { | 3016 ['os_posix==1 and chromeos==0', { |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3387 'cflags': [ | 3399 'cflags': [ |
| 3388 '-marm', # Required for frame pointer based stack trac
es. | 3400 '-marm', # Required for frame pointer based stack trac
es. |
| 3389 ], | 3401 ], |
| 3390 }], | 3402 }], |
| 3391 ], | 3403 ], |
| 3392 }], | 3404 }], |
| 3393 ], | 3405 ], |
| 3394 }], | 3406 }], |
| 3395 ], | 3407 ], |
| 3396 }], | 3408 }], |
| 3409 ['target_arch=="arm64"', { |
| 3410 'target_conditions': [ |
| 3411 ['_toolset=="target"', { |
| 3412 'conditions': [ |
| 3413 ['OS=="android"', { |
| 3414 'cflags!': [ |
| 3415 '-fstack-protector', # stack protector is always enabled
on arm64. |
| 3416 ], |
| 3417 }], |
| 3418 ], |
| 3419 }], |
| 3420 ], |
| 3421 }], |
| 3397 ['target_arch=="mipsel"', { | 3422 ['target_arch=="mipsel"', { |
| 3398 'target_conditions': [ | 3423 'target_conditions': [ |
| 3399 ['_toolset=="target"', { | 3424 ['_toolset=="target"', { |
| 3400 'conditions': [ | 3425 'conditions': [ |
| 3401 ['android_webview_build==0 and mips_arch_variant=="mips32r2"',
{ | 3426 ['android_webview_build==0 and mips_arch_variant=="mips32r2"',
{ |
| 3402 'cflags': ['-mips32r2', '-Wa,-mips32r2'], | 3427 'cflags': ['-mips32r2', '-Wa,-mips32r2'], |
| 3403 }], | 3428 }], |
| 3404 ['android_webview_build==0 and mips_arch_variant!="mips32r2"',
{ | 3429 ['android_webview_build==0 and mips_arch_variant!="mips32r2"',
{ |
| 3405 'cflags': ['-mips32', '-Wa,-mips32'], | 3430 'cflags': ['-mips32', '-Wa,-mips32'], |
| 3406 }], | 3431 }], |
| (...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5103 # settings in target dicts. SYMROOT is a special case, because many other | 5128 # settings in target dicts. SYMROOT is a special case, because many other |
| 5104 # Xcode variables depend on it, including variables such as | 5129 # Xcode variables depend on it, including variables such as |
| 5105 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5130 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 5106 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5131 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 5107 # files to appear (when present) in the UI as actual files and not red | 5132 # files to appear (when present) in the UI as actual files and not red |
| 5108 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5133 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 5109 # and therefore SYMROOT, needs to be set at the project level. | 5134 # and therefore SYMROOT, needs to be set at the project level. |
| 5110 'SYMROOT': '<(DEPTH)/xcodebuild', | 5135 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 5111 }, | 5136 }, |
| 5112 } | 5137 } |
| OLD | NEW |