| # Copyright 2021 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//common-mk/mojom_bindings_generator.gni") |
| import("//common-mk/pkg_config.gni") |
| |
| generate_mojom_bindings("libcros_healthd_internal") { |
| mojo_root = "${platform2_root}" |
| install_package = "cros_healthd-client" |
| sources = [ "cros_healthd_internal.mojom" ] |
| } |
| |
| # These mojom are part of the HealthD's public api. |
| # TODO(b/268295367): Move all the mojom which are exported by the public API |
| # here. |
| generate_mojom_bindings("libpublic_dependencies") { |
| mojo_root = "${platform2_root}" |
| install_package = "cros_healthd-client" |
| sources = [ "input.mojom" ] |
| } |
| |
| generate_mojom_bindings("libnetwork_diagnostics_mojo_bindings") { |
| mojo_root = "${platform2_root}" |
| install_package = "cros_healthd-client" |
| deps = [ ":libmojo_base" ] |
| sources = [ "network_diagnostics.mojom" ] |
| mojo_extra_args = [ |
| "--typemap", |
| rebase_path("type_mappings.json"), |
| ] |
| } |
| |
| generate_mojom_bindings("libnetwork_health_mojo_bindings") { |
| mojo_root = "${platform2_root}" |
| install_package = "cros_healthd-client" |
| sources = [ |
| "network_health.mojom", |
| "network_health_types.mojom", |
| "network_types.mojom", |
| ] |
| } |
| |
| generate_mojom_bindings("libmojo_base") { |
| mojo_root = "${platform2_root}" |
| install_package = "cros_healthd-client" |
| sources = [ |
| "time.mojom", |
| "uuid.mojom", |
| ] |
| mojo_extra_args = [ |
| "--typemap", |
| rebase_path("type_mappings.json"), |
| ] |
| } |