summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/management/BUILD.gn
blob: 4e27e412b9f1cf04c5dd473e596c4fa775b4d73d (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
# 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("//third_party/closure_compiler/compile_js.gni")
import("//tools/polymer/polymer.gni")

js_type_check("closure_compile") {
  is_polymer3 = true
  deps = [
    ":management_browser_proxy",
    ":management_ui",
  ]
}

js_library("management_ui") {
  deps = [
    "//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
    "//ui/webui/resources/js:i18n_behavior.m",
    "//ui/webui/resources/js:load_time_data.m",
    "//ui/webui/resources/js:web_ui_listener_behavior.m",
  ]
}

js_library("management_browser_proxy") {
  deps = [
    "//ui/webui/resources/js:cr.m",
  ]
}

polymer_modulizer("management_ui") {
  js_file = "management_ui.js"
  html_file = "management_ui.html"
  html_type = "v3-ready"
}

polymer_modulizer("icons") {
  js_file = "icons.js"
  html_file = "icons.html"
  html_type = "v3-ready"
}

group("polymer3_elements") {
  deps = [
    ":icons_module",
    ":management_ui_module",
  ]
}