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