summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/welcome/ntp_background/BUILD.gn
blob: 09daeacfd151520061e05ea2fdb5c87aa0c69df2 (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
# 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/polymer/polymer.gni")
js_type_check("closure_compile") {
  is_polymer3 = true
  closure_flags = default_closure_args + [
                    "js_module_root=../../chrome/browser/resources/welcome/",
                    "js_module_root=gen/chrome/browser/resources/welcome/",
                  ]
  deps = [
    ":ntp_background_metrics_proxy",
    ":ntp_background_proxy",
    ":nux_ntp_background",
  ]
}

js_library("ntp_background_proxy") {
  deps = [
    ":ntp_background_metrics_proxy",
    "//ui/webui/resources/js:cr.m",
  ]
  externs_list = [ "$externs_path/chrome_send.js" ]
}

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

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

js_library("nux_ntp_background") {
  deps = [
    ":ntp_background_metrics_proxy",
    ":ntp_background_proxy",
    "../:navigation_behavior",
    "../shared:nux_types",
    "//third_party/polymer/v3_0/components-chromium/polymer:polymer_bundled",
    "//ui/webui/resources/js:cr.m",
    "//ui/webui/resources/js:i18n_behavior.m",
    "//ui/webui/resources/js:util.m",
  ]
}