-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathBUILD.bazel
58 lines (54 loc) · 1.34 KB
/
BUILD.bazel
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
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
# gazelle:exclude c-deps/or-tools
# gazelle:exclude c-deps/abseil-cpp
# gazelle:build_tags bazel
# gazelle:go_naming_convention import_alias
gazelle(
name = "gazelle",
prefix = "github.com/irfansharif/solver",
)
go_library(
name = "solver",
srcs = [
"constraint.go",
"doc.go",
"domain.go",
"interval.go",
"intvar.go",
"linearexpr.go",
"model.go",
"options.go",
"result.go",
],
importpath = "github.com/irfansharif/solver",
visibility = ["//visibility:public"],
deps = [
"//internal",
"//internal/pb",
"@com_github_dustin_go_humanize//:go-humanize",
],
)
go_test(
name = "solver_test",
srcs = [
"datadriven_test.go",
"domain_test.go",
"linearexpr_test.go",
"solver_test.go",
],
data = glob(["testdata/**"]),
embed = [":solver"],
deps = [
"//internal/testutils",
"//internal/testutils/bazel",
"//internal/testutils/parser/ast",
"@com_github_cockroachdb_datadriven//:datadriven",
"@com_github_stretchr_testify//require",
],
)
alias(
name = "go_default_library",
actual = ":solver",
visibility = ["//visibility:public"],
)