summaryrefslogtreecommitdiffstats
path: root/gfx/angle/src/third_party/libXNVCtrl/BUILD.gn
blob: b58a5422be73adebce491930339c54684db0b39e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright (c) 2016 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# This warning disable must be appended to the command line after the general
# warnings setup, so must be in a config.
config("libXNVCtrl_config") {
  # This will build under most configurations with this warning enabled, but
  # some older system headers are missing a "const" on the third parameter of
  # XextAddDisplay which will cause a failure.
  cflags = [
    "-Wno-incompatible-pointer-types-discards-qualifiers",
  ]
}

source_set("libXNVCtrl") {
  sources = [
    "NVCtrl.c",
    "NVCtrl.h",
    "NVCtrlLib.h",
    "nv_control.h",
  ]

  configs += [
    ":libXNVCtrl_config",
    "//build/config/linux:x11",
  ]
}