summaryrefslogtreecommitdiffstats
path: root/mojo/edk/js/BUILD.gn
blob: 9a066d33611e1fcc2fe2f8fb7474a6c1b6917c17 (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.

import("../mojo_edk.gni")

mojo_edk_source_set("js") {
  sources = [
    "core.cc",
    "core.h",
    "drain_data.cc",
    "drain_data.h",
    "handle.cc",
    "handle.h",
    "handle_close_observer.h",
    "mojo_runner_delegate.cc",
    "mojo_runner_delegate.h",
    "support.cc",
    "support.h",
    "threading.cc",
    "threading.h",
    "waiting_callback.cc",
    "waiting_callback.h",
  ]

  public_deps = [
    "//base",
    "//gin",
    "//v8",
  ]

  mojo_sdk_deps = [
    "mojo/public/cpp/environment",
    "mojo/public/cpp/system",
  ]
}

mojo_edk_source_set("js_unittests") {
  testonly = true
  sources = [
    "handle_unittest.cc",
  ]

  deps = [
    "//testing/gtest",
  ]

  mojo_edk_deps = [
    "mojo/edk/js",
    "mojo/edk/test:test_support",
  ]

  mojo_sdk_deps = [
    "mojo/public/cpp/system",
  ]
}