-
Notifications
You must be signed in to change notification settings - Fork 15
/
BUILD
95 lines (86 loc) · 1.85 KB
/
BUILD
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
package(default_visibility = ["//visibility:public"])
pkg_tar(
name = "spleeter-bin",
srcs = [
"//application:spleeter",
],
mode = "0647",
package_dir = "bin",
tags = ["manual"],
)
pkg_tar(
name = "spleeter-include",
srcs = [],
mode = "0644",
package_dir = "include",
tags = ["manual"],
deps = [
"//spleeter:includes",
"//spleeter/argument_parser:includes",
"//spleeter/audio:includes",
"//spleeter/datatypes:includes",
"//spleeter/inference_engine:includes",
"//spleeter/logging:includes",
],
)
pkg_tar(
name = "spleeter-lib",
srcs = [
"//spleeter",
"//spleeter/argument_parser",
"//spleeter/audio",
"//spleeter/datatypes",
"//spleeter/inference_engine",
"//spleeter/logging",
],
mode = "0644",
package_dir = "lib",
tags = ["manual"],
)
pkg_tar(
name = "spleeter-data",
srcs = [
"@audio_example//file",
],
mode = "0644",
package_dir = "data",
tags = ["manual"],
)
pkg_tar(
name = "spleeter-model",
srcs = [
"@model//:5stems",
],
mode = "0644",
package_dir = "model",
tags = ["manual"],
)
filegroup(
name = "spleeter-third_party_files",
srcs = glob(["third_party/**/*"]),
)
pkg_tar(
name = "spleeter-third_party",
srcs = [
":spleeter-third_party_files",
],
mode = "0644",
package_dir = "third_party",
tags = ["manual"],
)
pkg_tar(
name = "spleeter-dev",
testonly = True,
extension = "tar.gz",
package_dir = "/spleeter",
strip_prefix = "/",
tags = ["manual"],
deps = [
":spleeter-bin",
":spleeter-data",
":spleeter-include",
":spleeter-lib",
":spleeter-third_party",
],
)