Skip to content

Commit 63f89cd

Browse files
committed
Update BUILD files to fully work
1 parent cfa9bdf commit 63f89cd

File tree

23 files changed

+34
-0
lines changed

23 files changed

+34
-0
lines changed

BUILD.bazel

+10
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ load("@gazelle//:def.bzl", "gazelle")
44
# gazelle:prefix github.com/smacker/go-tree-sitter
55
gazelle(name = "gazelle")
66

7+
filegroup(
8+
name = "common_libs",
9+
srcs = [
10+
"alloc.h",
11+
"api.h",
12+
"array.h",
13+
],
14+
visibility = [":__subpackages__"],
15+
)
16+
717
go_library(
818
name = "go-tree-sitter",
919
srcs = [

bash/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/bash",

cpp/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/cpp",

csharp/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
copts = ["-Wno-trigraphs"],

css/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/css",

cue/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/cue",

dockerfile/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/dockerfile",

elixir/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/elixir",

elm/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
cxxopts = ["-std=gnu++11"],

groovy/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/groovy",

hcl/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/hcl",

html/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ go_library(
88
"parser.h",
99
"scanner.c",
1010
"tag.h",
11+
"//:common_libs",
1112
],
1213
cgo = True,
1314
importpath = "github.com/smacker/go-tree-sitter/html",

javascript/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/javascript",

kotlin/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/kotlin",

lua/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/lua",

markdown/tree-sitter-markdown-inline/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/markdown/tree-sitter-markdown-inline",

markdown/tree-sitter-markdown/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/markdown/tree-sitter-markdown",

php/BUILD.bazel

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ go_library(
88
"parser.h",
99
"scanner.c",
1010
"scanner.h",
11+
"tree_sitter/alloc.h",
12+
"tree_sitter/array.h",
13+
"tree_sitter/parser.h",
1114
],
1215
cgo = True,
1316
importpath = "github.com/smacker/go-tree-sitter/php",

python/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/python",

ruby/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/ruby",

rust/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ go_library(
77
"parser.c",
88
"parser.h",
99
"scanner.c",
10+
"//:common_libs",
1011
],
1112
cgo = True,
1213
importpath = "github.com/smacker/go-tree-sitter/rust",

scala/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ go_library(
88
"parser.h",
99
"scanner.c",
1010
"stack.h",
11+
"//:common_libs",
1112
],
1213
cgo = True,
1314
importpath = "github.com/smacker/go-tree-sitter/scala",

sql/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ go_library(
66
"binding.go",
77
"parser.c",
88
"scanner.c",
9+
"tree_sitter/parser.h",
910
],
1011
cgo = True,
1112
importpath = "github.com/smacker/go-tree-sitter/sql",

0 commit comments

Comments
 (0)