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

Side by Side Diff: gpu/config/BUILD.gn

Issue 709793002: gn win: disable 4267 (need for win x64) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 1 month 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/BUILD.gn ('k') | 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("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 declare_args() { 7 declare_args() {
8 # Use the PCI lib to collect GPU information on Linux. 8 # Use the PCI lib to collect GPU information on Linux.
9 use_libpci = true 9 use_libpci = true
10 } 10 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 if (is_win) { 59 if (is_win) {
60 deps += [ "//third_party/libxml" ] 60 deps += [ "//third_party/libxml" ]
61 libs = [ "dxguid.lib", "setupapi.lib" ] 61 libs = [ "dxguid.lib", "setupapi.lib" ]
62 62
63 if (is_chrome_branded && is_official_build) { 63 if (is_chrome_branded && is_official_build) {
64 sources += [ 64 sources += [
65 "//third_party/amd/AmdCfxPxExt.h", 65 "//third_party/amd/AmdCfxPxExt.h",
66 "//third_party/amd/amd_videocard_info_win.cc", 66 "//third_party/amd/amd_videocard_info_win.cc",
67 ] 67 ]
68 } 68 }
69
70 # TODO(jschuh): size_t to int.
71 cflags = [ "/wd4267" ]
69 } 72 }
70 if (use_libpci) { 73 if (use_libpci) {
71 defines += [ "USE_LIBPCI=1" ] 74 defines += [ "USE_LIBPCI=1" ]
72 } 75 }
73 if (is_linux && use_libpci && (use_x11 || use_ozone)) { 76 if (is_linux && use_libpci && (use_x11 || use_ozone)) {
74 deps += [ 77 deps += [
75 "//build/config/linux:libpci", 78 "//build/config/linux:libpci",
76 ] 79 ]
77 } 80 }
78 if (is_linux && use_x11) { 81 if (is_linux && use_x11) {
79 configs += [ 82 configs += [
80 "//build/config/linux:x11", 83 "//build/config/linux:x11",
81 "//build/config/linux:xext", 84 "//build/config/linux:xext",
82 ] 85 ]
83 deps += [ 86 deps += [
84 "//third_party/libXNVCtrl", 87 "//third_party/libXNVCtrl",
85 ] 88 ]
86 } else { 89 } else {
87 sources -= [ "gpu_info_collector_x11.cc" ] 90 sources -= [ "gpu_info_collector_x11.cc" ]
88 } 91 }
89 if (!use_ozone) { 92 if (!use_ozone) {
90 sources -= [ "gpu_info_collector_ozone.cc" ] 93 sources -= [ "gpu_info_collector_ozone.cc" ]
91 } 94 }
92 } 95 }
93 96
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698