xref: /aosp_15_r20/external/angle/src/third_party/libXNVCtrl/BUILD.gn (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
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 = [
12    "-Wno-incompatible-pointer-types-discards-qualifiers",
13    "-Wno-deprecated-non-prototype",
14  ]
15}
16
17source_set("libXNVCtrl") {
18  sources = [
19    "NVCtrl.c",
20    "NVCtrl.h",
21    "NVCtrlLib.h",
22    "nv_control.h",
23  ]
24
25  configs += [ ":libXNVCtrl_config" ]
26
27  libs = [ "xcb" ]
28}
29