chromium/ui/base/cursor/BUILD.gn

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

import("//build/config/ui.gni")

component("cursor") {
  output_name = "ui_base_cursor_base"
  sources = [
    "cursor.cc",
    "cursor.h",
    "cursor_factory.cc",
    "cursor_factory.h",
    "cursor_size.h",
    "platform_cursor.h",
  ]
  defines = [ "IS_UI_BASE_CURSOR_IMPL" ]
  public_deps = [
    "//base",
    "//skia",
    "//ui/base/cursor/mojom:cursor_type",
    "//ui/gfx/geometry",
  ]
  deps = [
    "//ui/gfx:gfx_skia",
    "//ui/gfx/geometry:geometry_skia",
  ]
}

source_set("unittests") {
  testonly = true
  sources = []
  deps = []

  if (!is_ios) {
    sources += [ "cursor_unittest.cc" ]
    deps += [
      ":cursor",
      "//skia",
      "//testing/gtest",
      "//ui/base/cursor/mojom:cursor_type_shared",
      "//ui/gfx:gfx_skia",
      "//ui/gfx:test_support",
      "//ui/gfx/geometry",
    ]
  }
}