chromium/chromeos/ash/services/cros_healthd/public/mojom/BUILD.gn

# Copyright 2019 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("//mojo/public/tools/bindings/mojom.gni")

assert(is_chromeos_ash)

mojom("mojom") {
  sources = [
    "cros_healthd.mojom",
    "cros_healthd_diagnostics.mojom",
    "cros_healthd_events.mojom",
    "cros_healthd_exception.mojom",
    "cros_healthd_probe.mojom",
    "cros_healthd_routines.mojom",
    "nullable_primitives.mojom",
  ]
  public_deps = [
    "//ash/system/diagnostics/mojom",
    "//chromeos/ash/services/cros_healthd/private/mojom",
    "//chromeos/services/network_health/public/mojom",
    "//chromeos/services/network_health/public/mojom:types",
    "//mojo/public/mojom/base",
  ]
  cpp_typemaps = [
    {
      types = [
        {
          mojom = "ash.cros_healthd_probe.mojom.CpuArchitectureEnum"
          cpp = "::em::CpuInfo::Architecture"
        },
      ]
      traits_headers = [ "cros_healthd_probe_mojom_traits.h" ]
      traits_sources = [ "cros_healthd_probe_mojom_traits.cc" ]
      traits_public_deps = [ "//components/policy/proto" ]
    },
  ]
}

mojom("event_reporter") {
  sources = [ "cros_healthd_event_reporters.mojom" ]
  public_deps = [ "//ash/system/diagnostics/mojom" ]
}