chromium/third_party/wtl/BUILD.gn

# Copyright 2013 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

assert(is_win, "This only runs on Windows.")

config("wtl_includes") {
  include_dirs = [ "include" ]

  if (is_clang) {
    defines = [ "_WTL_NO_AUTOMATIC_NAMESPACE" ]

    # See https://crbug.com/1208419.
    cflags = [ "-Wno-null-pointer-subtraction" ]
  }
}

# WTL is only header files so we use a "group" target type which doesn't
# actually generate anything linkable, and inject the required config for
# making the include directories work.
group("wtl") {
  all_dependent_configs = [ ":wtl_includes" ]
}