forked from bazel-contrib/rules_python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsmacker_BUILD.bazel
More file actions
80 lines (77 loc) · 1.65 KB
/
smacker_BUILD.bazel
File metadata and controls
80 lines (77 loc) · 1.65 KB
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
74
75
76
77
78
79
80
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
filegroup(
name = "common_libs",
srcs = [
"alloc.h",
"api.h",
"array.h",
],
visibility = [":__subpackages__"],
)
go_library(
name = "go-tree-sitter",
srcs = [
"alloc.c",
"alloc.h",
"api.h",
"array.h",
"atomic.h",
"bindings.c",
"bindings.go",
"bindings.h",
"bits.h",
"clock.h",
"error_costs.h",
"get_changed_ranges.c",
"get_changed_ranges.h",
"host.h",
"iter.go",
"language.c",
"language.h",
"length.h",
"lexer.c",
"lexer.h",
"node.c",
"parser.c",
"parser.h",
"point.h",
"ptypes.h",
"query.c",
"reduce_action.h",
"reusable_node.h",
"stack.c",
"stack.h",
"subtree.c",
"subtree.h",
"test_grammar.go",
"tree.c",
"tree.h",
"tree_cursor.c",
"tree_cursor.h",
"umachine.h",
"unicode.h",
"urename.h",
"utf.h",
"utf16.h",
"utf8.h",
"wasm_store.c",
"wasm_store.h",
],
cgo = True,
importpath = "github.com/smacker/go-tree-sitter",
visibility = ["//visibility:public"],
)
go_library(
name = "python",
srcs = [
"python/binding.go",
"python/parser.c",
"python/parser.h",
"python/scanner.c",
":common_libs",
],
cgo = True,
importpath = "github.com/smacker/go-tree-sitter/python",
visibility = ["//visibility:public"],
deps = [":go-tree-sitter"],
)