aboutsummaryrefslogtreecommitdiff
path: root/mojo/public/js/BUILD.gn
blob: 0fae4b49b889e114c6553912eeca19c4d61b7b97 (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
# Copyright 2014 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.

interfaces_bindings_gen_dir = "$root_gen_dir/mojo/public/interfaces/bindings"

source_set("js") {
  sources = [
    "constants.cc",
    "constants.h",
  ]
}

group("bindings") {
  data = [
    "$interfaces_bindings_gen_dir/interface_control_messages.mojom.js",
    "bindings.js",
    "buffer.js",
    "codec.js",
    "connector.js",
    "core.js",
    "interface_types.js",
    "lib/control_message_handler.js",
    "lib/control_message_proxy.js",
    "router.js",
    "support.js",
    "threading.js",
    "unicode.js",
    "validator.js",
  ]

  deps = [
    "//mojo/public/interfaces/bindings:bindings__generator",
  ]
}

group("tests") {
  testonly = true

  data = [
    "//mojo/public/interfaces/bindings/tests/data/validation/",
    "tests/codec_unittest.js",
    "tests/connection_unittest.js",
    "tests/core_unittest.js",
    "tests/interface_ptr_unittest.js",
    "tests/sample_service_unittest.js",
    "tests/struct_unittest.js",
    "tests/union_unittest.js",
    "tests/validation_test_input_parser.js",
    "tests/validation_unittest.js",
  ]

  public_deps = [
    ":bindings",
  ]
}