forked from ApolloAuto/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
88 lines (80 loc) · 2.35 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
load("//tools:apollo_package.bzl", "apollo_cc_library", "apollo_cc_test", "apollo_component", "apollo_package")
load("//tools:cpplint.bzl", "cpplint")
load("//third_party/gpus:common.bzl", "gpu_library", "if_cuda", "if_rocm")
package(default_visibility = ["//visibility:public"])
apollo_cc_library(
name = "apollo_audio",
srcs = [
"common/audio_gflags.cc",
"common/audio_info.cc",
"common/message_process.cc",
"inference/direction_detection.cc",
"inference/moving_detection.cc",
"inference/siren_detection.cc",
],
hdrs = [
"common/audio_gflags.h",
"common/audio_info.h",
"common/message_process.h",
"inference/direction_detection.h",
"inference/moving_detection.h",
"inference/siren_detection.h",
],
linkopts = ["-fopenmp"],
deps = [
"//cyber",
"//modules/common/math",
"//modules/common_msgs/audio_msgs:audio_cc_proto",
"//modules/common_msgs/basic_msgs:geometry_cc_proto",
"//modules/drivers/microphone/proto:audio_cc_proto",
"//modules/drivers/microphone/proto:microphone_config_cc_proto",
"@com_github_gflags_gflags//:gflags",
"@com_github_jbeder_yaml_cpp//:yaml-cpp",
"@eigen",
"@fftw3",
] + ["@libtorch_gpu"],
)
apollo_component(
name = "libaudio_component.so",
srcs = ["audio_component.cc"],
hdrs = ["audio_component.h"],
copts = [
"-DMODULE_NAME=\\\"audio\\\"",
],
deps = [
":apollo_audio",
"//cyber",
"//modules/audio/proto:audio_conf_cc_proto",
"//modules/common/util:util_tool",
"//modules/common_msgs/basic_msgs:geometry_cc_proto",
"//modules/common_msgs/localization_msgs:localization_cc_proto",
],
)
filegroup(
name = "runtime_data",
srcs = glob([
"conf/**",
"dag/*.dag",
"launch/*.launch",
]),
)
apollo_cc_test(
name = "moving_detection_test",
size = "small",
srcs = ["inference/moving_detection_test.cc"],
deps = [
":apollo_audio",
"@com_google_googletest//:gtest_main",
],
)
apollo_cc_test(
name = "siren_detection_test",
size = "small",
srcs = ["inference/siren_detection_test.cc"],
deps = [
":apollo_audio",
"@com_google_googletest//:gtest_main",
],
)
apollo_package()
cpplint()