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

Unified Diff: third_party/libXNVCtrl/BUILD.gn

Issue 1867983002: Flip Linux ChromeOS trybot to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing/buildbot/gn_isolate_map.pyl ('k') | tools/mb/mb_config.pyl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libXNVCtrl/BUILD.gn
diff --git a/third_party/libXNVCtrl/BUILD.gn b/third_party/libXNVCtrl/BUILD.gn
index ef95a0dd37be5e57be2713595d8933fd19164daf..949401a2367c9592568687efbb6802ac152f63ae 100644
--- a/third_party/libXNVCtrl/BUILD.gn
+++ b/third_party/libXNVCtrl/BUILD.gn
@@ -2,6 +2,17 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+# This warning disable must be appended to the command line after the general
+# warnings setup, so must be in a config.
+config("libXNVCtrl_config") {
+ # This will build under most configurations with this warning enabled, but
+ # some older system headers are missing a "const" on the third parameter of
+ # XextAddDisplay which will cause a failure.
+ cflags = [
+ "-Wno-incompatible-pointer-types-discards-qualifiers",
+ ]
+}
+
source_set("libXNVCtrl") {
sources = [
"NVCtrl.c",
@@ -9,4 +20,9 @@ source_set("libXNVCtrl") {
"NVCtrlLib.h",
"nv_control.h",
]
+
+ configs += [
+ ":libXNVCtrl_config",
+ "//build/config/linux:x11",
+ ]
}
« no previous file with comments | « testing/buildbot/gn_isolate_map.pyl ('k') | tools/mb/mb_config.pyl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698