-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD.bazel
43 lines (39 loc) · 1.02 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
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("@rules_haskell//haskell:defs.bzl", "haskell_library")
load("//tools/project:build_defs.bzl", "project")
project(license = "gpl3-https")
cc_library(
name = "hsbracket",
srcs = ["src/hsbracket.c"],
tags = ["no-cross"],
deps = ["//third_party/haskell:rts"],
alwayslink = True,
)
haskell_library(
name = "c-toxcore-hs",
srcs = ["src/Network/Tox/CExport/CryptoCore.hs"],
src_strip_prefix = "src",
tags = ["no-cross"],
visibility = ["//tools/haskell:__pkg__"],
deps = [
":hsbracket",
"//hs-toxcore",
"//third_party/haskell:base",
"//third_party/haskell:bytestring",
"//third_party/haskell:monad-validate",
"//third_party/haskell:random",
"//third_party/haskell:saltine",
],
)
cc_test(
name = "test",
size = "small",
srcs = [
"test/crypto_core.h",
"test/test-program.c",
],
tags = ["no-cross"],
deps = [
":c-toxcore-hs",
],
)