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