chromium/services/data_decoder/public/mojom/BUILD.gn

# Copyright 2016 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")

mojom("mojom") {
  sources = [
    "cbor_parser.mojom",
    "data_decoder_service.mojom",
    "gzipper.mojom",
    "image_decoder.mojom",
    "json_parser.mojom",
    "structured_headers_parser.mojom",
  ]

  public_deps = [
    ":mojom_xml_parser",
    "//components/facilitated_payments/core/mojom:pix_code_validator_mojom",
    "//components/web_package/mojom",
    "//mojo/public/mojom/base",
    "//sandbox/policy/mojom",
    "//services/network/public/mojom:mojom_structured_headers",
    "//skia/public/mojom",
    "//ui/gfx/geometry/mojom",
    "//url/mojom:url_mojom_gurl",
  ]

  if (is_chromeos) {
    sources += [ "ble_scan_parser.mojom" ]
    public_deps += [ "//device/bluetooth/public/mojom" ]
  }
}

mojom("mojom_xml_parser") {
  sources = [ "xml_parser.mojom" ]

  public_deps = [ "//mojo/public/mojom/base" ]
}