forked from xbee/go-toxcore
-
Notifications
You must be signed in to change notification settings - Fork 24
/
BUILD.bazel
46 lines (43 loc) · 1.12 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
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("//tools/project:build_defs.bzl", "project")
project(license = "gpl3-https")
go_library(
name = "go_default_library",
srcs = [
"c.go",
"const.go",
"const_auto.go",
"group.go",
"group_legacy.go",
"hooks.go",
"options.go",
"tox.go",
"toxav.go",
"toxencryptsave.go",
"userdata.go",
"userdata_legacy.go",
"utils.go",
"yuv2rgb.c",
],
cdeps = ["//c-toxcore"],
cgo = True,
copts = ["-g -O2 -std=c99 -Wall"],
importpath = "github.com/TokTok/go-toxcore-c",
visibility = ["//visibility:public"],
deps = [
"@com_github_sasha_s_go_deadlock//:go_default_library",
"@com_github_streamrail_concurrent_map//:go_default_library",
],
)
go_test(
name = "go_default_test",
size = "small",
srcs = [
"group_intern_test.go",
"tox_test.go",
],
args = ["-test.parallel 50"],
data = ["tox_test.go"],
embed = [":go_default_library"],
importpath = "github.com/TokTok/go-toxcore-c",
)