-
Notifications
You must be signed in to change notification settings - Fork 9
/
BUILD
73 lines (63 loc) · 1.25 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
70
71
72
73
# Uses of Bazel build rules for FFIG.
load(
"//:ffig.bzl",
"ffig_c_library",
"ffig_csharp_src",
"ffig_py_src",
"ffig_ruby_src",
"ffig_swift_src",
)
filegroup(
name = "ffig_headers",
srcs = glob(["ffig/include/**/*.h"]),
)
cc_library(
name = "libffig",
hdrs = glob(["ffig/include/ffig/*.h"]),
)
py_binary(
name = "ffig_py",
srcs = glob(["ffig/**/*.py"]),
data = glob([
"ffig/**/*.tmpl",
"ffig/**/*.macros",
"ffig/**/*.h",
]),
main = "__main__.py",
)
FFIG_C_OPTS = [
"-Itests/input",
"-Iffig/include",
"-std=c++14",
"-DShape_c_EXPORTS",
]
ffig_c_library(
name = "Shape",
srcs = ["tests/input/Shape.h"],
copts = FFIG_C_OPTS,
module = "Shape",
)
ffig_csharp_src(
name = "Shape.net.src",
srcs = ["tests/input/Shape.h"],
copts = FFIG_C_OPTS,
module = "Shape",
)
ffig_py_src(
name = "Shape.py.src",
srcs = ["tests/input/Shape.h"],
copts = FFIG_C_OPTS,
module = "shape",
)
ffig_swift_src(
name = "Shape.swift.src",
srcs = ["tests/input/Shape.h"],
copts = FFIG_C_OPTS,
module = "Shape",
)
ffig_ruby_src(
name = "Shape.rb.src",
srcs = ["tests/input/Shape.h"],
copts = FFIG_C_OPTS,
module = "Shape",
)