blob: 276a40410cf019ea92bcfc7a0ec6bb052bbe8623 [file] [log] [blame]
# Copyright 2015 The Chromium Authors. All rights reserved.
# 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("mojom") {
sources = [
"device.mojom",
"device_manager.mojom",
]
public_deps = [
"//mojo/public/mojom/base",
"//url/mojom:url_mojom_gurl",
]
# USB Mojom interfaces are exposed publicly to layout tests which use
# prepackaged redistributable JS bindings. It is therefore not desirable to
# scramble these messages.
scramble_message_ids = false
# The blink variant of the usb mojom is depended on by the blink platform
# target. All blink variant mojoms use WTF types, which are part of the
# blink platform component. In order to avoid a dependency cycle, these
# targets must be part of that component.
export_class_attribute_blink = "BLINK_PLATFORM_EXPORT"
export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
export_header_blink = "third_party/blink/public/platform/web_common.h"
visibility_blink = [
"//components/arc/common:common_blink",
"//third_party/blink/public/mojom/usb:usb_blink",
"//third_party/blink/renderer/modules/webusb",
]
}