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 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1204 # Don't warn about printf format problems. | 1204 # Don't warn about printf format problems. |
1205 # This is off by default in gcc but on in Ubuntu's gcc(!). | 1205 # This is off by default in gcc but on in Ubuntu's gcc(!). |
1206 '-Wno-format', | 1206 '-Wno-format', |
1207 ], | 1207 ], |
1208 'cflags_cc!': [ | 1208 'cflags_cc!': [ |
1209 # TODO(fischman): remove this. | 1209 # TODO(fischman): remove this. |
1210 # http://code.google.com/p/chromium/issues/detail?id=90453 | 1210 # http://code.google.com/p/chromium/issues/detail?id=90453 |
1211 '-Wsign-compare', | 1211 '-Wsign-compare', |
1212 ] | 1212 ] |
1213 }], | 1213 }], |
1214 [ 'os_posix==1 and OS!="mac" and OS!="openbsd" and OS!="android" and c
hromeos==0', { | 1214 [ 'os_posix==1 and os_bsd!=1 and OS!="mac" and OS!="android" and chrom
eos==0', { |
1215 'cflags': [ | 1215 'cflags': [ |
1216 # Don't warn about ignoring the return value from e.g. close(). | 1216 # Don't warn about ignoring the return value from e.g. close(). |
1217 # This is off by default in some gccs but on by default in others. | 1217 # This is off by default in some gccs but on by default in others. |
1218 # Currently this option is not set for Chrome OS build because | 1218 # Currently this option is not set for Chrome OS build because |
1219 # the current version of gcc (4.3.4) used for building Chrome in | 1219 # the current version of gcc (4.3.4) used for building Chrome in |
1220 # Chrome OS chroot doesn't support this option. | 1220 # Chrome OS chroot doesn't support this option. |
1221 # OpenBSD does not support this option either, since it's using | 1221 # BSD systems do not support this option either, since they are |
1222 # gcc 4.2.1, which does not have this flag yet. | 1222 # usually using gcc 4.2.1, which does not have this flag yet. |
1223 # TODO(mazda): remove the conditional for Chrome OS when gcc | 1223 # TODO(mazda): remove the conditional for Chrome OS when gcc |
1224 # version is upgraded. | 1224 # version is upgraded. |
1225 '-Wno-unused-result', | 1225 '-Wno-unused-result', |
1226 ], | 1226 ], |
1227 }], | 1227 }], |
1228 [ 'OS=="win"', { | 1228 [ 'OS=="win"', { |
1229 'defines': [ | 1229 'defines': [ |
1230 '_CRT_SECURE_NO_DEPRECATE', | 1230 '_CRT_SECURE_NO_DEPRECATE', |
1231 '_CRT_NONSTDC_NO_WARNINGS', | 1231 '_CRT_NONSTDC_NO_WARNINGS', |
1232 '_CRT_NONSTDC_NO_DEPRECATE', | 1232 '_CRT_NONSTDC_NO_DEPRECATE', |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'], | 1277 ['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'], |
1278 ], | 1278 ], |
1279 }], | 1279 }], |
1280 ['toolkit_uses_gtk!=1', { | 1280 ['toolkit_uses_gtk!=1', { |
1281 'sources/': [ | 1281 'sources/': [ |
1282 ['exclude', '_gtk(_unittest)?\\.(h|cc)$'], | 1282 ['exclude', '_gtk(_unittest)?\\.(h|cc)$'], |
1283 ['exclude', '(^|/)gtk/'], | 1283 ['exclude', '(^|/)gtk/'], |
1284 ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'], | 1284 ['exclude', '(^|/)gtk_[^/]*\\.(h|cc)$'], |
1285 ], | 1285 ], |
1286 }], | 1286 }], |
1287 ['OS!="linux" and OS!="openbsd"', { | 1287 ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', { |
1288 'sources/': [ | 1288 'sources/': [ |
1289 ['exclude', '_xdg(_unittest)?\\.(h|cc)$'], | 1289 ['exclude', '_xdg(_unittest)?\\.(h|cc)$'], |
1290 ], | 1290 ], |
1291 }], | 1291 }], |
1292 ['use_wayland!=1', { | 1292 ['use_wayland!=1', { |
1293 'sources/': [ | 1293 'sources/': [ |
1294 ['exclude', '_(wayland)(_unittest)?\\.(h|cc)$'], | 1294 ['exclude', '_(wayland)(_unittest)?\\.(h|cc)$'], |
1295 ['exclude', '(^|/)wayland/'], | 1295 ['exclude', '(^|/)wayland/'], |
1296 ['exclude', '(^|/)(wayland)_[^/]*\\.(h|cc)$'], | 1296 ['exclude', '(^|/)(wayland)_[^/]*\\.(h|cc)$'], |
1297 ], | 1297 ], |
1298 }], | 1298 }], |
1299 # Do not exclude the linux files on OpenBSD since most of them can be | 1299 # Do not exclude the linux files on *BSD since most of them can be |
1300 # shared at this point. | 1300 # shared at this point. |
1301 # In case a file is not needed, it is going to be excluded later on. | 1301 # In case a file is not needed, it is going to be excluded later on. |
1302 ['OS!="linux" and OS!="openbsd"', { | 1302 ['OS!="linux" and OS!="openbsd" and OS!="freebsd"', { |
1303 'sources/': [ | 1303 'sources/': [ |
1304 ['exclude', '_linux(_unittest)?\\.(h|cc)$'], | 1304 ['exclude', '_linux(_unittest)?\\.(h|cc)$'], |
1305 ['exclude', '(^|/)linux/'], | 1305 ['exclude', '(^|/)linux/'], |
1306 ], | 1306 ], |
1307 }], | 1307 }], |
1308 ['OS!="android"', { | 1308 ['OS!="android"', { |
1309 'sources/': [ | 1309 'sources/': [ |
1310 ['exclude', '_android(_unittest)?\\.cc$'], | 1310 ['exclude', '_android(_unittest)?\\.cc$'], |
1311 ['exclude', '(^|/)android/'], | 1311 ['exclude', '(^|/)android/'], |
1312 ], | 1312 ], |
(...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2652 # settings in target dicts. SYMROOT is a special case, because many other | 2652 # settings in target dicts. SYMROOT is a special case, because many other |
2653 # Xcode variables depend on it, including variables such as | 2653 # Xcode variables depend on it, including variables such as |
2654 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2654 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
2655 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2655 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
2656 # files to appear (when present) in the UI as actual files and not red | 2656 # files to appear (when present) in the UI as actual files and not red |
2657 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2657 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
2658 # and therefore SYMROOT, needs to be set at the project level. | 2658 # and therefore SYMROOT, needs to be set at the project level. |
2659 'SYMROOT': '<(DEPTH)/xcodebuild', | 2659 'SYMROOT': '<(DEPTH)/xcodebuild', |
2660 }, | 2660 }, |
2661 } | 2661 } |
OLD | NEW |