chromium/ash/webui/shortcut_customization_ui/backend/BUILD.gn

# Copyright 2021 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/chrome_build.gni")
import("//build/config/chromeos/ui_mode.gni")

assert(is_chromeos_ash, "Non-ChromeOS builds cannot depend on //ash")

static_library("backend") {
  sources = [
    "accelerator_configuration_provider.cc",
    "accelerator_configuration_provider.h",
    "accelerator_layout_table.cc",
    "accelerator_layout_table.h",
    "search/fake_search_data.cc",
    "search/fake_search_data.h",
    "search/search_concept.cc",
    "search/search_concept.h",
    "search/search_concept_registry.cc",
    "search/search_concept_registry.h",
    "search/search_handler.cc",
    "search/search_handler.h",
    "text_accelerator_part.cc",
    "text_accelerator_part.h",
  ]

  deps = [
    "//ash",
    "//ash/public/cpp",
    "//ash/public/mojom",
    "//ash/webui/shortcut_customization_ui/backend/search:mojo_bindings",
    "//ash/webui/shortcut_customization_ui/mojom",
    "//base",
    "//build:branding_buildflags",
    "//chromeos/ash/components/local_search_service:local_search_service",
    "//chromeos/ash/components/local_search_service/public/cpp:cpp",
    "//chromeos/ash/components/local_search_service/public/mojom",
    "//chromeos/crosapi/cpp:cpp",
    "//chromeos/strings",
    "//components/prefs:prefs",
    "//ui/base/ime/ash",
    "//ui/events/ash",
    "//ui/events/devices",
  ]

  if (is_chrome_branded) {
    deps += [ "//chromeos/ash/resources/internal/strings" ]
  }
}