summaryrefslogtreecommitdiff
path: root/deps/v8/build/fuchsia/fidlgen_js/BUILD.gn
blob: 4b2bb6400c56e2c3f5be51dd21caab355e504112 (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
57
58
59
60
61
62
63
# 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("//build/config/fuchsia/fidl_library.gni")
import("//testing/test.gni")

test("fidlgen_js_unittests") {
  testonly = true

  sources = [
    "test/fidlgen_js_unittest.cc",
  ]

  deps = [
    ":fidljstest",
    ":runtime",
    "//base/test:test_support",
    "//gin:gin_test",
    "//testing/gtest",
    "//v8",
  ]

  configs += [
    "//tools/v8_context_snapshot:use_v8_context_snapshot",
    "//v8:external_startup_data",
  ]

  data_deps = [
    "//tools/v8_context_snapshot:v8_context_snapshot",
  ]

  data = [
    "runtime/fidl.mjs",
  ]
}

static_library("runtime") {
  sources = [
    "runtime/zircon.cc",
    "runtime/zircon.h",
  ]

  deps = [
    "//base",
    "//gin",
    "//third_party/fuchsia-sdk/sdk:async",
    "//third_party/fuchsia-sdk/sdk:async_default",
    "//v8",
  ]
}

fidl_library("fidljstest") {
  testonly = true
  sources = [
    "test/simple.fidl",
  ]

  languages = [
    "cpp",
    "js",
  ]
}