summaryrefslogtreecommitdiff
path: root/chromium/ui/webui/resources/js/cr/BUILD.gn
blob: 3163c760db724409b656d92482b00a48695e5c3d (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
# 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/js_modulizer.gni")

js_type_check("closure_compile") {
  deps = [
    ":event_target",
    ":ui",
  ]
}

js_type_check("closure_compile_modules") {
  uses_js_modules = true
  deps = [
    ":event_target.m",
    ":ui.m",
  ]
}

js_library("event_target") {
  deps = [ "..:cr" ]
}

js_library("ui") {
  deps = [ "..:cr" ]
}

js_library("event_target.m") {
  sources = [ "$root_gen_dir/ui/webui/resources/js/cr/event_target.m.js" ]
  extra_deps = [ ":modulize_local" ]
}

js_library("ui.m") {
  sources = [ "$root_gen_dir/ui/webui/resources/js/cr/ui.m.js" ]
  extra_deps = [ ":modulize_local" ]
}

group("modulize") {
  public_deps = [
    ":modulize_local",
    "ui:modulize",
  ]
}

js_modulizer("modulize_local") {
  input_files = [
    "event_target.js",
    "ui.js",
  ]
}