blob: f73f1f6f2acf09b87e074c3146d16634802ad2bc [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 Silvermaneeb62ca2013-09-11 15:08:03 -070027 '<(AOS)/atom_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': [
30 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:shared_mem',
31 ],
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 Silverman08661c72013-09-01 17:24:38 -070060 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:queue',
brians343bc112013-02-10 01:53:46 +000061 ],
62 'export_dependent_settings': [
Brian Silverman08661c72013-09-01 17:24:38 -070063 '<(AOS)/atom_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',
brians343bc112013-02-10 01:53:46 +0000140 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800141 'export_dependent_settings': [
142 '<(AOS)/common/messages/messages.gyp:aos_queues',
143 '<(AOS)/build/aos.gyp:logging',
144 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700145 'time',
Brian Silvermanf665d692013-02-17 22:11:39 -0800146 ],
brians343bc112013-02-10 01:53:46 +0000147 },
148 {
149 'target_name': 'queue_test',
150 'type': 'executable',
151 'sources': [
Brian Silverman598800f2013-05-09 17:08:42 -0700152 'queue_test.cc',
brians343bc112013-02-10 01:53:46 +0000153 ],
154 'dependencies': [
155 '<(EXTERNALS):gtest',
brians343bc112013-02-10 01:53:46 +0000156 'queue_testutils',
brians343bc112013-02-10 01:53:46 +0000157 'queue_test_queue',
Brian Silverman798c7782013-03-28 16:48:02 -0700158 '<(AOS)/common/util/util.gyp:thread',
Brian Silverman8d2e56e2013-09-23 17:55:03 -0700159 'die',
brians343bc112013-02-10 01:53:46 +0000160 ],
161 },
162 {
163 'target_name': 'type_traits_test',
164 'type': '<(aos_target)',
165 'sources': [
166 'type_traits_test.cpp',
167 ],
168 'dependencies': [
169 '<(EXTERNALS):gtest',
brians2fdfc072013-02-26 05:35:15 +0000170 ],
171 },
172 {
173 'target_name': 'gtest_prod',
174 'type': 'static_library',
175 'dependencies': [
176 '<(EXTERNALS):gtest_prod',
177 ],
178 'export_dependent_settings': [
179 '<(EXTERNALS):gtest_prod',
180 ],
181 },
182 {
183 'target_name': 'once',
184 'type': 'static_library',
185 'dependencies': [
186 '<(EXTERNALS):gtest_prod',
187 ],
188 'export_dependent_settings': [
189 '<(EXTERNALS):gtest_prod',
190 ],
191 },
192 {
193 'target_name': 'once_test',
194 'type': '<(aos_target)',
195 'sources': [
196 'once_test.cc',
197 ],
198 'dependencies': [
199 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700200 'once',
brians343bc112013-02-10 01:53:46 +0000201 ],
202 },
203 {
204 'target_name': 'time_test',
205 'type': '<(aos_target)',
206 'sources': [
207 'time_test.cc',
208 ],
209 'dependencies': [
210 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700211 'time',
212 '<(AOS)/build/aos.gyp:logging',
brians343bc112013-02-10 01:53:46 +0000213 ],
214 },
215 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800216 'target_name': 'die',
217 'type': 'static_library',
218 'sources': [
219 'die.cc',
220 ],
221 },
222 {
Brian Silverman08661c72013-09-01 17:24:38 -0700223 'target_name': 'condition',
224 'type': 'static_library',
225 'sources': [
226 '<(AOS)/atom_code/ipc_lib/condition.cc',
227 ],
228 'dependencies': [
229 'mutex',
230 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:aos_sync',
231 # TODO(aschuh): Fix this dependency loop by
232 # providing a logging interface.
233 # '<(AOS)/build/aos.gyp:logging',
234 ],
235 'export_dependent_settings': [
236 'mutex',
237 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:aos_sync',
238 ],
239 },
240 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800241 'target_name': 'mutex',
242 'type': 'static_library',
243 'conditions': [
244 ['OS=="crio"', {
245 'sources': [
246 '<(AOS)/crio/shared_libs/mutex.cpp',
247 ],
248 }, {
249 'sources': [
250 '<(AOS)/atom_code/ipc_lib/mutex.cpp',
251 ],
252 'dependencies': [
Brian Silverman08661c72013-09-01 17:24:38 -0700253 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:aos_sync',
Brian Silvermanf665d692013-02-17 22:11:39 -0800254 ],
255 'export_dependent_settings': [
Brian Silverman08661c72013-09-01 17:24:38 -0700256 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:aos_sync',
Brian Silvermanf665d692013-02-17 22:11:39 -0800257 ],
258 }],
259 ],
Brian Silverman598800f2013-05-09 17:08:42 -0700260 'dependencies': [
261 # TODO(aschuh): Fix this dependency loop by
262 # providing a logging interface.
263 # '<(AOS)/build/aos.gyp:logging',
264 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800265 },
266 {
brians343bc112013-02-10 01:53:46 +0000267 'target_name': 'mutex_test',
268 'type': '<(aos_target)',
269 'sources': [
270 'mutex_test.cpp',
271 ],
272 'dependencies': [
273 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700274 'mutex',
275 '<(AOS)/build/aos.gyp:logging',
Brian Silverman8d2e56e2013-09-23 17:55:03 -0700276 'die',
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',
293 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:core_lib',
Brian Silverman8d2e56e2013-09-23 17:55:03 -0700294 'die',
Brian Silverman797e71e2013-09-06 17:29:39 -0700295 ],
296 },
297 {
brians343bc112013-02-10 01:53:46 +0000298 'target_name': 'die_test',
299 'type': 'executable',
300 'sources': [
301 'die_test.cc',
302 ],
303 'dependencies': [
304 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700305 'die',
brians343bc112013-02-10 01:53:46 +0000306 ],
307 },
Brian Silverman66f079a2013-08-26 16:24:30 -0700308 {
309 'target_name': 'util',
310 'type': 'static_library',
311 'sources': [
312 'util.cc',
313 ],
314 },
brians343bc112013-02-10 01:53:46 +0000315 ],
316}