| 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 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android
_tools/ndk/', | 1130 'android_ndk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android
_tools/ndk/', |
| 1131 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android
_tools/sdk/', | 1131 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android
_tools/sdk/', |
| 1132 'android_host_arch%': '<!(uname -m)', | 1132 'android_host_arch%': '<!(uname -m)', |
| 1133 # Android API-level of the SDK used for compilation. | 1133 # Android API-level of the SDK used for compilation. |
| 1134 'android_sdk_version%': '17', | 1134 'android_sdk_version%': '17', |
| 1135 }, | 1135 }, |
| 1136 # Copy conditionally-set variables out one scope. | 1136 # Copy conditionally-set variables out one scope. |
| 1137 'android_ndk_root%': '<(android_ndk_root)', | 1137 'android_ndk_root%': '<(android_ndk_root)', |
| 1138 'android_sdk_root%': '<(android_sdk_root)', | 1138 'android_sdk_root%': '<(android_sdk_root)', |
| 1139 'android_sdk_version%': '<(android_sdk_version)', | 1139 'android_sdk_version%': '<(android_sdk_version)', |
| 1140 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', |
| 1141 'android_libstdcpp_root': '<(android_ndk_root)/sources/cxx-stl/gnu-lib
stdc++/4.6', |
| 1140 | 1142 |
| 1141 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v
ersion)', | 1143 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v
ersion)', |
| 1142 | 1144 |
| 1143 # Android API level 14 is ICS (Android 4.0) which is the minimum | 1145 # Android API level 14 is ICS (Android 4.0) which is the minimum |
| 1144 # platform requirement for Chrome on Android, we use it for native | 1146 # platform requirement for Chrome on Android, we use it for native |
| 1145 # code compilation. | 1147 # code compilation. |
| 1146 'conditions': [ | 1148 'conditions': [ |
| 1147 ['target_arch == "ia32"', { | 1149 ['target_arch == "ia32"', { |
| 1148 'android_app_abi%': 'x86', | 1150 'android_app_abi%': 'x86', |
| 1149 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd
bserver/gdbserver', | 1151 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd
bserver/gdbserver', |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1172 'android_sdk_root%': '<(android_sdk_root)', | 1174 'android_sdk_root%': '<(android_sdk_root)', |
| 1173 'android_sdk_version%': '<(android_sdk_version)', | 1175 'android_sdk_version%': '<(android_sdk_version)', |
| 1174 'android_toolchain%': '<(android_toolchain)', | 1176 'android_toolchain%': '<(android_toolchain)', |
| 1175 | 1177 |
| 1176 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', | 1178 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', |
| 1177 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', | 1179 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', |
| 1178 'android_sdk_tools%': '<(android_sdk_root)/platform-tools', | 1180 'android_sdk_tools%': '<(android_sdk_root)/platform-tools', |
| 1179 'android_sdk%': '<(android_sdk)', | 1181 'android_sdk%': '<(android_sdk)', |
| 1180 'android_sdk_jar%': '<(android_sdk)/android.jar', | 1182 'android_sdk_jar%': '<(android_sdk)/android.jar', |
| 1181 | 1183 |
| 1184 'android_stlport_root': '<(android_stlport_root)', |
| 1185 'android_libstdcpp_root': '<(android_libstdcpp_root)', |
| 1186 'android_stlport_include': '<(android_stlport_root)/stlport', |
| 1187 'android_libstdcpp_include': '<(android_libstdcpp_root)/include', |
| 1188 'android_stlport_libs_dir': '<(android_stlport_root)/libs/<(android_app_
abi)', |
| 1189 'android_libstdcpp_libs_dir': '<(android_libstdcpp_root)/libs/<(android_
app_abi)', |
| 1190 |
| 1182 # Location of the "strip" binary, used by both gyp and scripts. | 1191 # Location of the "strip" binary, used by both gyp and scripts. |
| 1183 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)', | 1192 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)', |
| 1184 | 1193 |
| 1194 # Location of the "readelf" binary. |
| 1195 'android_readelf%' : '<!(/bin/echo -n <(android_toolchain)/*-readelf)', |
| 1196 |
| 1185 # Provides an absolute path to PRODUCT_DIR (e.g. out/Release). Used | 1197 # Provides an absolute path to PRODUCT_DIR (e.g. out/Release). Used |
| 1186 # to specify the output directory for Ant in the Android build. | 1198 # to specify the output directory for Ant in the Android build. |
| 1187 'ant_build_out': '`cd <(PRODUCT_DIR) && pwd -P`', | 1199 'ant_build_out': '`cd <(PRODUCT_DIR) && pwd -P`', |
| 1188 | 1200 |
| 1189 # Determines whether we should optimize JNI generation at the cost of | 1201 # Determines whether we should optimize JNI generation at the cost of |
| 1190 # breaking assumptions in the build system that when inputs have changed | 1202 # breaking assumptions in the build system that when inputs have changed |
| 1191 # the outputs should always change as well. This is meant purely for | 1203 # the outputs should always change as well. This is meant purely for |
| 1192 # developer builds, to avoid spurious re-linking of native files. | 1204 # developer builds, to avoid spurious re-linking of native files. |
| 1193 'optimize_jni_generation%': 0, | 1205 'optimize_jni_generation%': 0, |
| 1194 | 1206 |
| (...skipping 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3300 # toolchain (circa Gingerbread) will exhibit strange errors. | 3312 # toolchain (circa Gingerbread) will exhibit strange errors. |
| 3301 # The include ordering here is important; change with caution. | 3313 # The include ordering here is important; change with caution. |
| 3302 ['use_system_stlport==1', { | 3314 ['use_system_stlport==1', { |
| 3303 'cflags': [ | 3315 'cflags': [ |
| 3304 # For libstdc++/include, which is used by stlport. | 3316 # For libstdc++/include, which is used by stlport. |
| 3305 '-I<(android_src)/bionic', | 3317 '-I<(android_src)/bionic', |
| 3306 '-I<(android_src)/external/stlport/stlport', | 3318 '-I<(android_src)/external/stlport/stlport', |
| 3307 ], | 3319 ], |
| 3308 }, { # else: use_system_stlport!=1 | 3320 }, { # else: use_system_stlport!=1 |
| 3309 'cflags': [ | 3321 'cflags': [ |
| 3310 '-I<(android_ndk_root)/sources/cxx-stl/stlport/stlport', | 3322 '-I<(android_stlport_include)', |
| 3311 '-I<(android_ndk_root)/sources/cxx-stl/gnu-libstdc++/4.6/inclu
de', | 3323 '-I<(android_libstdcpp_include)', |
| 3312 ], | 3324 ], |
| 3313 'conditions': [ | 3325 'ldflags': [ |
| 3314 ['target_arch=="arm" and armv7==1', { | 3326 '-L<(android_stlport_libs_dir)', |
| 3315 'ldflags': [ | 3327 '-L<(android_libstdcpp_libs_dir)', |
| 3316 '-L<(android_ndk_root)/sources/cxx-stl/stlport/libs/armeab
i-v7a', | |
| 3317 '-L<(android_ndk_root)/sources/cxx-stl/gnu-libstdc++/4.6/l
ibs/armeabi-v7a', | |
| 3318 ], | |
| 3319 }], | |
| 3320 ['target_arch=="arm" and armv7==0', { | |
| 3321 'ldflags': [ | |
| 3322 '-L<(android_ndk_root)/sources/cxx-stl/stlport/libs/armeab
i', | |
| 3323 '-L<(android_ndk_root)/sources/cxx-stl/gnu-libstdc++/4.6/l
ibs/armeabi', | |
| 3324 ], | |
| 3325 }], | |
| 3326 ['target_arch=="ia32"', { | |
| 3327 'ldflags': [ | |
| 3328 '-L<(android_ndk_root)/sources/cxx-stl/stlport/libs/x86', | |
| 3329 '-L<(android_ndk_root)/sources/cxx-stl/gnu-libstdc++/4.6/l
ibs/x86', | |
| 3330 ], | |
| 3331 }], | |
| 3332 ], | 3328 ], |
| 3333 }], | 3329 }], |
| 3334 ['target_arch=="ia32"', { | 3330 ['target_arch=="ia32"', { |
| 3335 # The x86 toolchain currently has problems with stack-protector. | 3331 # The x86 toolchain currently has problems with stack-protector. |
| 3336 'cflags!': [ | 3332 'cflags!': [ |
| 3337 '-fstack-protector', | 3333 '-fstack-protector', |
| 3338 ], | 3334 ], |
| 3339 'cflags': [ | 3335 'cflags': [ |
| 3340 '-fno-stack-protector', | 3336 '-fno-stack-protector', |
| 3341 ], | 3337 ], |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4174 # settings in target dicts. SYMROOT is a special case, because many other | 4170 # settings in target dicts. SYMROOT is a special case, because many other |
| 4175 # Xcode variables depend on it, including variables such as | 4171 # Xcode variables depend on it, including variables such as |
| 4176 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4172 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4177 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4173 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4178 # files to appear (when present) in the UI as actual files and not red | 4174 # files to appear (when present) in the UI as actual files and not red |
| 4179 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4175 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4180 # and therefore SYMROOT, needs to be set at the project level. | 4176 # and therefore SYMROOT, needs to be set at the project level. |
| 4181 'SYMROOT': '<(DEPTH)/xcodebuild', | 4177 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4182 }, | 4178 }, |
| 4183 } | 4179 } |
| OLD | NEW |