chromium/extensions/browser/api/virtual_keyboard_private/BUILD.gn

# Copyright 2016 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/chromeos/ui_mode.gni")
import("//extensions/buildflags/buildflags.gni")

assert(enable_extensions_core)

source_set("virtual_keyboard_private") {
  sources = [
    "virtual_keyboard_private_api.cc",
    "virtual_keyboard_private_api.h",
  ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  deps = [
    "//content/public/browser",
    "//extensions/common/api",
  ]

  if (is_chromeos_ash) {
    deps += [ "//ash" ]
  }

  if (is_chromeos_lacros) {
    deps += [ "//chromeos/crosapi/mojom" ]
  }

  public_deps = [
    ":virtual_keyboard_delegate",
    "//extensions/browser:browser_sources",
  ]
}

source_set("virtual_keyboard_delegate") {
  sources = [ "virtual_keyboard_delegate.h" ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  deps = [
    "//content/public/browser",
    "//extensions/common/api",
    "//ui/gfx/geometry",
  ]
}