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

Side by Side Diff: build/common.gypi

Issue 8610006: Upstream: Gyp changes to build net_unittests for Android. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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 | « build/android/system.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) 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 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 # Don't warn about printf format problems. 1196 # Don't warn about printf format problems.
1197 # This is off by default in gcc but on in Ubuntu's gcc(!). 1197 # This is off by default in gcc but on in Ubuntu's gcc(!).
1198 '-Wno-format', 1198 '-Wno-format',
1199 ], 1199 ],
1200 'cflags_cc!': [ 1200 'cflags_cc!': [
1201 # TODO(fischman): remove this. 1201 # TODO(fischman): remove this.
1202 # http://code.google.com/p/chromium/issues/detail?id=90453 1202 # http://code.google.com/p/chromium/issues/detail?id=90453
1203 '-Wsign-compare', 1203 '-Wsign-compare',
1204 ] 1204 ]
1205 }], 1205 }],
1206 [ 'os_posix==1 and OS!="mac" and OS!="openbsd" and chromeos==0', { 1206 [ 'os_posix==1 and OS!="mac" and OS!="openbsd" and OS!="android" and c hromeos==0', {
1207 'cflags': [ 1207 'cflags': [
1208 # Don't warn about ignoring the return value from e.g. close(). 1208 # Don't warn about ignoring the return value from e.g. close().
1209 # This is off by default in some gccs but on by default in others. 1209 # This is off by default in some gccs but on by default in others.
1210 # Currently this option is not set for Chrome OS build because 1210 # Currently this option is not set for Chrome OS build because
1211 # the current version of gcc (4.3.4) used for building Chrome in 1211 # the current version of gcc (4.3.4) used for building Chrome in
1212 # Chrome OS chroot doesn't support this option. 1212 # Chrome OS chroot doesn't support this option.
1213 # OpenBSD does not support this option either, since it's using 1213 # OpenBSD does not support this option either, since it's using
1214 # gcc 4.2.1, which does not have this flag yet. 1214 # gcc 4.2.1, which does not have this flag yet.
1215 # TODO(mazda): remove the conditional for Chrome OS when gcc 1215 # TODO(mazda): remove the conditional for Chrome OS when gcc
1216 # version is upgraded. 1216 # version is upgraded.
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
2072 'ldflags!': [ 2072 'ldflags!': [
2073 '-pthread', # Not supported by Android toolchain. 2073 '-pthread', # Not supported by Android toolchain.
2074 ], 2074 ],
2075 'ldflags': [ 2075 'ldflags': [
2076 '-nostdlib', 2076 '-nostdlib',
2077 '-Wl,--no-undefined', 2077 '-Wl,--no-undefined',
2078 '-Wl,--icf=safe', # Enable identical code folding to reduce size 2078 '-Wl,--icf=safe', # Enable identical code folding to reduce size
2079 # Don't export symbols from statically linked libraries. 2079 # Don't export symbols from statically linked libraries.
2080 '-Wl,--exclude-libs=ALL', 2080 '-Wl,--exclude-libs=ALL',
2081 ], 2081 ],
2082 'libraries!': [ 2082 'libraries': [
2083 '-lrt', # librt is built into Bionic. 2083 '-l<(android_stlport_library)',
2084 # Not supported by Android toolchain. 2084 # Manually link the libgcc.a that the cross compiler uses.
2085 # Where do these come from? Can't find references in 2085 '<!($CROSS_CC -print-libgcc-file-name)',
2086 # any Chromium gyp or gypi file. Maybe they come from 2086 '-lc',
2087 # gyp itself? 2087 '-ldl',
2088 '-lpthread', '-lnss3', '-lnssutil3', '-lsmime3', '-lplds4', '-lpl c4', '-lnspr4', 2088 '-lstdc++',
2089 ], 2089 '-lm',
2090 'libraries': [
2091 '-l<(android_stlport_library)',
2092 # Manually link the libgcc.a that the cross compiler uses.
2093 '<!($CROSS_CC -print-libgcc-file-name)',
2094 '-lc',
2095 '-ldl',
2096 '-lstdc++',
2097 '-lm',
2098 ], 2090 ],
2099 'conditions': [ 2091 'conditions': [
2100 ['android_build_type==0', { 2092 ['android_build_type==0', {
2101 'ldflags': [ 2093 'ldflags': [
2102 '-Wl,-rpath-link=<(android_ndk_lib)', 2094 '-Wl,-rpath-link=<(android_ndk_lib)',
2103 '-L<(android_ndk_lib)', 2095 '-L<(android_ndk_lib)',
2104 ], 2096 ],
2105 }], 2097 }],
2106 # NOTE: The stlport header include paths below are specified in 2098 # NOTE: The stlport header include paths below are specified in
2107 # cflags rather than include_dirs because they need to come 2099 # cflags rather than include_dirs because they need to come
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
2622 # settings in target dicts. SYMROOT is a special case, because many other 2614 # settings in target dicts. SYMROOT is a special case, because many other
2623 # Xcode variables depend on it, including variables such as 2615 # Xcode variables depend on it, including variables such as
2624 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 2616 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
2625 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 2617 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
2626 # files to appear (when present) in the UI as actual files and not red 2618 # files to appear (when present) in the UI as actual files and not red
2627 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 2619 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
2628 # and therefore SYMROOT, needs to be set at the project level. 2620 # and therefore SYMROOT, needs to be set at the project level.
2629 'SYMROOT': '<(DEPTH)/xcodebuild', 2621 'SYMROOT': '<(DEPTH)/xcodebuild',
2630 }, 2622 },
2631 } 2623 }
OLDNEW
« no previous file with comments | « build/android/system.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698