-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUILD
112 lines (92 loc) · 1.98 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# load("@python_dev_deps//:requirements.bzl", test_entry_point = "entry_point")
# load("@rules_python//python/entry_points:py_console_script_binary.bzl", "py_console_script_binary")
package(
default_visibility = ["//visibility:public"],
)
exports_files(["pytest.ini"])
# filegroup(
# # gather all the data for pytest binary to work
# name = "_pytest",
# srcs = [
# test_entry_point("pytest"),
# "//:pytest.ini",
# ],
# )
# filegroup(
# name = "_ruff",
# srcs = [
# devtools_entry_point("ruff"),
# ],
# )
filegroup(
name = "ffmpeg-amd64",
srcs = glob(["vendor/ffmpeg/amd/**/*"]),
)
filegroup(
name = "ffmpeg-osx",
srcs = glob(["vendor/ffmpeg/osx/**/*"]),
)
filegroup(
name = "youtube-dl",
srcs = glob(["vendor/youtube-dl/**/*"]),
)
# py_console_script_binary(
# name = "ruff",
# pkg = "@python_deps_v1//ruff",
# )
# py_console_script_binary(
# name = "pytest",
# pkg = "@python_dev_deps//pytest:pkg",
# )
# alias(
# name = "pytest",
# actual = ":_pytest",
# )
# alias(
# name = "binpytest",
# actual = test_entry_point("pytest"),
# tags = ["local"],
# )
# filegroup(
# name = "_mypy",
# srcs = [
# devtools_entry_point("mypy"),
# ],
# )
# alias(
# name = "mypy",
# actual = devtools_entry_point("mypy"),
# tags = ["local"],
# )
config_setting(
name = "osx_build",
constraint_values = [
":osx",
],
)
constraint_setting(name = "os")
constraint_value(
name = "osx",
constraint_setting = "os",
)
constraint_value(
name = "linux",
constraint_setting = "os",
)
platform(
name = "osx_platform",
constraint_values = [
":osx",
],
)
# # + select({
# # "//:osx_build": ["vendor/ffmpeg/osx/ffmpeg"],
# # "//conditions:default": ["vendor/ffmpeg/amd/ffmpeg"],
# # }),
# # config_setting(
# # name = "linux_build",
# # constraint_values = [
# # ":white",
# # ":metamorphic",
# # ],
# # )