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

Side by Side Diff: build/common.gypi

Issue 15735014: Remove obsolete gnu libstdc++ from the Android build. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 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 | « build/android/setup.gyp ('k') | no next file » | 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 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android _tools/sdk/', 1176 'android_sdk_root%': '<!(cd <(DEPTH) && pwd -P)/third_party/android _tools/sdk/',
1177 'android_host_arch%': '<!(uname -m)', 1177 'android_host_arch%': '<!(uname -m)',
1178 # Android API-level of the SDK used for compilation. 1178 # Android API-level of the SDK used for compilation.
1179 'android_sdk_version%': '17', 1179 'android_sdk_version%': '17',
1180 }, 1180 },
1181 # Copy conditionally-set variables out one scope. 1181 # Copy conditionally-set variables out one scope.
1182 'android_ndk_root%': '<(android_ndk_root)', 1182 'android_ndk_root%': '<(android_ndk_root)',
1183 'android_sdk_root%': '<(android_sdk_root)', 1183 'android_sdk_root%': '<(android_sdk_root)',
1184 'android_sdk_version%': '<(android_sdk_version)', 1184 'android_sdk_version%': '<(android_sdk_version)',
1185 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport', 1185 'android_stlport_root': '<(android_ndk_root)/sources/cxx-stl/stlport',
1186 'android_libstdcpp_root': '<(android_ndk_root)/sources/cxx-stl/gnu-lib stdc++/4.6',
1187 1186
1188 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v ersion)', 1187 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_v ersion)',
1189 1188
1190 # Android API level 14 is ICS (Android 4.0) which is the minimum 1189 # Android API level 14 is ICS (Android 4.0) which is the minimum
1191 # platform requirement for Chrome on Android, we use it for native 1190 # platform requirement for Chrome on Android, we use it for native
1192 # code compilation. 1191 # code compilation.
1193 'conditions': [ 1192 'conditions': [
1194 ['target_arch == "ia32"', { 1193 ['target_arch == "ia32"', {
1195 'android_app_abi%': 'x86', 1194 'android_app_abi%': 'x86',
1196 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd bserver/gdbserver', 1195 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd bserver/gdbserver',
(...skipping 29 matching lines...) Expand all
1226 'android_sdk_version%': '<(android_sdk_version)', 1225 'android_sdk_version%': '<(android_sdk_version)',
1227 'android_toolchain%': '<(android_toolchain)', 1226 'android_toolchain%': '<(android_toolchain)',
1228 1227
1229 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', 1228 'android_ndk_include': '<(android_ndk_sysroot)/usr/include',
1230 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', 1229 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib',
1231 'android_sdk_tools%': '<(android_sdk_root)/platform-tools', 1230 'android_sdk_tools%': '<(android_sdk_root)/platform-tools',
1232 'android_sdk%': '<(android_sdk)', 1231 'android_sdk%': '<(android_sdk)',
1233 'android_sdk_jar%': '<(android_sdk)/android.jar', 1232 'android_sdk_jar%': '<(android_sdk)/android.jar',
1234 1233
1235 'android_stlport_root': '<(android_stlport_root)', 1234 'android_stlport_root': '<(android_stlport_root)',
1236 'android_libstdcpp_root': '<(android_libstdcpp_root)',
1237 'android_stlport_include': '<(android_stlport_root)/stlport', 1235 'android_stlport_include': '<(android_stlport_root)/stlport',
1238 'android_libstdcpp_include': '<(android_libstdcpp_root)/include',
1239 'android_stlport_libs_dir': '<(android_stlport_root)/libs/<(android_app_ abi)', 1236 'android_stlport_libs_dir': '<(android_stlport_root)/libs/<(android_app_ abi)',
1240 'android_libstdcpp_libs_dir': '<(android_libstdcpp_root)/libs/<(android_ app_abi)',
1241 1237
1242 # Location of the "strip" binary, used by both gyp and scripts. 1238 # Location of the "strip" binary, used by both gyp and scripts.
1243 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)', 1239 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)',
1244 1240
1245 # Location of the "readelf" binary. 1241 # Location of the "readelf" binary.
1246 'android_readelf%' : '<!(/bin/echo -n <(android_toolchain)/*-readelf)', 1242 'android_readelf%' : '<!(/bin/echo -n <(android_toolchain)/*-readelf)',
1247 1243
1248 # Provides an absolute path to PRODUCT_DIR (e.g. out/Release). Used 1244 # Provides an absolute path to PRODUCT_DIR (e.g. out/Release). Used
1249 # to specify the output directory for Ant in the Android build. 1245 # to specify the output directory for Ant in the Android build.
1250 'ant_build_out': '`cd <(PRODUCT_DIR) && pwd -P`', 1246 'ant_build_out': '`cd <(PRODUCT_DIR) && pwd -P`',
(...skipping 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after
3403 '-l<(android_stlport_library)', 3399 '-l<(android_stlport_library)',
3404 # Manually link the libgcc.a that the cross compiler uses. 3400 # Manually link the libgcc.a that the cross compiler uses.
3405 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)', 3401 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)',
3406 '-lc', 3402 '-lc',
3407 '-ldl', 3403 '-ldl',
3408 '-lstdc++', 3404 '-lstdc++',
3409 '-lm', 3405 '-lm',
3410 ], 3406 ],
3411 'conditions': [ 3407 'conditions': [
3412 ['component=="shared_library"', { 3408 ['component=="shared_library"', {
3413 'libraries': [
3414 '-lgnustl_shared',
3415 ],
3416 'ldflags!': [ 3409 'ldflags!': [
3417 '-Wl,--exclude-libs=ALL', 3410 '-Wl,--exclude-libs=ALL',
3418 ], 3411 ],
3419 }], 3412 }],
3420 ['clang==1', { 3413 ['clang==1', {
3421 'cflags': [ 3414 'cflags': [
3422 # Work around incompatibilities between bionic and clang 3415 # Work around incompatibilities between bionic and clang
3423 # headers. 3416 # headers.
3424 '-D__compiler_offsetof=__builtin_offsetof', 3417 '-D__compiler_offsetof=__builtin_offsetof',
3425 '-Dnan=__builtin_nan', 3418 '-Dnan=__builtin_nan',
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
3524 # The include ordering here is important; change with caution. 3517 # The include ordering here is important; change with caution.
3525 ['use_system_stlport==1', { 3518 ['use_system_stlport==1', {
3526 'cflags': [ 3519 'cflags': [
3527 # For libstdc++/include, which is used by stlport. 3520 # For libstdc++/include, which is used by stlport.
3528 '-I<(android_src)/bionic', 3521 '-I<(android_src)/bionic',
3529 '-I<(android_src)/external/stlport/stlport', 3522 '-I<(android_src)/external/stlport/stlport',
3530 ], 3523 ],
3531 }, { # else: use_system_stlport!=1 3524 }, { # else: use_system_stlport!=1
3532 'cflags': [ 3525 'cflags': [
3533 '-I<(android_stlport_include)', 3526 '-I<(android_stlport_include)',
3534 '-I<(android_libstdcpp_include)',
3535 ], 3527 ],
3536 'ldflags': [ 3528 'ldflags': [
3537 '-L<(android_stlport_libs_dir)', 3529 '-L<(android_stlport_libs_dir)',
3538 '-L<(android_libstdcpp_libs_dir)',
3539 ], 3530 ],
3540 }], 3531 }],
3541 ['target_arch=="ia32"', { 3532 ['target_arch=="ia32"', {
3542 # The x86 toolchain currently has problems with stack-protector. 3533 # The x86 toolchain currently has problems with stack-protector.
3543 'cflags!': [ 3534 'cflags!': [
3544 '-fstack-protector', 3535 '-fstack-protector',
3545 ], 3536 ],
3546 'cflags': [ 3537 'cflags': [
3547 '-fno-stack-protector', 3538 '-fno-stack-protector',
3548 ], 3539 ],
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
4439 # settings in target dicts. SYMROOT is a special case, because many other 4430 # settings in target dicts. SYMROOT is a special case, because many other
4440 # Xcode variables depend on it, including variables such as 4431 # Xcode variables depend on it, including variables such as
4441 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4432 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4442 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4433 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4443 # files to appear (when present) in the UI as actual files and not red 4434 # files to appear (when present) in the UI as actual files and not red
4444 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4435 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4445 # and therefore SYMROOT, needs to be set at the project level. 4436 # and therefore SYMROOT, needs to be set at the project level.
4446 'SYMROOT': '<(DEPTH)/xcodebuild', 4437 'SYMROOT': '<(DEPTH)/xcodebuild',
4447 }, 4438 },
4448 } 4439 }
OLDNEW
« no previous file with comments | « build/android/setup.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698