1*8975f5c5SAndroid Build Coastguard Worker# Copyright 2016 The ANGLE Project Authors. All rights reserved. 2*8975f5c5SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license that can be 3*8975f5c5SAndroid Build Coastguard Worker# found in the LICENSE file. 4*8975f5c5SAndroid Build Coastguard Worker 5*8975f5c5SAndroid Build Coastguard Worker# This warning disable must be appended to the command line after the general 6*8975f5c5SAndroid Build Coastguard Worker# warnings setup, so must be in a config. 7*8975f5c5SAndroid Build Coastguard Workerconfig("libXNVCtrl_config") { 8*8975f5c5SAndroid Build Coastguard Worker # This will build under most configurations with this warning enabled, but 9*8975f5c5SAndroid Build Coastguard Worker # some older system headers are missing a "const" on the third parameter of 10*8975f5c5SAndroid Build Coastguard Worker # XextAddDisplay which will cause a failure. 11*8975f5c5SAndroid Build Coastguard Worker cflags = [ 12*8975f5c5SAndroid Build Coastguard Worker "-Wno-incompatible-pointer-types-discards-qualifiers", 13*8975f5c5SAndroid Build Coastguard Worker "-Wno-deprecated-non-prototype", 14*8975f5c5SAndroid Build Coastguard Worker ] 15*8975f5c5SAndroid Build Coastguard Worker} 16*8975f5c5SAndroid Build Coastguard Worker 17*8975f5c5SAndroid Build Coastguard Workersource_set("libXNVCtrl") { 18*8975f5c5SAndroid Build Coastguard Worker sources = [ 19*8975f5c5SAndroid Build Coastguard Worker "NVCtrl.c", 20*8975f5c5SAndroid Build Coastguard Worker "NVCtrl.h", 21*8975f5c5SAndroid Build Coastguard Worker "NVCtrlLib.h", 22*8975f5c5SAndroid Build Coastguard Worker "nv_control.h", 23*8975f5c5SAndroid Build Coastguard Worker ] 24*8975f5c5SAndroid Build Coastguard Worker 25*8975f5c5SAndroid Build Coastguard Worker configs += [ ":libXNVCtrl_config" ] 26*8975f5c5SAndroid Build Coastguard Worker 27*8975f5c5SAndroid Build Coastguard Worker libs = [ "xcb" ] 28*8975f5c5SAndroid Build Coastguard Worker} 29