blob: f3b4e6962b8390a07faf9a5759f2bf306c72793c [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',
brians343bc112013-02-10 01:53:46 +0000159 ],
160 },
161 {
162 'target_name': 'type_traits_test',
163 'type': '<(aos_target)',
164 'sources': [
165 'type_traits_test.cpp',
166 ],
167 'dependencies': [
168 '<(EXTERNALS):gtest',
brians2fdfc072013-02-26 05:35:15 +0000169 ],
170 },
171 {
172 'target_name': 'gtest_prod',
173 'type': 'static_library',
174 'dependencies': [
175 '<(EXTERNALS):gtest_prod',
176 ],
177 'export_dependent_settings': [
178 '<(EXTERNALS):gtest_prod',
179 ],
180 },
181 {
182 'target_name': 'once',
183 'type': 'static_library',
184 'dependencies': [
185 '<(EXTERNALS):gtest_prod',
186 ],
187 'export_dependent_settings': [
188 '<(EXTERNALS):gtest_prod',
189 ],
190 },
191 {
192 'target_name': 'once_test',
193 'type': '<(aos_target)',
194 'sources': [
195 'once_test.cc',
196 ],
197 'dependencies': [
198 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700199 'once',
brians343bc112013-02-10 01:53:46 +0000200 ],
201 },
202 {
203 'target_name': 'time_test',
204 'type': '<(aos_target)',
205 'sources': [
206 'time_test.cc',
207 ],
208 'dependencies': [
209 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700210 'time',
211 '<(AOS)/build/aos.gyp:logging',
brians343bc112013-02-10 01:53:46 +0000212 ],
213 },
214 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800215 'target_name': 'die',
216 'type': 'static_library',
217 'sources': [
218 'die.cc',
219 ],
220 },
221 {
Brian Silverman08661c72013-09-01 17:24:38 -0700222 'target_name': 'condition',
223 'type': 'static_library',
224 'sources': [
225 '<(AOS)/atom_code/ipc_lib/condition.cc',
226 ],
227 'dependencies': [
228 'mutex',
229 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:aos_sync',
230 # TODO(aschuh): Fix this dependency loop by
231 # providing a logging interface.
232 # '<(AOS)/build/aos.gyp:logging',
233 ],
234 'export_dependent_settings': [
235 'mutex',
236 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:aos_sync',
237 ],
238 },
239 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800240 'target_name': 'mutex',
241 'type': 'static_library',
242 'conditions': [
243 ['OS=="crio"', {
244 'sources': [
245 '<(AOS)/crio/shared_libs/mutex.cpp',
246 ],
247 }, {
248 'sources': [
249 '<(AOS)/atom_code/ipc_lib/mutex.cpp',
250 ],
251 'dependencies': [
Brian Silverman08661c72013-09-01 17:24:38 -0700252 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:aos_sync',
Brian Silvermanf665d692013-02-17 22:11:39 -0800253 ],
254 'export_dependent_settings': [
Brian Silverman08661c72013-09-01 17:24:38 -0700255 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:aos_sync',
Brian Silvermanf665d692013-02-17 22:11:39 -0800256 ],
257 }],
258 ],
Brian Silverman598800f2013-05-09 17:08:42 -0700259 'dependencies': [
260 # TODO(aschuh): Fix this dependency loop by
261 # providing a logging interface.
262 # '<(AOS)/build/aos.gyp:logging',
263 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800264 },
265 {
brians343bc112013-02-10 01:53:46 +0000266 'target_name': 'mutex_test',
267 'type': '<(aos_target)',
268 'sources': [
269 'mutex_test.cpp',
270 ],
271 'dependencies': [
272 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700273 'mutex',
274 '<(AOS)/build/aos.gyp:logging',
brians343bc112013-02-10 01:53:46 +0000275 ],
276 },
277 {
Brian Silverman797e71e2013-09-06 17:29:39 -0700278 'target_name': 'condition_test',
279 'type': 'executable',
280 'sources': [
281 'condition_test.cc',
282 ],
283 'dependencies': [
284 '<(EXTERNALS):gtest',
285 'condition',
286 '<(AOS)/common/util/util.gyp:thread',
287 'time',
288 'mutex',
289 '<(AOS)/build/aos.gyp:logging',
290 'queue_testutils',
291 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:core_lib',
292 ],
293 },
294 {
brians343bc112013-02-10 01:53:46 +0000295 'target_name': 'die_test',
296 'type': 'executable',
297 'sources': [
298 'die_test.cc',
299 ],
300 'dependencies': [
301 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700302 'die',
brians343bc112013-02-10 01:53:46 +0000303 ],
304 },
Brian Silverman66f079a2013-08-26 16:24:30 -0700305 {
306 'target_name': 'util',
307 'type': 'static_library',
308 'sources': [
309 'util.cc',
310 ],
311 },
brians343bc112013-02-10 01:53:46 +0000312 ],
313}