Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1252 # Force disable libstdc++ debug mode. | 1252 # Force disable libstdc++ debug mode. |
| 1253 'disable_glibcxx_debug%': 0, | 1253 'disable_glibcxx_debug%': 0, |
| 1254 | 1254 |
| 1255 'conditions': [ | 1255 'conditions': [ |
| 1256 # The version of GCC in use, set later in platforms that use GCC and have | 1256 # The version of GCC in use, set later in platforms that use GCC and have |
| 1257 # not explicitly chosen to build with clang. Currently, this means all | 1257 # not explicitly chosen to build with clang. Currently, this means all |
| 1258 # platforms except Windows, Mac and iOS. | 1258 # platforms except Windows, Mac and iOS. |
| 1259 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that | 1259 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that |
| 1260 # it takes effect here. | 1260 # it takes effect here. |
| 1261 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsa n==0 and tsan==0 and msan==0', { | 1261 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsa n==0 and tsan==0 and msan==0', { |
| 1262 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | 1262 'conditions': [ |
| 1263 ['OS=="android"', { | |
| 1264 # We directly set the gcc_version since we know what we use. | |
| 1265 'gcc_version%': 46, | |
| 1266 }, { | |
| 1267 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | |
| 1268 }], | |
| 1269 ], | |
| 1263 }, { | 1270 }, { |
| 1264 'gcc_version%': 0, | 1271 'gcc_version%': 0, |
| 1265 }], | 1272 }], |
| 1266 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { | 1273 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { |
| 1267 'windows_sdk_path%': '<(windows_sdk_default_path)', | 1274 'windows_sdk_path%': '<(windows_sdk_default_path)', |
| 1268 }, { | 1275 }, { |
| 1269 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', | 1276 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', |
| 1270 }], | 1277 }], |
| 1271 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', { | 1278 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', { |
| 1272 'directx_sdk_path%': '<(directx_sdk_default_path)', | 1279 'directx_sdk_path%': '<(directx_sdk_default_path)', |
| (...skipping 2546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3819 # before defines. | 3826 # before defines. |
| 3820 '-U_FORTIFY_SOURCE', | 3827 '-U_FORTIFY_SOURCE', |
| 3821 # Disable any additional warnings enabled by the Android build system but which | 3828 # Disable any additional warnings enabled by the Android build system but which |
| 3822 # chromium does not build cleanly with (when treating warning as errors). | 3829 # chromium does not build cleanly with (when treating warning as errors). |
| 3823 # Things that are part of -Wextra: | 3830 # Things that are part of -Wextra: |
| 3824 '-Wno-extra', # Enabled by -Wextra, but no specific flag | 3831 '-Wno-extra', # Enabled by -Wextra, but no specific flag |
| 3825 '-Wno-ignored-qualifiers', | 3832 '-Wno-ignored-qualifiers', |
| 3826 '-Wno-type-limits', | 3833 '-Wno-type-limits', |
| 3827 ], | 3834 ], |
| 3828 'cflags_cc': [ | 3835 'cflags_cc': [ |
| 3829 # Disabling c++0x-compat should be handled in WebKit, but | |
| 3830 # this currently doesn't work because gcc_version is not set | |
| 3831 # correctly when building with the Android build system. | |
| 3832 # TODO(torne): Fix this in WebKit. | |
| 3833 '-Wno-error=c++0x-compat', | |
|
Nico
2014/01/12 23:50:47
(I'm hoping the trybots will tell me if removing t
| |
| 3834 # Other things unrelated to -Wextra: | 3836 # Other things unrelated to -Wextra: |
| 3835 '-Wno-non-virtual-dtor', | 3837 '-Wno-non-virtual-dtor', |
| 3836 '-Wno-sign-promo', | 3838 '-Wno-sign-promo', |
| 3837 ], | 3839 ], |
| 3838 }], | 3840 }], |
| 3839 ['android_webview_build==1', { | 3841 ['android_webview_build==1', { |
| 3840 'target_conditions': [ | 3842 'target_conditions': [ |
| 3841 ['chromium_code==0', { | 3843 ['chromium_code==0', { |
| 3842 'cflags': [ | 3844 'cflags': [ |
| 3843 # There is a class of warning which: | 3845 # There is a class of warning which: |
| (...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4802 # settings in target dicts. SYMROOT is a special case, because many other | 4804 # settings in target dicts. SYMROOT is a special case, because many other |
| 4803 # Xcode variables depend on it, including variables such as | 4805 # Xcode variables depend on it, including variables such as |
| 4804 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4806 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4805 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4807 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4806 # files to appear (when present) in the UI as actual files and not red | 4808 # files to appear (when present) in the UI as actual files and not red |
| 4807 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4809 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4808 # and therefore SYMROOT, needs to be set at the project level. | 4810 # and therefore SYMROOT, needs to be set at the project level. |
| 4809 'SYMROOT': '<(DEPTH)/xcodebuild', | 4811 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4810 }, | 4812 }, |
| 4811 } | 4813 } |
| OLD | NEW |