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

Side by Side Diff: build/common.gypi

Issue 8938003: Set the compiler root directory for the Android NDK, merging two linker flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 2093 matching lines...) Expand 10 before | Expand all | Expand 10 after
2104 # Manually link the libgcc.a that the cross compiler uses. 2104 # Manually link the libgcc.a that the cross compiler uses.
2105 '<!($CROSS_CC -print-libgcc-file-name)', 2105 '<!($CROSS_CC -print-libgcc-file-name)',
2106 '-lc', 2106 '-lc',
2107 '-ldl', 2107 '-ldl',
2108 '-lstdc++', 2108 '-lstdc++',
2109 '-lm', 2109 '-lm',
2110 ], 2110 ],
2111 'conditions': [ 2111 'conditions': [
2112 ['android_build_type==0', { 2112 ['android_build_type==0', {
2113 'ldflags': [ 2113 'ldflags': [
2114 '-Wl,-rpath-link=<(android_ndk_lib)', 2114 '--sysroot=<(android_ndk_sysroot)',
2115 '-L<(android_ndk_lib)',
2116 ], 2115 ],
2117 }], 2116 }],
2118 # NOTE: The stlport header include paths below are specified in 2117 # NOTE: The stlport header include paths below are specified in
2119 # cflags rather than include_dirs because they need to come 2118 # cflags rather than include_dirs because they need to come
2120 # after include_dirs. Think of them like system headers, but 2119 # after include_dirs. Think of them like system headers, but
2121 # don't use '-isystem' because the arm-linux-androideabi-4.4.3 2120 # don't use '-isystem' because the arm-linux-androideabi-4.4.3
2122 # toolchain (circa Gingerbread) will exhibit strange errors. 2121 # toolchain (circa Gingerbread) will exhibit strange errors.
2123 # The include ordering here is important; change with caution. 2122 # The include ordering here is important; change with caution.
2124 ['use_system_stlport==0', { 2123 ['use_system_stlport==0', {
2125 'cflags': [ 2124 'cflags': [
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
2666 # settings in target dicts. SYMROOT is a special case, because many other 2665 # settings in target dicts. SYMROOT is a special case, because many other
2667 # Xcode variables depend on it, including variables such as 2666 # Xcode variables depend on it, including variables such as
2668 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 2667 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
2669 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 2668 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
2670 # files to appear (when present) in the UI as actual files and not red 2669 # files to appear (when present) in the UI as actual files and not red
2671 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 2670 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
2672 # and therefore SYMROOT, needs to be set at the project level. 2671 # and therefore SYMROOT, needs to be set at the project level.
2673 'SYMROOT': '<(DEPTH)/xcodebuild', 2672 'SYMROOT': '<(DEPTH)/xcodebuild',
2674 }, 2673 },
2675 } 2674 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698