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

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: Fix 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
« no previous file with comments | « build/config/compiler/compiler.gni ('k') | third_party/yasm/BUILD.gn » ('j') | 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("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 import("//build/config/compiler/compiler.gni")
6 import("//build/config/sanitizers/sanitizers.gni") 7 import("//build/config/sanitizers/sanitizers.gni")
7 8
8 config("mesa_headers_config") { 9 config("mesa_headers_config") {
9 include_dirs = [ "src/include" ] 10 include_dirs = [ "src/include" ]
10 if (!use_x11) { 11 if (!use_x11) {
11 defines = [ "MESA_EGL_NO_X11_HEADERS" ] 12 defines = [ "MESA_EGL_NO_X11_HEADERS" ]
12 } 13 }
13 } 14 }
14 15
15 # This directory contains checked-in files generated from the Mesa build. 16 # This directory contains checked-in files generated from the Mesa build.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 "/wd4065", # Switch statement contains 'default' but no 'case' labels. 138 "/wd4065", # Switch statement contains 'default' but no 'case' labels.
138 "/wd4090", # 'Operation' : different 'modifier' qualifiers 139 "/wd4090", # 'Operation' : different 'modifier' qualifiers
139 "/wd4099", # Type name struct-vs-class doesn't match. 140 "/wd4099", # Type name struct-vs-class doesn't match.
140 "/wd4273", # Inconsistent DLL linkage. 141 "/wd4273", # Inconsistent DLL linkage.
141 "/wd4291", # No matching operator delete found for placement new. 142 "/wd4291", # No matching operator delete found for placement new.
142 "/wd4305", # Truncation from int to float. 143 "/wd4305", # Truncation from int to float.
143 "/wd4334", # Result of 32-bit shift implicitly converted to 64 bits. 144 "/wd4334", # Result of 32-bit shift implicitly converted to 64 bits.
144 "/wd4345", # POD-type default initializers. 145 "/wd4345", # POD-type default initializers.
145 "/wd4311", # Pointer truncation TODO(brucedawson): http://crbug.com/55420 0 146 "/wd4311", # Pointer truncation TODO(brucedawson): http://crbug.com/55420 0
146 ] 147 ]
148 if (is_official_build && full_wpo_on_official) {
149 # TODO(sebmarchand): http://crbug.com/604838 This should be removed if
150 # Mesa is ever rolled and the warning is fixed.
151 cflags += [ "/wd4723" ] # potential divide by 0.
152 }
147 } 153 }
148 } 154 }
149 155
150 config("mesa_libglslcommon_warnings") { 156 config("mesa_libglslcommon_warnings") {
151 if (is_clang) { 157 if (is_clang) {
152 cflags = [ 158 cflags = [
153 # https://bugs.freedesktop.org/show_bug.cgi?id=91645: 159 # https://bugs.freedesktop.org/show_bug.cgi?id=91645:
154 "-Wno-overloaded-virtual", 160 "-Wno-overloaded-virtual",
155 ] 161 ]
156 } 162 }
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 deps = [ 779 deps = [
774 "//third_party/wayland:wayland_util", 780 "//third_party/wayland:wayland_util",
775 ] 781 ]
776 782
777 configs -= [ "//build/config/compiler:chromium_code" ] 783 configs -= [ "//build/config/compiler:chromium_code" ]
778 configs += [ "//build/config/compiler:no_chromium_code" ] 784 configs += [ "//build/config/compiler:no_chromium_code" ]
779 785
780 public_configs = [ ":wayland_drm_protocol_config" ] 786 public_configs = [ ":wayland_drm_protocol_config" ]
781 } 787 }
782 } 788 }
OLDNEW
« no previous file with comments | « build/config/compiler/compiler.gni ('k') | third_party/yasm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698