| # Copyright 2020 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") |
| |
| assert(is_chromeos, "Nearby Share is CrOS only") |
| |
| mojom("share_type") { |
| sources = [ "nearby_share_share_type.mojom" ] |
| webui_module_path = "/" |
| } |
| |
| mojom("mojom") { |
| sources = [ "nearby_share.mojom" ] |
| |
| public_deps = [ |
| ":share_type", |
| "//chromeos/ash/services/nearby/public/mojom:nearby_share_settings", |
| "//mojo/public/mojom/base", |
| "//url/mojom:url_mojom_gurl", |
| ] |
| |
| webui_module_path = "/" |
| |
| cpp_typemaps = [ |
| { |
| types = [ |
| { |
| mojom = "nearby_share.mojom.ShareTarget" |
| cpp = "::ShareTarget" |
| }, |
| ] |
| traits_headers = [ "nearby_share_mojom_traits.h" ] |
| traits_sources = [ "nearby_share_mojom_traits.cc" ] |
| traits_deps = [ "//chrome/browser/nearby_sharing:share_target" ] |
| }, |
| ] |
| } |