-
Notifications
You must be signed in to change notification settings - Fork 5
/
BUILD.bazel
78 lines (73 loc) · 2.2 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
load("@rules_haskell//haskell:defs.bzl", "haskell_library")
load("//third_party/haskell/hspec-discover:build_defs.bzl", "hspec_test")
load("//tools/project:build_defs.bzl", "project")
project(license = "gpl3-https")
haskell_library(
name = "c-linters",
srcs = glob(["src/Tokstyle/C/**/*.*hs"]),
ghcopts = ["-j4"],
src_strip_prefix = "src",
tags = ["no-cross"],
version = "0.0.9",
visibility = ["//visibility:public"],
deps = [
"//third_party/haskell:base",
"//third_party/haskell:containers",
"//third_party/haskell:language-c",
"//third_party/haskell:mtl",
"//third_party/haskell:parallel",
"//third_party/haskell:text",
],
)
haskell_library(
name = "hs-tokstyle",
srcs = glob(
["src/**/*.*hs"],
exclude = ["src/Tokstyle/C/**"],
),
ghcopts = ["-j4"],
src_strip_prefix = "src",
tags = ["no-cross"],
version = "0.0.9",
visibility = ["//visibility:public"],
deps = [
"//hs-cimple",
"//third_party/haskell:aeson",
"//third_party/haskell:array",
"//third_party/haskell:base",
"//third_party/haskell:bytestring",
"//third_party/haskell:casing",
"//third_party/haskell:containers",
"//third_party/haskell:data-fix",
"//third_party/haskell:deepseq",
"//third_party/haskell:edit-distance",
"//third_party/haskell:extra",
"//third_party/haskell:filepath",
"//third_party/haskell:groom",
"//third_party/haskell:language-c",
"//third_party/haskell:microlens",
"//third_party/haskell:microlens-th",
"//third_party/haskell:mtl",
"//third_party/haskell:parallel",
"//third_party/haskell:prettyprinter",
"//third_party/haskell:text",
],
)
hspec_test(
name = "testsuite",
size = "small",
deps = [
":c-linters",
":hs-tokstyle",
"//hs-cimple",
"//third_party/haskell:base",
"//third_party/haskell:hspec",
"//third_party/haskell:language-c",
"//third_party/haskell:text",
],
)
filegroup(
name = "headers",
srcs = glob(["include/**/*.h"]),
visibility = ["//visibility:public"],
)