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

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

Issue 1880113003: Enable /GL for all targets in Official (behind a flag) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase - Add a flag to enable this. Created 4 years, 7 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 import("//build/config/sanitizers/sanitizers.gni") 6 import("//build/config/sanitizers/sanitizers.gni")
7 7
8 config("mesa_headers_config") { 8 config("mesa_headers_config") {
9 include_dirs = [ "src/include" ] 9 include_dirs = [ "src/include" ]
10 if (!use_x11) { 10 if (!use_x11) {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 "/wd4065", # Switch statement contains 'default' but no 'case' labels. 137 "/wd4065", # Switch statement contains 'default' but no 'case' labels.
138 "/wd4090", # 'Operation' : different 'modifier' qualifiers 138 "/wd4090", # 'Operation' : different 'modifier' qualifiers
139 "/wd4099", # Type name struct-vs-class doesn't match. 139 "/wd4099", # Type name struct-vs-class doesn't match.
140 "/wd4273", # Inconsistent DLL linkage. 140 "/wd4273", # Inconsistent DLL linkage.
141 "/wd4291", # No matching operator delete found for placement new. 141 "/wd4291", # No matching operator delete found for placement new.
142 "/wd4305", # Truncation from int to float. 142 "/wd4305", # Truncation from int to float.
143 "/wd4334", # Result of 32-bit shift implicitly converted to 64 bits. 143 "/wd4334", # Result of 32-bit shift implicitly converted to 64 bits.
144 "/wd4345", # POD-type default initializers. 144 "/wd4345", # POD-type default initializers.
145 "/wd4311", # Pointer truncation TODO(brucedawson): http://crbug.com/55420 0 145 "/wd4311", # Pointer truncation TODO(brucedawson): http://crbug.com/55420 0
146 ] 146 ]
147 if (is_official_build && full_wpo_on_official) {
148 # TODO(sebmarchand): http://crbug.com/604838 This should be removed if
149 # Mesa is ever rolled and the warnings is fixed.
brucedawson 2016/04/29 00:06:13 nit: warnings -> warning (or is -> are)
Sébastien Marchand 2016/04/29 14:15:39 Done.
150 cflags += [ "/wd4723" ] # potential divide by 0.
151 }
147 } 152 }
148 } 153 }
149 154
150 config("mesa_libglslcommon_warnings") { 155 config("mesa_libglslcommon_warnings") {
151 if (is_clang) { 156 if (is_clang) {
152 cflags = [ 157 cflags = [
153 # https://bugs.freedesktop.org/show_bug.cgi?id=91645: 158 # https://bugs.freedesktop.org/show_bug.cgi?id=91645:
154 "-Wno-overloaded-virtual", 159 "-Wno-overloaded-virtual",
155 ] 160 ]
156 } 161 }
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 deps = [ 778 deps = [
774 "//third_party/wayland:wayland_util", 779 "//third_party/wayland:wayland_util",
775 ] 780 ]
776 781
777 configs -= [ "//build/config/compiler:chromium_code" ] 782 configs -= [ "//build/config/compiler:chromium_code" ]
778 configs += [ "//build/config/compiler:no_chromium_code" ] 783 configs += [ "//build/config/compiler:no_chromium_code" ]
779 784
780 public_configs = [ ":wayland_drm_protocol_config" ] 785 public_configs = [ ":wayland_drm_protocol_config" ]
781 } 786 }
782 } 787 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698