chromium/ui/actions/BUILD.gn

# Copyright 2023 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/buildflag_header.gni")
import("//testing/test.gni")

source_set("actions_headers") {
  sources = [
    "action_id.h",
    "action_id_macros.inc",
    "actions.h",
  ]

  public_deps = [
    "//base",
    "//ui/base",
    "//ui/base/metadata",
    "//ui/events",
  ]

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

component("actions") {
  sources = [ "actions.cc" ]

  defines = [ "IS_ACTIONS_IMPL" ]

  public_deps = [ ":actions_headers" ]

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

source_set("unit_tests") {
  testonly = true

  sources = [ "actions_unittest.cc" ]

  deps = [
    ":actions",
    ":actions_headers",
    "//base/test:test_support",
    "//testing/gtest",
  ]
}