summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/usb_internals/BUILD.gn
blob: d7812aa300ee58852144ae46725a2e5f2d4c90e2 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright 2019 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("//third_party/closure_compiler/compile_js.gni")
import("//tools/grit/grit_rule.gni")

js_type_check("closure_compile") {
  deps = [
    ":descriptor_panel",
    ":devices_page",
    ":usb_internals",
  ]
}

js_library("usb_internals") {
  deps = [
    ":devices_page",
    "//chrome/browser/ui/webui/usb_internals:mojo_bindings_js_library_for_compile",
    "//ui/webui/resources/js:cr",
    "//ui/webui/resources/js:util",
    "//ui/webui/resources/js/cr/ui:tabs",
    "//ui/webui/resources/js/cr/ui:tree",
  ]
}

js_library("devices_page") {
  deps = [
    ":descriptor_panel",
    "//chrome/browser/ui/webui/usb_internals:mojo_bindings_js_library_for_compile",
    "//ui/webui/resources/js:cr",
  ]
}

js_library("descriptor_panel") {
  deps = [
    "//chrome/browser/ui/webui/usb_internals:mojo_bindings_js_library_for_compile",
    "//ui/webui/resources/js:cr",
  ]
}

grit("resources") {
  source = "resources.grd"

  # The .grd contains references to generated files.
  source_is_generated = true
  outputs = [
    "grit/usb_internals_resources.h",
    "usb_internals_resources.pak",
  ]
  output_dir = "$root_gen_dir/chrome"
  depfile_dir = target_gen_dir
  grit_flags = [
    "-E",
    "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir),
  ]
  deps = [
    "//chrome/browser/ui/webui/usb_internals:mojo_bindings_js",
  ]
}