blob: 9faadc8190dc9d9c67f8f573dd016778bd7ac927 [file]
# Copyright 2026 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//mojo/public/tools/bindings/mojom.gni")
mojom("mojo_bindings") {
sources = [ "skill.mojom" ]
webui_module_path = "/"
cpp_typemaps = [
{
types = [
{
mojom = "skills.mojom.Skill"
cpp = "::skills::Skill"
},
]
traits_headers = [ "skills_mojom_traits.h" ]
traits_sources = [ "skills_mojom_traits.cc" ]
traits_public_deps = [ ":public" ]
},
]
public_deps = [ "//mojo/public/mojom/base" ]
}
source_set("public") {
sources = [
"skill.cc",
"skill.h",
"skills_metrics.cc",
"skills_metrics.h",
"skills_service.cc",
"skills_service.h",
]
public_deps = [
"//base",
"//components/keyed_service/core",
"//components/skills/internal:downloader",
"//components/skills/proto",
"//components/sync/protocol",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "skill_unittest.cc" ]
deps = [
":public",
"//base/test:test_support",
]
visibility = [ "//components/skills:unit_tests" ]
}