| OLD | NEW |
| 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 # This warning disable must be appended to the command line after the general |
| 6 # warnings setup, so must be in a config. |
| 7 config("libXNVCtrl_config") { |
| 8 # This will build under most configurations with this warning enabled, but |
| 9 # some older system headers are missing a "const" on the third parameter of |
| 10 # XextAddDisplay which will cause a failure. |
| 11 cflags = [ |
| 12 "-Wno-incompatible-pointer-types-discards-qualifiers", |
| 13 ] |
| 14 } |
| 15 |
| 5 source_set("libXNVCtrl") { | 16 source_set("libXNVCtrl") { |
| 6 sources = [ | 17 sources = [ |
| 7 "NVCtrl.c", | 18 "NVCtrl.c", |
| 8 "NVCtrl.h", | 19 "NVCtrl.h", |
| 9 "NVCtrlLib.h", | 20 "NVCtrlLib.h", |
| 10 "nv_control.h", | 21 "nv_control.h", |
| 11 ] | 22 ] |
| 23 |
| 24 configs += [ |
| 25 ":libXNVCtrl_config", |
| 26 "//build/config/linux:x11", |
| 27 ] |
| 12 } | 28 } |
| OLD | NEW |