1# Copyright 2016 The ANGLE Project Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5# This warning disable must be appended to the command line after the general 6# warnings setup, so must be in a config. 7config("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 = [ "-Wno-incompatible-pointer-types-discards-qualifiers" ] 12} 13 14source_set("libXNVCtrl") { 15 sources = [ 16 "NVCtrl.c", 17 "NVCtrl.h", 18 "NVCtrlLib.h", 19 "nv_control.h", 20 ] 21 22 configs += [ ":libXNVCtrl_config" ] 23 24 libs = [ "xcb" ] 25} 26