blob: 1de3791cbc64013ba0277f868011382dc4a193b2 [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_enumeration_options.mojom",
"device_manager.mojom",
"device_manager_client.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",
"//chrome/browser/ui/webui/usb_internals:mojo_bindings_blink",
]
}
mojom("test") {
sources = [
"device_manager_test.mojom",
]
public_deps = [
"//url/mojom:url_mojom_gurl",
]
}