forked from UBC-Thunderbots/Software
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
41 lines (37 loc) · 1.05 KB
/
Copy pathBUILD
File metadata and controls
41 lines (37 loc) · 1.05 KB
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
load("@simulated_tests_deps//:requirements.bzl", "requirement")
package(default_visibility = ["//visibility:public"])
# We force linking for all plays so that the static variables required for the
# "factory" design pattern to work are linked in
# https://www.bfilipek.com/2018/02/static-vars-static-lib.html
cc_library(
name = "offense_play",
srcs = [
"offense_play.cpp",
"offense_play_fsm.cpp",
],
hdrs = [
"offense_play.h",
"offense_play_fsm.h",
],
deps = [
"//shared:constants",
"//software/ai/hl/stp/play",
"//software/ai/hl/stp/play/defense:defense_play",
"//software/ai/hl/stp/play/shoot_or_pass:shoot_or_pass_play",
"//software/logger",
"//software/util/generic_factory",
"@sml",
],
alwayslink = True,
)
py_test(
name = "offense_play_test",
srcs = [
"offense_play_test.py",
],
deps = [
"//software:conftest",
"//software/simulated_tests/validation:validations",
requirement("pytest"),
],
)