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
55 lines (50 loc) · 1.5 KB
/
Copy pathBUILD
File metadata and controls
55 lines (50 loc) · 1.5 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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 = "ball_placement_play",
srcs = [
"ball_placement_play.cpp",
"ball_placement_play_fsm.cpp",
],
hdrs = [
"ball_placement_play.h",
"ball_placement_play_fsm.h",
],
deps = [
"//proto/message_translation:tbots_protobuf",
"//shared:constants",
"//software/ai/evaluation:possession",
"//software/ai/hl/stp/play",
"//software/ai/hl/stp/tactic/dribble:dribble_tactic",
"//software/ai/hl/stp/tactic/move:move_tactic",
"//software/ai/passing:eighteen_zone_pitch_division",
"//software/logger",
"//software/util/generic_factory",
"@sml",
],
alwayslink = True,
)
py_test(
name = "ball_placement_play_test",
timeout = "long",
srcs = [
"ball_placement_play_test.py",
],
deps = [
"//software:conftest",
"//software/simulated_tests/validation:validations",
requirement("pytest"),
],
)
cc_test(
name = "ball_placement_play_fsm_test",
srcs = ["ball_placement_play_fsm_test.cpp"],
deps = [
":ball_placement_play",
"//shared/test_util:tbots_gtest_main",
"//software/test_util",
],
)