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 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1074 'ios_breakpad%': 1, | 1074 'ios_breakpad%': 1, |
1075 }, { # else: branding!="Chrome" or buildtype!="Official" | 1075 }, { # else: branding!="Chrome" or buildtype!="Official" |
1076 'ios_breakpad%': 0, | 1076 'ios_breakpad%': 0, |
1077 }], | 1077 }], |
1078 ], | 1078 ], |
1079 }], # OS=="ios" | 1079 }], # OS=="ios" |
1080 ['OS=="android"', { | 1080 ['OS=="android"', { |
1081 # Location of Android NDK. | 1081 # Location of Android NDK. |
1082 'variables': { | 1082 'variables': { |
1083 'variables': { | 1083 'variables': { |
1084 'variables': { | 1084 # Unfortuantely we have to use absolute paths to the SDK/NDK beause |
1085 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)', | 1085 # they're passed to ant which uses a different relative path from |
1086 }, | 1086 # gyp. |
1087 'android_ndk_root%': '<(android_ndk_root)', | 1087 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android _tools/ndk/', |
Nico
2014/02/10 20:28:12
This moved android_ndk_root% off the ANDROID_NDK_R
Yaron
2014/02/10 21:16:02
I was working on removing these builds from the ch
| |
1088 'conditions': [ | 1088 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android _tools/sdk/', |
1089 ['target_arch == "ia32"', { | 1089 'android_host_arch%': '<!(uname -m)', |
cjhopman
2013/01/16 16:25:20
I don't think these need to be in an inner 'variab
Yaron
2013/01/16 16:53:26
Seems like they do as it won't gyp without it. It
| |
1090 'android_app_abi%': 'x86', | |
1091 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9 /arch-x86', | |
1092 }], | |
1093 ['target_arch=="arm"', { | |
1094 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9 /arch-arm', | |
1095 'conditions': [ | |
1096 ['armv7==0', { | |
1097 'android_app_abi%': 'armeabi', | |
1098 }, { | |
1099 'android_app_abi%': 'armeabi-v7a', | |
1100 }], | |
1101 ], | |
1102 }], | |
1103 ], | |
1104 }, | 1090 }, |
1091 # Copy conditionally-set variables out one scope. | |
1105 'android_ndk_root%': '<(android_ndk_root)', | 1092 'android_ndk_root%': '<(android_ndk_root)', |
1106 'android_app_abi%': '<(android_app_abi)', | 1093 'android_sdk_root%': '<(android_sdk_root)', |
1107 'android_ndk_sysroot%': '<(android_ndk_sysroot)', | 1094 |
1095 # Android API-level of the SDK used for compilation. | |
1096 'android_sdk_version%': '17', | |
1097 | |
1098 'conditions': [ | |
1099 ['target_arch == "ia32"', { | |
1100 'android_app_abi%': 'x86', | |
1101 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd bserver/gdbserver', | |
1102 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9/a rch-x86', | |
1103 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.6/preb uilt/<(host_os)-<(android_host_arch)/bin', | |
1104 }], | |
1105 ['target_arch=="arm"', { | |
1106 'conditions': [ | |
1107 ['armv7==0', { | |
1108 'android_app_abi%': 'armeabi', | |
1109 }, { | |
1110 'android_app_abi%': 'armeabi-v7a', | |
1111 }], | |
1112 ], | |
1113 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd bserver/gdbserver', | |
1114 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9/a rch-arm', | |
1115 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an droideabi-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', | |
1116 }], | |
1117 ], | |
1108 }, | 1118 }, |
1119 # Copy conditionally-set variables out one scope. | |
1120 'android_app_abi%': '<(android_app_abi)', | |
cjhopman
2013/01/16 16:25:20
I think android_host_arch, android_sdk_root, and a
Yaron
2013/01/16 16:53:26
1) I wanted to keep android_sdk_root with android_
| |
1121 'android_gdbserver%': '<(android_gdbserver)', | |
1109 'android_ndk_root%': '<(android_ndk_root)', | 1122 'android_ndk_root%': '<(android_ndk_root)', |
1110 'android_ndk_sysroot': '<(android_ndk_sysroot)', | 1123 'android_ndk_sysroot': '<(android_ndk_sysroot)', |
1124 'android_sdk_root%': '<(android_sdk_root)', | |
1125 'android_sdk_version%': '<(android_sdk_version)', | |
1126 'android_toolchain%': '<(android_toolchain)', | |
1127 | |
1111 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', | 1128 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', |
1112 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', | 1129 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', |
1113 'android_app_abi%': '<(android_app_abi)', | 1130 'android_sdk_tools%': '<(android_sdk_root)/platform-tools', |
1131 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_ver sion)', | |
1114 | 1132 |
1115 # Location of the "strip" binary, used by both gyp and scripts. | 1133 # Location of the "strip" binary, used by both gyp and scripts. |
1116 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)', | 1134 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)', |
1117 | 1135 |
1118 # Provides an absolute path to PRODUCT_DIR (e.g. out/Release). Used | 1136 # Provides an absolute path to PRODUCT_DIR (e.g. out/Release). Used |
1119 # to specify the output directory for Ant in the Android build. | 1137 # to specify the output directory for Ant in the Android build. |
1120 'ant_build_out': '`cd <(PRODUCT_DIR) && pwd -P`', | 1138 'ant_build_out': '`cd <(PRODUCT_DIR) && pwd -P`', |
1121 | 1139 |
1122 # Always uses openssl. | 1140 # Always uses openssl. |
1123 'use_openssl%': 1, | 1141 'use_openssl%': 1, |
(...skipping 2843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3967 # settings in target dicts. SYMROOT is a special case, because many other | 3985 # settings in target dicts. SYMROOT is a special case, because many other |
3968 # Xcode variables depend on it, including variables such as | 3986 # Xcode variables depend on it, including variables such as |
3969 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3987 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3970 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3988 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3971 # files to appear (when present) in the UI as actual files and not red | 3989 # files to appear (when present) in the UI as actual files and not red |
3972 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3990 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3973 # and therefore SYMROOT, needs to be set at the project level. | 3991 # and therefore SYMROOT, needs to be set at the project level. |
3974 'SYMROOT': '<(DEPTH)/xcodebuild', | 3992 'SYMROOT': '<(DEPTH)/xcodebuild', |
3975 }, | 3993 }, |
3976 } | 3994 } |
OLD | NEW |