Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: Source/BUILD.gn

Issue 305303002: Disable a warning in the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("config.gni") 5 import("config.gni")
6 if (is_clang) { 6 if (is_clang) {
7 import("//build/config/clang/clang.gni") 7 import("//build/config/clang/clang.gni")
8 } 8 }
9 9
10 # features --------------------------------------------------------------------- 10 # features ---------------------------------------------------------------------
(...skipping 17 matching lines...) Expand all
28 include_dirs = [ ".", ".." ] 28 include_dirs = [ ".", ".." ]
29 29
30 cflags = [] 30 cflags = []
31 defines = [] 31 defines = []
32 32
33 if (is_win) { 33 if (is_win) {
34 cflags += [ 34 cflags += [
35 "/wd4305", # Truncation from 'type1' to 'type2'. 35 "/wd4305", # Truncation from 'type1' to 'type2'.
36 "/wd4324", # Struct padded due to declspec(align). 36 "/wd4324", # Struct padded due to declspec(align).
37 "/wd4714", # Function marked forceinline not inlined. 37 "/wd4714", # Function marked forceinline not inlined.
38 "/wd4800", # Value forced to bool.
38 "/wd4996", # Deprecated function call. 39 "/wd4996", # Deprecated function call.
39 ] 40 ]
40 } 41 }
41 42
42 if (is_win) { 43 if (is_win) {
43 if (component_mode == "shared_library") { 44 if (component_mode == "shared_library") {
44 defines += [ "USING_V8_SHARED" ] 45 defines += [ "USING_V8_SHARED" ]
45 } 46 }
46 } else { # ! Windows 47 } else { # ! Windows
47 # TODO(GYP) this should be based on gcc_version >= 46 but GN doesn't have a 48 # TODO(GYP) this should be based on gcc_version >= 46 but GN doesn't have a
(...skipping 19 matching lines...) Expand all
67 } 68 }
68 } 69 }
69 70
70 # stubs ------------------------------------------------------------------------ 71 # stubs ------------------------------------------------------------------------
71 72
72 # These set up include paths for targets that haven't been converted yet. They 73 # These set up include paths for targets that haven't been converted yet. They
73 # can be removed when the corresponding targets have been converted to GN. 74 # can be removed when the corresponding targets have been converted to GN.
74 config("npapi_stub") { 75 config("npapi_stub") {
75 include_dirs = [ "//third_party/npapi", "//third_party/npapi/bindings" ] 76 include_dirs = [ "//third_party/npapi", "//third_party/npapi/bindings" ]
76 } 77 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698