-
Notifications
You must be signed in to change notification settings - Fork 11
/
BUILD
162 lines (148 loc) · 3.65 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
package(default_visibility = ["//visibility:public"])
# Default target: include all messages and supporting code.
cc_library(
name = "fusion_engine_client",
deps = [
":core",
":messages",
":parsers",
":rtcm",
],
)
# Support for building a shared library if desired.
cc_binary(
name = "libfusion_engine_client.so",
linkshared = True,
deps = [
":fusion_engine_client",
],
)
# Core navigation solution support functionality.
cc_library(
name = "core",
deps = [
":core_headers",
":crc",
],
)
################################################################################
# Message Definitions
################################################################################
# Message definition headers only (all message types).
cc_library(
name = "messages",
deps = [
":core_headers",
":ros_support",
],
)
# Core navigation solution message definitions.
cc_library(
name = "core_headers",
hdrs = [
"src/point_one/fusion_engine/messages/configuration.h",
"src/point_one/fusion_engine/messages/control.h",
"src/point_one/fusion_engine/messages/core.h",
"src/point_one/fusion_engine/messages/defs.h",
"src/point_one/fusion_engine/messages/device.h",
"src/point_one/fusion_engine/messages/fault_control.h",
"src/point_one/fusion_engine/messages/gnss_corrections.h",
"src/point_one/fusion_engine/messages/measurements.h",
"src/point_one/fusion_engine/messages/signal_defs.h",
"src/point_one/fusion_engine/messages/solution.h",
],
deps = [
":common",
":data_version",
],
)
# STA5635 RF front-end message definitions.
cc_library(
name = "sta5635",
hdrs = [
"src/point_one/fusion_engine/messages/sta5635.h",
],
deps = [
":core_headers",
],
)
# ROS translation message definitions.
cc_library(
name = "ros_support",
hdrs = [
"src/point_one/fusion_engine/messages/ros.h",
],
deps = [
":core_headers",
],
)
################################################################################
# Support Functionality
################################################################################
# Common support code.
cc_library(
name = "common",
srcs = [
"src/point_one/fusion_engine/common/logging.cc",
],
hdrs = [
"src/point_one/fusion_engine/common/logging.h",
"src/point_one/fusion_engine/common/portability.h",
"src/point_one/fusion_engine/common/version.h",
],
includes = ["src"],
)
# Message encode/decode support.
cc_library(
name = "parsers",
srcs = [
"src/point_one/fusion_engine/parsers/fusion_engine_framer.cc",
],
hdrs = [
"src/point_one/fusion_engine/parsers/fusion_engine_framer.h",
],
deps = [
":core_headers",
":crc",
],
)
# CRC support.
cc_library(
name = "crc",
srcs = [
"src/point_one/fusion_engine/messages/crc.cc",
],
hdrs = [
"src/point_one/fusion_engine/messages/crc.h",
],
deps = [
":core_headers",
],
)
# Data versioning support.
cc_library(
name = "data_version",
srcs = [
"src/point_one/fusion_engine/messages/data_version.cc",
],
hdrs = [
"src/point_one/fusion_engine/messages/data_version.h",
],
includes = ["src"],
deps = [
":common",
],
)
# Message encode/decode support.
cc_library(
name = "rtcm",
srcs = [
"src/point_one/rtcm/rtcm_framer.cc",
],
hdrs = [
"src/point_one/rtcm/rtcm_framer.h",
],
deps = [
":common",
],
)