-
Notifications
You must be signed in to change notification settings - Fork 5
/
BUILD
69 lines (61 loc) · 1.26 KB
/
BUILD
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
64
65
66
67
68
69
# Copyright (c) 2019 The NodeBinding Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
load("//bazel:node_binding.bzl", "node_binding")
load("//bazel:node_binding_cc.bzl", "node_binding_copts")
cc_library(
name = "calculator",
hdrs = ["calculator.h"],
)
cc_library(
name = "point",
hdrs = ["point.h"],
)
cc_library(
name = "rect",
hdrs = ["rect.h"],
deps = [":point"],
)
cc_library(
name = "calculator_js",
srcs = ["calculator_js.cc"],
hdrs = ["calculator_js.h"],
copts = node_binding_copts(),
deps = [
":calculator",
"//:node_binding",
],
)
cc_library(
name = "point_js",
srcs = ["point_js.cc"],
hdrs = ["point_js.h"],
copts = node_binding_copts(),
deps = [
":point",
"//:node_binding"
]
)
cc_library(
name = "rect_js",
srcs = ["rect_js.cc"],
hdrs = ["rect_js.h"],
copts = node_binding_copts(),
deps = [
":rect",
":point_js",
"//:node_binding"
]
)
node_binding(
name = "binding",
srcs = [
"binding.cc",
],
copts = node_binding_copts(),
deps = [
":calculator_js",
":point_js",
":rect_js",
],
)