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 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1365 # Unfortuantely we have to use absolute paths to the SDK/NDK beause | 1365 # Unfortuantely we have to use absolute paths to the SDK/NDK beause |
1366 # they're passed to ant which uses a different relative path from | 1366 # they're passed to ant which uses a different relative path from |
1367 # gyp. | 1367 # gyp. |
1368 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android
_tools/ndk/', | 1368 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android
_tools/ndk/', |
1369 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android
_tools/sdk/', | 1369 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android
_tools/sdk/', |
1370 'android_host_arch%': '<!(uname -m)', | 1370 'android_host_arch%': '<!(uname -m)', |
1371 # Android API-level of the SDK used for compilation. | 1371 # Android API-level of the SDK used for compilation. |
1372 'android_sdk_version%': '<!(/bin/echo -n ${ANDROID_SDK_VERSION})', | 1372 'android_sdk_version%': '<!(/bin/echo -n ${ANDROID_SDK_VERSION})', |
1373 # Android SDK build tools (e.g. dx, aapt, aidl) | 1373 # Android SDK build tools (e.g. dx, aapt, aidl) |
1374 'android_sdk_tools%': '<!(/bin/echo -n ${ANDROID_SDK_TOOLS})', | 1374 'android_sdk_tools%': '<!(/bin/echo -n ${ANDROID_SDK_TOOLS})', |
| 1375 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", |
1375 }, | 1376 }, |
1376 # Copy conditionally-set variables out one scope. | 1377 # Copy conditionally-set variables out one scope. |
1377 'android_ndk_root%': '<(android_ndk_root)', | 1378 'android_ndk_root%': '<(android_ndk_root)', |
1378 'android_sdk_root%': '<(android_sdk_root)', | 1379 'android_sdk_root%': '<(android_sdk_root)', |
1379 'android_sdk_version%': '<(android_sdk_version)', | 1380 'android_sdk_version%': '<(android_sdk_version)', |
1380 'android_sdk_tools%': '<(android_sdk_tools)', | 1381 'android_sdk_tools%': '<(android_sdk_tools)', |
1381 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', | 1382 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', |
| 1383 'host_os%': '<(host_os)', |
1382 | 1384 |
1383 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v
ersion)', | 1385 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v
ersion)', |
1384 | 1386 |
1385 # Android API level 14 is ICS (Android 4.0) which is the minimum | 1387 # Android API level 14 is ICS (Android 4.0) which is the minimum |
1386 # platform requirement for Chrome on Android, we use it for native | 1388 # platform requirement for Chrome on Android, we use it for native |
1387 # code compilation. | 1389 # code compilation. |
1388 'conditions': [ | 1390 'conditions': [ |
1389 ['target_arch == "ia32"', { | 1391 ['target_arch == "ia32"', { |
1390 'android_app_abi%': 'x86', | 1392 'android_app_abi%': 'x86', |
1391 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd
bserver/gdbserver', | 1393 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd
bserver/gdbserver', |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1423 | 1425 |
1424 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', | 1426 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', |
1425 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', | 1427 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', |
1426 'android_sdk_tools%': '<(android_sdk_tools)', | 1428 'android_sdk_tools%': '<(android_sdk_tools)', |
1427 'android_sdk%': '<(android_sdk)', | 1429 'android_sdk%': '<(android_sdk)', |
1428 'android_sdk_jar%': '<(android_sdk)/android.jar', | 1430 'android_sdk_jar%': '<(android_sdk)/android.jar', |
1429 | 1431 |
1430 'android_stlport_root': '<(android_stlport_root)', | 1432 'android_stlport_root': '<(android_stlport_root)', |
1431 'android_stlport_include': '<(android_stlport_root)/stlport', | 1433 'android_stlport_include': '<(android_stlport_root)/stlport', |
1432 'android_stlport_libs_dir': '<(android_stlport_root)/libs/<(android_app_
abi)', | 1434 'android_stlport_libs_dir': '<(android_stlport_root)/libs/<(android_app_
abi)', |
| 1435 'host_os%': '<(host_os)', |
1433 | 1436 |
1434 # Location of the "strip" binary, used by both gyp and scripts. | 1437 # Location of the "strip" binary, used by both gyp and scripts. |
1435 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)', | 1438 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)', |
1436 | 1439 |
1437 # Location of the "readelf" binary. | 1440 # Location of the "readelf" binary. |
1438 'android_readelf%' : '<!(/bin/echo -n <(android_toolchain)/*-readelf)', | 1441 'android_readelf%' : '<!(/bin/echo -n <(android_toolchain)/*-readelf)', |
1439 | 1442 |
1440 # Determines whether we should optimize JNI generation at the cost of | 1443 # Determines whether we should optimize JNI generation at the cost of |
1441 # breaking assumptions in the build system that when inputs have changed | 1444 # breaking assumptions in the build system that when inputs have changed |
1442 # the outputs should always change as well. This is meant purely for | 1445 # the outputs should always change as well. This is meant purely for |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2067 }], | 2070 }], |
2068 ['OS=="ios"', { | 2071 ['OS=="ios"', { |
2069 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm
l | 2072 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm
l |
2070 'mac_release_optimization%': 's', # Use -Os unless overridden | 2073 'mac_release_optimization%': 's', # Use -Os unless overridden |
2071 'mac_debug_optimization%': '0', # Use -O0 unless overridden | 2074 'mac_debug_optimization%': '0', # Use -O0 unless overridden |
2072 }, { | 2075 }, { |
2073 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm
l | 2076 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm
l |
2074 'mac_release_optimization%': '3', # Use -O3 unless overridden | 2077 'mac_release_optimization%': '3', # Use -O3 unless overridden |
2075 'mac_debug_optimization%': '0', # Use -O0 unless overridden | 2078 'mac_debug_optimization%': '0', # Use -O0 unless overridden |
2076 }], | 2079 }], |
| 2080 ['OS=="android"', { |
| 2081 'host_os%': '<(host_os)', # See comment above chromium_code. |
| 2082 }], |
2077 ], | 2083 ], |
2078 }, | 2084 }, |
2079 'defines': [ | 2085 'defines': [ |
2080 # Don't use deprecated V8 APIs anywhere. | 2086 # Don't use deprecated V8 APIs anywhere. |
2081 'V8_DEPRECATION_WARNINGS', | 2087 'V8_DEPRECATION_WARNINGS', |
2082 ], | 2088 ], |
2083 'conditions': [ | 2089 'conditions': [ |
2084 ['(OS=="mac" or OS=="ios") and asan==1', { | 2090 ['(OS=="mac" or OS=="ios") and asan==1', { |
2085 'dependencies': [ | 2091 'dependencies': [ |
2086 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', | 2092 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', |
(...skipping 2801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4888 # settings in target dicts. SYMROOT is a special case, because many other | 4894 # settings in target dicts. SYMROOT is a special case, because many other |
4889 # Xcode variables depend on it, including variables such as | 4895 # Xcode variables depend on it, including variables such as |
4890 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4896 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4891 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4897 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4892 # files to appear (when present) in the UI as actual files and not red | 4898 # files to appear (when present) in the UI as actual files and not red |
4893 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4899 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4894 # and therefore SYMROOT, needs to be set at the project level. | 4900 # and therefore SYMROOT, needs to be set at the project level. |
4895 'SYMROOT': '<(DEPTH)/xcodebuild', | 4901 'SYMROOT': '<(DEPTH)/xcodebuild', |
4896 }, | 4902 }, |
4897 } | 4903 } |
OLD | NEW |