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 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1099 }], | 1099 }], |
1100 ['enable_web_intents==1', { | 1100 ['enable_web_intents==1', { |
1101 'defines': [ | 1101 'defines': [ |
1102 'ENABLE_WEB_INTENTS=1', | 1102 'ENABLE_WEB_INTENTS=1', |
1103 ], | 1103 ], |
1104 }], | 1104 }], |
1105 ], # conditions for 'target_defaults' | 1105 ], # conditions for 'target_defaults' |
1106 'target_conditions': [ | 1106 'target_conditions': [ |
1107 ['chromium_code==0', { | 1107 ['chromium_code==0', { |
1108 'conditions': [ | 1108 'conditions': [ |
1109 [ 'os_posix==1 and OS!="mac"', { | 1109 [ 'os_posix==1 and OS!="mac" and OS!="openbsd"', { |
Mark Mentovai
2011/10/12 14:58:02
Why?
Robert Nagy
2011/10/12 17:03:10
The comment states exactly: We don't want to get w
Mark Mentovai
2011/10/12 18:42:56
Robert Nagy wrote:
Robert Nagy
2011/10/12 19:33:39
Oh yeah, you are right, removing that.
On 2011/10
| |
1110 # We don't want to get warnings from third-party code, | 1110 # We don't want to get warnings from third-party code, |
1111 # so remove any existing warning-enabling flags like -Wall. | 1111 # so remove any existing warning-enabling flags like -Wall. |
1112 'cflags!': [ | 1112 'cflags!': [ |
1113 '-Wall', | 1113 '-Wall', |
1114 '-Wextra', | 1114 '-Wextra', |
1115 '-Werror', | 1115 '-Werror', |
1116 ], | 1116 ], |
1117 'cflags': [ | 1117 'cflags': [ |
1118 # Don't warn about hash_map in third-party code. | 1118 # Don't warn about hash_map in third-party code. |
1119 '-Wno-deprecated', | 1119 '-Wno-deprecated', |
1120 # Don't warn about printf format problems. | 1120 # Don't warn about printf format problems. |
1121 # This is off by default in gcc but on in Ubuntu's gcc(!). | 1121 # This is off by default in gcc but on in Ubuntu's gcc(!). |
1122 '-Wno-format', | 1122 '-Wno-format', |
1123 ], | 1123 ], |
1124 'cflags_cc!': [ | 1124 'cflags_cc!': [ |
1125 # TODO(fischman): remove this. | 1125 # TODO(fischman): remove this. |
1126 # http://code.google.com/p/chromium/issues/detail?id=90453 | 1126 # http://code.google.com/p/chromium/issues/detail?id=90453 |
1127 '-Wsign-compare', | 1127 '-Wsign-compare', |
1128 ] | 1128 ] |
1129 }], | 1129 }], |
1130 [ 'os_posix==1 and OS!="mac" and chromeos==0', { | 1130 [ 'os_posix==1 and OS!="mac" and OS!="openbsd" and chromeos==0', { |
Mark Mentovai
2011/10/12 14:58:02
Why?
Robert Nagy
2011/10/12 17:03:10
-Wno-unused-result is unsupported
Mark Mentovai
2011/10/12 18:42:56
Robert Nagy wrote:
Robert Nagy
2011/10/12 19:33:39
Done.
| |
1131 'cflags': [ | 1131 'cflags': [ |
1132 # Don't warn about ignoring the return value from e.g. close(). | 1132 # Don't warn about ignoring the return value from e.g. close(). |
1133 # This is off by default in some gccs but on by default in others. | 1133 # This is off by default in some gccs but on by default in others. |
1134 # Currently this option is not set for Chrome OS build because | 1134 # Currently this option is not set for Chrome OS build because |
1135 # the current version of gcc (4.3.4) used for building Chrome in | 1135 # the current version of gcc (4.3.4) used for building Chrome in |
1136 # Chrome OS chroot doesn't support this option. | 1136 # Chrome OS chroot doesn't support this option. |
1137 # TODO(mazda): remove the conditional for Chrome OS when gcc | 1137 # TODO(mazda): remove the conditional for Chrome OS when gcc |
1138 # version is upgraded. | 1138 # version is upgraded. |
1139 '-Wno-unused-result', | 1139 '-Wno-unused-result', |
1140 ], | 1140 ], |
(...skipping 15 matching lines...) Expand all Loading... | |
1156 }, | 1156 }, |
1157 }], | 1157 }], |
1158 # TODO(darin): Unfortunately, some third_party code depends on base/ | 1158 # TODO(darin): Unfortunately, some third_party code depends on base/ |
1159 [ 'OS=="win" and component=="shared_library"', { | 1159 [ 'OS=="win" and component=="shared_library"', { |
1160 'msvs_disabled_warnings': [ | 1160 'msvs_disabled_warnings': [ |
1161 4251, # class 'std::xx' needs to have dll-interface. | 1161 4251, # class 'std::xx' needs to have dll-interface. |
1162 ], | 1162 ], |
1163 }], | 1163 }], |
1164 [ 'OS=="mac"', { | 1164 [ 'OS=="mac"', { |
1165 'xcode_settings': { | 1165 'xcode_settings': { |
1166 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', | 1166 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', |
Mark Mentovai
2011/10/12 18:42:56
The reason that you saw OS="mac" above is that we
| |
1167 'WARNING_CFLAGS!': ['-Wall', '-Wextra'], | 1167 'WARNING_CFLAGS!': ['-Wall', '-Wextra'], |
1168 }, | 1168 }, |
1169 }], | 1169 }], |
1170 ], | 1170 ], |
1171 }, { | 1171 }, { |
1172 # In Chromium code, we define __STDC_FORMAT_MACROS in order to get the | 1172 # In Chromium code, we define __STDC_FORMAT_MACROS in order to get the |
1173 # C99 macros on Mac and Linux. | 1173 # C99 macros on Mac and Linux. |
1174 'defines': [ | 1174 'defines': [ |
1175 '__STDC_FORMAT_MACROS', | 1175 '__STDC_FORMAT_MACROS', |
1176 ], | 1176 ], |
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2520 # settings in target dicts. SYMROOT is a special case, because many other | 2520 # settings in target dicts. SYMROOT is a special case, because many other |
2521 # Xcode variables depend on it, including variables such as | 2521 # Xcode variables depend on it, including variables such as |
2522 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2522 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
2523 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2523 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
2524 # files to appear (when present) in the UI as actual files and not red | 2524 # files to appear (when present) in the UI as actual files and not red |
2525 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2525 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
2526 # and therefore SYMROOT, needs to be set at the project level. | 2526 # and therefore SYMROOT, needs to be set at the project level. |
2527 'SYMROOT': '<(DEPTH)/xcodebuild', | 2527 'SYMROOT': '<(DEPTH)/xcodebuild', |
2528 }, | 2528 }, |
2529 } | 2529 } |
OLD | NEW |