Edit

kc3-lang/angle/src/third_party/libXNVCtrl/BUILD.gn

Branch :

  • Show log

    Commit

  • Author : Brett Wilson
    Date : 2016-04-12 14:17:19
    Hash : 81efa8ec
    Message : Disable pointer conversion warning in XNVCtrl This warning happens on some older versions of the X headers, such as those present on the current Chromium linux_chromium_chromeos_rel_ng bots. The default warnings in the GN build are slightly more strict than in GYP which is why we need to add some isolated warning disables. BUG=432959 Change-Id: Id6218780195c59f160adae789305638d3463be9a Reviewed-on: https://chromium-review.googlesource.com/338424 Reviewed-by: Corentin Wallez <cwallez@chromium.org>

  • src/third_party/libXNVCtrl/BUILD.gn
  • # 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",
      ]
    }