summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/public/mojom/usb/BUILD.gn
blob: 9629b38c51308f81abf4ee4a3f0840f66a7b5f65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 2018 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("usb") {
  # Ideally, this mojom file should be compiled directly in "mojom_platform"
  # target in the parent directory. But as we need |scramble_message_ids| to
  # be "false" for its mojom JS file will be used in external WPT tests.
  # To limit this option's influence scope, we make it a separate target.
  sources = [
    "web_usb_service.mojom",
  ]

  deps = [
    "//mojo/public/mojom/base",

    # TODO(donna.wu@intel.com): Change the following line to //service/device/
    # after it has been moved to //services/device.
    "//device/usb/public/mojom",
  ]

  # USB Mojom interfaces are exposed publicly to web tests which use
  # prepackaged redistributable JS bindings. It is therefore not desirable to
  # scramble these messages.
  scramble_message_ids = false

  export_class_attribute = "BLINK_COMMON_EXPORT"
  export_define = "BLINK_COMMON_IMPLEMENTATION=1"
  export_header = "third_party/blink/public/common/common_export.h"

  export_class_attribute_blink = "PLATFORM_EXPORT"
  export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1"
  export_header_blink = "third_party/blink/renderer/platform/platform_export.h"
}