| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 config("wtf-config") { | 5 config("wtf-config") { |
| 6 include_dirs = [ ".." ] | 6 include_dirs = [ ".." ] |
| 7 if (is_win) { | 7 if (is_win) { |
| 8 include_dirs += [ "os-win32" ] | 8 include_dirs += [ "os-win32" ] |
| 9 defines = [ | 9 defines = [ |
| 10 "__STD_C", | 10 "__STD_C", |
| 11 "_CRT_SECURE_NO_DEPRECATE", | 11 "_CRT_SECURE_NO_DEPRECATE", |
| 12 "_SCL_SECURE_NO_DEPRECATE", | 12 "_SCL_SECURE_NO_DEPRECATE", |
| 13 "CRASH=__debugbreak", | 13 "CRASH=__debugbreak", |
| 14 ] | 14 ] |
| 15 # # Chromium windows multi-dll build enables c++ exception and this | 15 # # Chromium windows multi-dll build enables c++ exception and this |
| 16 # # causes wtf generates 4291 warning due to operator new/delete | 16 # # causes wtf generates 4291 warning due to operator new/delete |
| 17 # # implementations. Disable the warning for chromium windows | 17 # # implementations. Disable the warning for chromium windows |
| 18 # # multi-dll build. | 18 # # multi-dll build. |
| 19 # 'msvs_disabled_warnings': [4291], | 19 # 'msvs_disabled_warnings': [4291], |
| 20 # 'direct_dependent_settings': { | 20 # 'direct_dependent_settings': { |
| 21 # 'msvs_disabled_warnings': [4291], | 21 # 'msvs_disabled_warnings': [4291], |
| 22 # }, | 22 # }, |
| 23 } | 23 } |
| 24 | 24 |
| 25 if (is_linux) { # (gcc_version >= 46) { | 25 if (is_linux) { # (gcc_version >= 46) { |
| 26 # Disable warnings about c++0x compatibility, as some names (such as | 26 # Disable warnings about c++0x compatibility, as some names (such as |
| 27 # nullptr) conflict with upcoming c++0x types. | 27 # nullptr) conflict with upcoming c++0x types. |
| 28 cflags_cc += [ "-Wno-c++0x-compat" ] | 28 cflags_cc = [ "-Wno-c++0x-compat" ] |
| 29 } | 29 } |
| 30 | 30 |
| 31 # # Some warnings occur in WTF headers, so they must also be disabled | 31 # # Some warnings occur in WTF headers, so they must also be disabled |
| 32 # # in targets that use WTF. | 32 # # in targets that use WTF. |
| 33 # 'msvs_disabled_warnings': [ | 33 # 'msvs_disabled_warnings': [ |
| 34 # # Don't complain about calling specific versions of templatized | 34 # # Don't complain about calling specific versions of templatized |
| 35 # # functions (e.g. in RefPtrHashMap.h). | 35 # # functions (e.g. in RefPtrHashMap.h). |
| 36 # 4344, | 36 # 4344, |
| 37 # # Don't complain about using "this" in an initializer list | 37 # # Don't complain about using "this" in an initializer list |
| 38 # # (e.g. in StringImpl.h). | 38 # # (e.g. in StringImpl.h). |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 # # Disable c4267 warnings until we fix size_t to int truncations. | 358 # # Disable c4267 warnings until we fix size_t to int truncations. |
| 359 # 'msvs_disabled_warnings': [4127, 4355, 4510, 4512, 4610, 4706, 4068, 4267], | 359 # 'msvs_disabled_warnings': [4127, 4355, 4510, 4512, 4610, 4706, 4068, 4267], |
| 360 | 360 |
| 361 # if (is_linux && use_tcmalloc) { | 361 # if (is_linux && use_tcmalloc) { |
| 362 # deps += [ | 362 # deps += [ |
| 363 # "//base:base", | 363 # "//base:base", |
| 364 # "//base/allocator:allocator", | 364 # "//base/allocator:allocator", |
| 365 # ], | 365 # ], |
| 366 # } | 366 # } |
| 367 } | 367 } |
| OLD | NEW |