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

Side by Side Diff: third_party/mesa/BUILD.gn

Issue 1226583002: clang/win: Build chromium code without -Wno-incompatible-pointer-types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clang-logical-op-parentheses
Patch Set: Created 5 years, 5 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
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("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 config("mesa_headers_config") { 7 config("mesa_headers_config") {
8 include_dirs = [ "src/include" ] 8 include_dirs = [ "src/include" ]
9 if (use_x11) { 9 if (use_x11) {
10 defines = [ "MESA_EGL_NO_X11_HEADERS" ] 10 defines = [ "MESA_EGL_NO_X11_HEADERS" ]
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 # mesa_internal_config is prepended to the config lists. Flags that 109 # mesa_internal_config is prepended to the config lists. Flags that
110 # disable warnings need to be appended instead so that they show up 110 # disable warnings need to be appended instead so that they show up
111 # after flags like -Wall. (gn orders flags on a target before flags from 111 # after flags like -Wall. (gn orders flags on a target before flags from
112 # configs.) 112 # configs.)
113 config("mesa_internal_warnings") { 113 config("mesa_internal_warnings") {
114 cflags = [] 114 cflags = []
115 if (is_clang) { 115 if (is_clang) {
116 cflags += [ 116 cflags += [
117 "-Wno-tautological-constant-out-of-range-compare", 117 "-Wno-tautological-constant-out-of-range-compare",
118 "-Wno-mismatched-tags", # Fixed upstream. 118 "-Wno-mismatched-tags", # Fixed upstream.
119 "-Wno-incompatible-pointer-types",
119 ] 120 ]
120 } 121 }
121 if (is_win) { 122 if (is_win) {
122 # TODO(scottmg): http://crbug.com/143877 These should be removed if 123 # TODO(scottmg): http://crbug.com/143877 These should be removed if
123 # Mesa is ever rolled and the warnings are fixed. 124 # Mesa is ever rolled and the warnings are fixed.
124 cflags += [ 125 cflags += [
125 "/wd4005", # Macro defined twice. 126 "/wd4005", # Macro defined twice.
126 "/wd4065", # Switch statement contains 'default' but no 'case' labels. 127 "/wd4065", # Switch statement contains 'default' but no 'case' labels.
127 "/wd4090", # 'Operation' : different 'modifier' qualifiers 128 "/wd4090", # 'Operation' : different 'modifier' qualifiers
128 "/wd4099", # Type name struct-vs-class doesn't match. 129 "/wd4099", # Type name struct-vs-class doesn't match.
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 "KEYWORD2=GLAPIENTRY", 704 "KEYWORD2=GLAPIENTRY",
704 ] 705 ]
705 } 706 }
706 } 707 }
707 } else { 708 } else {
708 # Placeholder to allow targets to unconditionally depend on this. 709 # Placeholder to allow targets to unconditionally depend on this.
709 group("osmesa") { 710 group("osmesa") {
710 } 711 }
711 } # !is_android 712 } # !is_android
712 # TODO(GYP) Android osmesa_in_lib_dir target. 713 # TODO(GYP) Android osmesa_in_lib_dir target.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698