Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1183 # Don't warn about printf format problems. | 1183 # Don't warn about printf format problems. |
| 1184 # This is off by default in gcc but on in Ubuntu's gcc(!). | 1184 # This is off by default in gcc but on in Ubuntu's gcc(!). |
| 1185 '-Wno-format', | 1185 '-Wno-format', |
| 1186 ], | 1186 ], |
| 1187 'cflags_cc!': [ | 1187 'cflags_cc!': [ |
| 1188 # TODO(fischman): remove this. | 1188 # TODO(fischman): remove this. |
| 1189 # http://code.google.com/p/chromium/issues/detail?id=90453 | 1189 # http://code.google.com/p/chromium/issues/detail?id=90453 |
| 1190 '-Wsign-compare', | 1190 '-Wsign-compare', |
| 1191 ] | 1191 ] |
| 1192 }], | 1192 }], |
| 1193 [ 'os_posix==1 and OS!="mac" and OS!="openbsd" and chromeos==0', { | 1193 [ 'os_posix==1 and OS!="mac" and OS!="openbsd" and OS!="android" and c hromeos==0', { |
| 1194 'cflags': [ | 1194 'cflags': [ |
| 1195 # Don't warn about ignoring the return value from e.g. close(). | 1195 # Don't warn about ignoring the return value from e.g. close(). |
| 1196 # This is off by default in some gccs but on by default in others. | 1196 # This is off by default in some gccs but on by default in others. |
| 1197 # Currently this option is not set for Chrome OS build because | 1197 # Currently this option is not set for Chrome OS build because |
| 1198 # the current version of gcc (4.3.4) used for building Chrome in | 1198 # the current version of gcc (4.3.4) used for building Chrome in |
| 1199 # Chrome OS chroot doesn't support this option. | 1199 # Chrome OS chroot doesn't support this option. |
| 1200 # OpenBSD does not support this option either, since it's using | 1200 # OpenBSD does not support this option either, since it's using |
| 1201 # gcc 4.2.1, which does not have this flag yet. | 1201 # gcc 4.2.1, which does not have this flag yet. |
| 1202 # TODO(mazda): remove the conditional for Chrome OS when gcc | 1202 # TODO(mazda): remove the conditional for Chrome OS when gcc |
| 1203 # version is upgraded. | 1203 # version is upgraded. |
| (...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2060 '-Wl,--icf=safe', # Enable identical code folding to reduce size | 2060 '-Wl,--icf=safe', # Enable identical code folding to reduce size |
| 2061 # Don't export symbols from statically linked libraries. | 2061 # Don't export symbols from statically linked libraries. |
| 2062 '-Wl,--exclude-libs=ALL', | 2062 '-Wl,--exclude-libs=ALL', |
| 2063 ], | 2063 ], |
| 2064 'libraries!': [ | 2064 'libraries!': [ |
| 2065 '-lrt', # librt is built into Bionic. | 2065 '-lrt', # librt is built into Bionic. |
| 2066 # Not supported by Android toolchain. | 2066 # Not supported by Android toolchain. |
| 2067 # Where do these come from? Can't find references in | 2067 # Where do these come from? Can't find references in |
| 2068 # any Chromium gyp or gypi file. Maybe they come from | 2068 # any Chromium gyp or gypi file. Maybe they come from |
| 2069 # gyp itself? | 2069 # gyp itself? |
| 2070 '-lpthread', '-lnss3', '-lnssutil3', '-lsmime3', '-lplds4', '-lpl c4', '-lnspr4', | 2070 '-lpthread', '-lnss3', '-lnssutil3', '-lsmime3', '-lplds4', '-lpl c4', '-lnspr4', |
|
Ryan Sleevi
2011/11/08 15:03:23
Now that you have build/android/ssl, double check
jingzhao
2011/11/09 04:27:25
I double checked and it looks like all these are n
| |
| 2071 ], | 2071 ], |
| 2072 'libraries': [ | 2072 'libraries': [ |
| 2073 '-l<(android_stlport_library)', | 2073 '-l<(android_stlport_library)', |
| 2074 # Manually link the libgcc.a that the cross compiler uses. | 2074 # Manually link the libgcc.a that the cross compiler uses. |
| 2075 '<!($CROSS_CC -print-libgcc-file-name)', | 2075 '<!($CROSS_CC -print-libgcc-file-name)', |
| 2076 '-lc', | 2076 '-lc', |
| 2077 '-ldl', | 2077 '-ldl', |
| 2078 '-lstdc++', | 2078 '-lstdc++', |
| 2079 '-lm', | 2079 '-lm', |
| 2080 ], | 2080 ], |
| 2081 'conditions': [ | 2081 'conditions': [ |
| 2082 ['android_build_type==0', { | 2082 ['android_build_type==0', { |
| 2083 'ldflags': [ | 2083 'ldflags': [ |
| 2084 '-Wl,-rpath-link=<(android_ndk_lib)', | 2084 '-Wl,-rpath-link=<(android_ndk_lib)', |
| 2085 '-L<(android_ndk_lib)', | 2085 '-L<(android_ndk_lib)', |
| 2086 ], | 2086 ], |
| 2087 }], | 2087 }], |
| 2088 # NOTE: The stlport header include paths below are specified in | 2088 # NOTE: The stlport header include paths below are specified in |
| 2089 # cflags rather than include_dirs because they need to come | 2089 # cflags rather than include_dirs because they need to come |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2604 # settings in target dicts. SYMROOT is a special case, because many other | 2604 # settings in target dicts. SYMROOT is a special case, because many other |
| 2605 # Xcode variables depend on it, including variables such as | 2605 # Xcode variables depend on it, including variables such as |
| 2606 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2606 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 2607 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2607 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 2608 # files to appear (when present) in the UI as actual files and not red | 2608 # files to appear (when present) in the UI as actual files and not red |
| 2609 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2609 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 2610 # and therefore SYMROOT, needs to be set at the project level. | 2610 # and therefore SYMROOT, needs to be set at the project level. |
| 2611 'SYMROOT': '<(DEPTH)/xcodebuild', | 2611 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 2612 }, | 2612 }, |
| 2613 } | 2613 } |
| OLD | NEW |