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 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2058 # Don't export symbols from statically linked libraries. | 2058 # Don't export symbols from statically linked libraries. |
2059 '-Wl,--exclude-libs=ALL', | 2059 '-Wl,--exclude-libs=ALL', |
2060 ], | 2060 ], |
2061 'libraries!': [ | 2061 'libraries!': [ |
2062 '-lrt', # librt is built into Bionic. | 2062 '-lrt', # librt is built into Bionic. |
2063 # Not supported by Android toolchain. | 2063 # Not supported by Android toolchain. |
2064 # Where do these come from? Can't find references in | 2064 # Where do these come from? Can't find references in |
2065 # any Chromium gyp or gypi file. Maybe they come from | 2065 # any Chromium gyp or gypi file. Maybe they come from |
2066 # gyp itself? | 2066 # gyp itself? |
2067 '-lpthread', '-lnss3', '-lnssutil3', '-lsmime3', '-lplds4', '-lpl
c4', '-lnspr4', | 2067 '-lpthread', '-lnss3', '-lnssutil3', '-lsmime3', '-lplds4', '-lpl
c4', '-lnspr4', |
2068 ], | 2068 ], |
2069 'libraries': [ | 2069 'libraries': [ |
2070 '-l<(android_stlport_library)', | 2070 '-l<(android_stlport_library)', |
2071 # Manually link the libgcc.a that the cross compiler uses. | 2071 # Manually link the libgcc.a that the cross compiler uses. |
2072 '<!($CROSS_CC -print-libgcc-file-name)', | 2072 '<!($CROSS_CC -print-libgcc-file-name)', |
2073 '-lc', | 2073 '-lc', |
2074 '-ldl', | 2074 '-ldl', |
2075 '-lstdc++', | 2075 '-lstdc++', |
2076 '-lm', | 2076 '-lm', |
2077 ], | 2077 ], |
2078 'conditions': [ | 2078 'conditions': [ |
2079 ['android_build_type==0', { | 2079 ['android_build_type==0', { |
2080 'ldflags': [ | 2080 'ldflags': [ |
2081 '-Wl,-rpath-link=<(android_ndk_lib)', | 2081 '-Wl,-rpath-link=<(android_ndk_lib)', |
2082 '-L<(android_ndk_lib)', | 2082 '-L<(android_ndk_lib)', |
2083 ], | 2083 ], |
2084 }], | 2084 }], |
2085 # NOTE: The stlport header include paths below are specified in | 2085 # NOTE: The stlport header include paths below are specified in |
2086 # cflags rather than include_dirs because they need to come | 2086 # cflags rather than include_dirs because they need to come |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2601 # settings in target dicts. SYMROOT is a special case, because many other | 2601 # settings in target dicts. SYMROOT is a special case, because many other |
2602 # Xcode variables depend on it, including variables such as | 2602 # Xcode variables depend on it, including variables such as |
2603 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2603 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
2604 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2604 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
2605 # files to appear (when present) in the UI as actual files and not red | 2605 # files to appear (when present) in the UI as actual files and not red |
2606 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2606 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
2607 # and therefore SYMROOT, needs to be set at the project level. | 2607 # and therefore SYMROOT, needs to be set at the project level. |
2608 'SYMROOT': '<(DEPTH)/xcodebuild', | 2608 'SYMROOT': '<(DEPTH)/xcodebuild', |
2609 }, | 2609 }, |
2610 } | 2610 } |
OLD | NEW |