-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
40 lines (35 loc) · 884 Bytes
/
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
load("@rules_pkg//:pkg.bzl", "pkg_deb", "pkg_tar")
load("@com_github_google_rules_install//installer:def.bzl", "installer")
installer(
name = "install_starrun",
data = [":starrun"],
executable = True,
)
installer(
name = "install_stargrade_gtest",
data = [
"//stargrade/gtest:gradescope_test_listener",
"//stargrade/gtest:gradescope_test_main",
],
executable = False,
)
installer(
name = "install_stargrade_gtest_headers",
data = ["//stargrade/gtest:gradescope_test_listener.h"],
executable = False,
)
cc_binary(
name = "starrun",
srcs = ["starrun.cc"],
deps = [
"//stargrade/gradescope:gradescope_results",
"@abseil//absl/flags:flag",
"@abseil//absl/flags:parse",
],
)
pkg_tar(
name = "stargrade-bin",
srcs = [":starrun"],
mode = "0755",
package_dir = "/usr/bin",
)