summaryrefslogtreecommitdiff
path: root/chromium/ui/webui/resources/cr_elements/cr_drawer/BUILD.gn
blob: fa80a4450c4e4b25e8adbf2c211ac68616bbd99b (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
# 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") {
  deps = [ ":cr_drawer" ]
}

js_library("cr_drawer") {
  deps = [
    "//ui/webui/resources/js:assert",
    "//ui/webui/resources/js:util",
  ]
}

polymer_modulizer("cr_drawer") {
  js_file = "cr_drawer.js"
  html_file = "cr_drawer.html"
  html_type = "dom-module"
  auto_imports = [
    "ui/webui/resources/html/assert.html|assertNotReached",
    "ui/webui/resources/html/util.html|listenOnce",
  ]
}

js_type_check("closure_compile_module") {
  is_polymer3 = true
  deps = [ ":cr_drawer.m" ]
}

js_library("cr_drawer.m") {
  sources = [
    "$root_gen_dir/ui/webui/resources/cr_elements/cr_drawer/cr_drawer.m.js",
  ]
  deps = [
    "//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
    "//ui/webui/resources/js:assert.m",
    "//ui/webui/resources/js:util.m",
  ]
  extra_deps = [ ":cr_drawer_module" ]
}