blob: 4c2b684f584ec261de48d6705e9e12f9ac5949fa [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001{
2 'targets': [
3 {
4 'target_name': 'queue_test_queue',
5 'type': 'static_library',
6 'sources': [
7 '<(AOS)/common/test_queue.q',
8 ],
9 'variables': {
10 'header_path': 'aos/common',
11 },
12 'dependencies': [
13 '<(AOS)/common/common.gyp:queues',
14 ],
15 'includes': ['../build/queues.gypi'],
16 },
17 {
18 'target_name': 'queue_testutils',
19 'type': 'static_library',
20 'sources': [
21 'queue_testutils.cc',
22 ],
23 'dependencies': [
Brian Silvermanb3616972013-03-05 19:58:10 -080024 '<(AOS)/build/aos.gyp:logging',
25 'once',
26 '<(EXTERNALS):gtest',
Brian Silverman14fd0fb2014-01-14 21:42:01 -080027 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:shared_mem',
brians343bc112013-02-10 01:53:46 +000028 ],
Brian Silvermaneeb62ca2013-09-11 15:08:03 -070029 'export_dependent_settings': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080030 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:shared_mem',
Brian Silvermaneeb62ca2013-09-11 15:08:03 -070031 ],
brians343bc112013-02-10 01:53:46 +000032 },
33 {
34 'target_name': 'time',
35 'type': 'static_library',
36 'sources': [
37 'time.cc'
38 ],
39 'dependencies': [
Brian Silverman458b6e62013-03-01 18:09:21 -080040 # TODO(aschuh): Fix this dependency loop by
41 # providing a logging interface.
42 # '<(AOS)/build/aos.gyp:logging',
Brian Silverman598800f2013-05-09 17:08:42 -070043 'mutex',
brians343bc112013-02-10 01:53:46 +000044 ],
45 },
46 {
brians343bc112013-02-10 01:53:46 +000047 'target_name': 'queues',
48 'type': 'static_library',
49 'sources': [
50 'queue.cc',
51 ],
52 'conditions': [
53 ['OS=="crio"', {
54 'dependencies': [
55 '<(EXTERNALS):WPILib',
56 ],
57 },
58 {
59 'dependencies': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080060 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:queue',
brians343bc112013-02-10 01:53:46 +000061 ],
62 'export_dependent_settings': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -080063 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:queue',
brians343bc112013-02-10 01:53:46 +000064 ],
65 }]
66 ],
67 'dependencies': [
Brian Silverman3204dd82013-03-12 18:42:01 -070068 'time',
brians343bc112013-02-10 01:53:46 +000069 ],
70 'export_dependent_settings': [
Brian Silverman3204dd82013-03-12 18:42:01 -070071 'time',
brians343bc112013-02-10 01:53:46 +000072 ],
73 },
74 {
Brian Silverman598800f2013-05-09 17:08:42 -070075 'target_name': 'scoped_fd',
76 'type': 'static_library',
77 'sources': [
78 # 'scoped_fd.h'
79 ],
80 'dependencies': [
81 '<(AOS)/build/aos.gyp:logging',
82 ],
83 'export_dependent_settings': [
84 '<(AOS)/build/aos.gyp:logging',
85 ],
86 },
87 {
brians343bc112013-02-10 01:53:46 +000088 'target_name': 'control_loop_queues',
89 'type': 'static_library',
90 'sources': [ '<(AOS)/common/control_loop/control_loops.q' ],
91 'variables': {
92 'header_path': 'aos/common/control_loop',
93 },
94 'dependencies': [
95 '<(AOS)/common/common.gyp:queues',
96 ],
97 'includes': ['../build/queues.gypi'],
98 },
99 {
100 'target_name': 'timing_so',
101 'type': 'shared_library',
102 'sources': [
103 'control_loop/Timing.cpp'
104 ],
105 'variables': {'no_rsync': 1},
106 'dependencies': [
brians343bc112013-02-10 01:53:46 +0000107 ],
108 'direct_dependent_settings': {
109 'variables': {
110 'jni_libs': [
111 'timing_so',
112 ],
113 },
114 },
115 'export_dependent_settings': [
brians343bc112013-02-10 01:53:46 +0000116 ],
117 },
118 {
119 'target_name': 'timing',
120 'type': 'static_library',
121 'sources': [
122 'control_loop/Timing.cpp'
123 ],
124 'dependencies': [
brians343bc112013-02-10 01:53:46 +0000125 '<(AOS)/build/aos.gyp:logging',
Brian Silverman598800f2013-05-09 17:08:42 -0700126 'time',
brians343bc112013-02-10 01:53:46 +0000127 ],
128 },
129 {
130 'target_name': 'controls',
131 'type': 'static_library',
Brian Silvermanf665d692013-02-17 22:11:39 -0800132 'sources': [
Brian Silverman15ca9852013-03-17 18:24:15 -0700133 'control_loop/ControlLoop.cc',
Brian Silvermanf665d692013-02-17 22:11:39 -0800134 ],
brians343bc112013-02-10 01:53:46 +0000135 'dependencies': [
136 '<(AOS)/common/messages/messages.gyp:aos_queues',
137 '<(AOS)/build/aos.gyp:logging',
138 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700139 'time',
Brian Silverman1e869f32013-10-25 18:00:20 -0700140 'control_loop_queues',
brians343bc112013-02-10 01:53:46 +0000141 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800142 'export_dependent_settings': [
143 '<(AOS)/common/messages/messages.gyp:aos_queues',
144 '<(AOS)/build/aos.gyp:logging',
145 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700146 'time',
Brian Silverman1e869f32013-10-25 18:00:20 -0700147 'control_loop_queues',
Brian Silvermanf665d692013-02-17 22:11:39 -0800148 ],
brians343bc112013-02-10 01:53:46 +0000149 },
150 {
151 'target_name': 'queue_test',
152 'type': 'executable',
153 'sources': [
Brian Silverman598800f2013-05-09 17:08:42 -0700154 'queue_test.cc',
brians343bc112013-02-10 01:53:46 +0000155 ],
156 'dependencies': [
157 '<(EXTERNALS):gtest',
brians343bc112013-02-10 01:53:46 +0000158 'queue_testutils',
brians343bc112013-02-10 01:53:46 +0000159 'queue_test_queue',
Brian Silverman798c7782013-03-28 16:48:02 -0700160 '<(AOS)/common/util/util.gyp:thread',
brians343bc112013-02-10 01:53:46 +0000161 ],
162 },
163 {
164 'target_name': 'type_traits_test',
165 'type': '<(aos_target)',
166 'sources': [
167 'type_traits_test.cpp',
168 ],
169 'dependencies': [
170 '<(EXTERNALS):gtest',
brians2fdfc072013-02-26 05:35:15 +0000171 ],
172 },
173 {
174 'target_name': 'gtest_prod',
175 'type': 'static_library',
176 'dependencies': [
177 '<(EXTERNALS):gtest_prod',
178 ],
179 'export_dependent_settings': [
180 '<(EXTERNALS):gtest_prod',
181 ],
182 },
183 {
184 'target_name': 'once',
185 'type': 'static_library',
186 'dependencies': [
187 '<(EXTERNALS):gtest_prod',
188 ],
189 'export_dependent_settings': [
190 '<(EXTERNALS):gtest_prod',
191 ],
192 },
193 {
194 'target_name': 'once_test',
195 'type': '<(aos_target)',
196 'sources': [
197 'once_test.cc',
198 ],
199 'dependencies': [
200 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700201 'once',
brians343bc112013-02-10 01:53:46 +0000202 ],
203 },
204 {
205 'target_name': 'time_test',
206 'type': '<(aos_target)',
207 'sources': [
208 'time_test.cc',
209 ],
210 'dependencies': [
211 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700212 'time',
213 '<(AOS)/build/aos.gyp:logging',
brians343bc112013-02-10 01:53:46 +0000214 ],
215 },
216 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800217 'target_name': 'die',
218 'type': 'static_library',
219 'sources': [
220 'die.cc',
221 ],
222 },
223 {
Brian Silverman08661c72013-09-01 17:24:38 -0700224 'target_name': 'condition',
225 'type': 'static_library',
226 'sources': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -0800227 '<(AOS)/linux_code/ipc_lib/condition.cc',
Brian Silverman08661c72013-09-01 17:24:38 -0700228 ],
229 'dependencies': [
230 'mutex',
Brian Silverman14fd0fb2014-01-14 21:42:01 -0800231 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:aos_sync',
Brian Silverman08661c72013-09-01 17:24:38 -0700232 # TODO(aschuh): Fix this dependency loop by
233 # providing a logging interface.
234 # '<(AOS)/build/aos.gyp:logging',
235 ],
236 'export_dependent_settings': [
237 'mutex',
Brian Silverman14fd0fb2014-01-14 21:42:01 -0800238 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:aos_sync',
Brian Silverman08661c72013-09-01 17:24:38 -0700239 ],
240 },
241 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800242 'target_name': 'mutex',
243 'type': 'static_library',
244 'conditions': [
245 ['OS=="crio"', {
246 'sources': [
247 '<(AOS)/crio/shared_libs/mutex.cpp',
248 ],
249 }, {
250 'sources': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -0800251 '<(AOS)/linux_code/ipc_lib/mutex.cpp',
Brian Silvermanf665d692013-02-17 22:11:39 -0800252 ],
253 'dependencies': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -0800254 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:aos_sync',
Brian Silvermanf665d692013-02-17 22:11:39 -0800255 ],
256 'export_dependent_settings': [
Brian Silverman14fd0fb2014-01-14 21:42:01 -0800257 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:aos_sync',
Brian Silvermanf665d692013-02-17 22:11:39 -0800258 ],
259 }],
260 ],
Brian Silverman598800f2013-05-09 17:08:42 -0700261 'dependencies': [
262 # TODO(aschuh): Fix this dependency loop by
263 # providing a logging interface.
264 # '<(AOS)/build/aos.gyp:logging',
265 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800266 },
267 {
brians343bc112013-02-10 01:53:46 +0000268 'target_name': 'mutex_test',
269 'type': '<(aos_target)',
270 'sources': [
271 'mutex_test.cpp',
272 ],
273 'dependencies': [
274 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700275 'mutex',
276 '<(AOS)/build/aos.gyp:logging',
brians343bc112013-02-10 01:53:46 +0000277 ],
278 },
279 {
Brian Silverman797e71e2013-09-06 17:29:39 -0700280 'target_name': 'condition_test',
281 'type': 'executable',
282 'sources': [
283 'condition_test.cc',
284 ],
285 'dependencies': [
286 '<(EXTERNALS):gtest',
287 'condition',
288 '<(AOS)/common/util/util.gyp:thread',
289 'time',
290 'mutex',
291 '<(AOS)/build/aos.gyp:logging',
292 'queue_testutils',
Brian Silverman14fd0fb2014-01-14 21:42:01 -0800293 '<(AOS)/linux_code/ipc_lib/ipc_lib.gyp:core_lib',
Brian Silverman797e71e2013-09-06 17:29:39 -0700294 ],
295 },
296 {
brians343bc112013-02-10 01:53:46 +0000297 'target_name': 'die_test',
298 'type': 'executable',
299 'sources': [
300 'die_test.cc',
301 ],
302 'dependencies': [
303 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700304 'die',
brians343bc112013-02-10 01:53:46 +0000305 ],
306 },
Brian Silverman66f079a2013-08-26 16:24:30 -0700307 {
308 'target_name': 'util',
309 'type': 'static_library',
310 'sources': [
311 'util.cc',
312 ],
313 },
brians343bc112013-02-10 01:53:46 +0000314 ],
315}