forked from ApolloAuto/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
54 lines (47 loc) · 1.06 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
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
load("//tools/install:install.bzl", "install")
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "audio_component_lib",
srcs = ["audio_component.cc"],
hdrs = ["audio_component.h"],
copts = [
"-DMODULE_NAME=\\\"audio\\\"",
],
deps = [
"//cyber",
"//modules/audio/common:message_process",
"//modules/localization/proto:localization_cc_proto",
],
alwayslink = True,
)
cc_binary(
name = "libaudio_component.so",
linkshared = True,
linkstatic = False,
deps = [":audio_component_lib"],
)
filegroup(
name = "runtime_data",
srcs = glob([
"conf/**",
"dag/*.dag",
"launch/*.launch",
]),
)
# Data->Models:
# modules/audio/data/torch_siren_detection_model.pt
install(
name = "install",
data = [
":runtime_data",
],
targets = [
":libaudio_component.so",
],
deps = [
"//cyber:install",
],
)
cpplint()