forked from ankitects/anki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
39 lines (35 loc) · 859 Bytes
/
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
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
config_setting(
name = "release",
values = {
"compilation_mode": "opt",
},
)
genrule(
name = "buildinfo",
srcs = ["//:defs.bzl"],
outs = ["buildinfo.txt"],
cmd = select({
"release": "$(location //tools:buildinfo) $(location //:defs.bzl) bazel-out/stable-status.txt release > $@",
"//conditions:default": "$(location //tools:buildinfo) $(location //:defs.bzl) bazel-out/stable-status.txt devel > $@",
}),
stamp = 1,
tools = [
"//tools:buildinfo",
],
visibility = ["//visibility:public"],
)
pkg_tar(
name = "wheels",
srcs = [
"//pylib/anki:wheel",
"//qt/aqt:wheel",
],
mode = "0644",
tags = ["manual"],
)
exports_files([
"defs.bzl",
"package.json",
".prettierrc",
])