blob: eee1d05699cd65cd3fe9294f739af216ad5364bb [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',
brians343bc112013-02-10 01:53:46 +000027 ],
28 },
29 {
30 'target_name': 'time',
31 'type': 'static_library',
32 'sources': [
33 'time.cc'
34 ],
35 'dependencies': [
Brian Silverman458b6e62013-03-01 18:09:21 -080036 # TODO(aschuh): Fix this dependency loop by
37 # providing a logging interface.
38 # '<(AOS)/build/aos.gyp:logging',
Brian Silverman598800f2013-05-09 17:08:42 -070039 'mutex',
brians343bc112013-02-10 01:53:46 +000040 ],
41 },
42 {
brians343bc112013-02-10 01:53:46 +000043 'target_name': 'queues',
44 'type': 'static_library',
45 'sources': [
46 'queue.cc',
47 ],
48 'conditions': [
49 ['OS=="crio"', {
50 'dependencies': [
51 '<(EXTERNALS):WPILib',
52 ],
53 },
54 {
55 'dependencies': [
Brian Silverman08661c72013-09-01 17:24:38 -070056 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:queue',
brians343bc112013-02-10 01:53:46 +000057 ],
58 'export_dependent_settings': [
Brian Silverman08661c72013-09-01 17:24:38 -070059 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:queue',
brians343bc112013-02-10 01:53:46 +000060 ],
61 }]
62 ],
63 'dependencies': [
Brian Silverman3204dd82013-03-12 18:42:01 -070064 'time',
brians343bc112013-02-10 01:53:46 +000065 ],
66 'export_dependent_settings': [
Brian Silverman3204dd82013-03-12 18:42:01 -070067 'time',
brians343bc112013-02-10 01:53:46 +000068 ],
69 },
70 {
Brian Silverman598800f2013-05-09 17:08:42 -070071 'target_name': 'scoped_fd',
72 'type': 'static_library',
73 'sources': [
74 # 'scoped_fd.h'
75 ],
76 'dependencies': [
77 '<(AOS)/build/aos.gyp:logging',
78 ],
79 'export_dependent_settings': [
80 '<(AOS)/build/aos.gyp:logging',
81 ],
82 },
83 {
brians343bc112013-02-10 01:53:46 +000084 'target_name': 'control_loop_queues',
85 'type': 'static_library',
86 'sources': [ '<(AOS)/common/control_loop/control_loops.q' ],
87 'variables': {
88 'header_path': 'aos/common/control_loop',
89 },
90 'dependencies': [
91 '<(AOS)/common/common.gyp:queues',
92 ],
93 'includes': ['../build/queues.gypi'],
94 },
95 {
96 'target_name': 'timing_so',
97 'type': 'shared_library',
98 'sources': [
99 'control_loop/Timing.cpp'
100 ],
101 'variables': {'no_rsync': 1},
102 'dependencies': [
brians343bc112013-02-10 01:53:46 +0000103 ],
104 'direct_dependent_settings': {
105 'variables': {
106 'jni_libs': [
107 'timing_so',
108 ],
109 },
110 },
111 'export_dependent_settings': [
brians343bc112013-02-10 01:53:46 +0000112 ],
113 },
114 {
115 'target_name': 'timing',
116 'type': 'static_library',
117 'sources': [
118 'control_loop/Timing.cpp'
119 ],
120 'dependencies': [
brians343bc112013-02-10 01:53:46 +0000121 '<(AOS)/build/aos.gyp:logging',
Brian Silverman598800f2013-05-09 17:08:42 -0700122 'time',
brians343bc112013-02-10 01:53:46 +0000123 ],
124 },
125 {
126 'target_name': 'controls',
127 'type': 'static_library',
Brian Silvermanf665d692013-02-17 22:11:39 -0800128 'sources': [
Brian Silverman15ca9852013-03-17 18:24:15 -0700129 'control_loop/ControlLoop.cc',
Brian Silvermanf665d692013-02-17 22:11:39 -0800130 ],
brians343bc112013-02-10 01:53:46 +0000131 'dependencies': [
132 '<(AOS)/common/messages/messages.gyp:aos_queues',
133 '<(AOS)/build/aos.gyp:logging',
134 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700135 'time',
brians343bc112013-02-10 01:53:46 +0000136 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800137 'export_dependent_settings': [
138 '<(AOS)/common/messages/messages.gyp:aos_queues',
139 '<(AOS)/build/aos.gyp:logging',
140 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700141 'time',
Brian Silvermanf665d692013-02-17 22:11:39 -0800142 ],
brians343bc112013-02-10 01:53:46 +0000143 },
144 {
145 'target_name': 'queue_test',
146 'type': 'executable',
147 'sources': [
Brian Silverman598800f2013-05-09 17:08:42 -0700148 'queue_test.cc',
brians343bc112013-02-10 01:53:46 +0000149 ],
150 'dependencies': [
151 '<(EXTERNALS):gtest',
brians343bc112013-02-10 01:53:46 +0000152 'queue_testutils',
brians343bc112013-02-10 01:53:46 +0000153 'queue_test_queue',
Brian Silverman798c7782013-03-28 16:48:02 -0700154 '<(AOS)/common/util/util.gyp:thread',
brians343bc112013-02-10 01:53:46 +0000155 ],
156 },
157 {
158 'target_name': 'type_traits_test',
159 'type': '<(aos_target)',
160 'sources': [
161 'type_traits_test.cpp',
162 ],
163 'dependencies': [
164 '<(EXTERNALS):gtest',
brians2fdfc072013-02-26 05:35:15 +0000165 ],
166 },
167 {
168 'target_name': 'gtest_prod',
169 'type': 'static_library',
170 'dependencies': [
171 '<(EXTERNALS):gtest_prod',
172 ],
173 'export_dependent_settings': [
174 '<(EXTERNALS):gtest_prod',
175 ],
176 },
177 {
178 'target_name': 'once',
179 'type': 'static_library',
180 'dependencies': [
181 '<(EXTERNALS):gtest_prod',
182 ],
183 'export_dependent_settings': [
184 '<(EXTERNALS):gtest_prod',
185 ],
186 },
187 {
188 'target_name': 'once_test',
189 'type': '<(aos_target)',
190 'sources': [
191 'once_test.cc',
192 ],
193 'dependencies': [
194 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700195 'once',
brians343bc112013-02-10 01:53:46 +0000196 ],
197 },
198 {
199 'target_name': 'time_test',
200 'type': '<(aos_target)',
201 'sources': [
202 'time_test.cc',
203 ],
204 'dependencies': [
205 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700206 'time',
207 '<(AOS)/build/aos.gyp:logging',
brians343bc112013-02-10 01:53:46 +0000208 ],
209 },
210 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800211 'target_name': 'die',
212 'type': 'static_library',
213 'sources': [
214 'die.cc',
215 ],
216 },
217 {
Brian Silverman08661c72013-09-01 17:24:38 -0700218 'target_name': 'condition',
219 'type': 'static_library',
220 'sources': [
221 '<(AOS)/atom_code/ipc_lib/condition.cc',
222 ],
223 'dependencies': [
224 'mutex',
225 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:aos_sync',
226 # TODO(aschuh): Fix this dependency loop by
227 # providing a logging interface.
228 # '<(AOS)/build/aos.gyp:logging',
229 ],
230 'export_dependent_settings': [
231 'mutex',
232 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:aos_sync',
233 ],
234 },
235 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800236 'target_name': 'mutex',
237 'type': 'static_library',
238 'conditions': [
239 ['OS=="crio"', {
240 'sources': [
241 '<(AOS)/crio/shared_libs/mutex.cpp',
242 ],
243 }, {
244 'sources': [
245 '<(AOS)/atom_code/ipc_lib/mutex.cpp',
246 ],
247 'dependencies': [
Brian Silverman08661c72013-09-01 17:24:38 -0700248 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:aos_sync',
Brian Silvermanf665d692013-02-17 22:11:39 -0800249 ],
250 'export_dependent_settings': [
Brian Silverman08661c72013-09-01 17:24:38 -0700251 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:aos_sync',
Brian Silvermanf665d692013-02-17 22:11:39 -0800252 ],
253 }],
254 ],
Brian Silverman598800f2013-05-09 17:08:42 -0700255 'dependencies': [
256 # TODO(aschuh): Fix this dependency loop by
257 # providing a logging interface.
258 # '<(AOS)/build/aos.gyp:logging',
259 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800260 },
261 {
brians343bc112013-02-10 01:53:46 +0000262 'target_name': 'mutex_test',
263 'type': '<(aos_target)',
264 'sources': [
265 'mutex_test.cpp',
266 ],
267 'dependencies': [
268 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700269 'mutex',
270 '<(AOS)/build/aos.gyp:logging',
brians343bc112013-02-10 01:53:46 +0000271 ],
272 },
273 {
Brian Silverman797e71e2013-09-06 17:29:39 -0700274 'target_name': 'condition_test',
275 'type': 'executable',
276 'sources': [
277 'condition_test.cc',
278 ],
279 'dependencies': [
280 '<(EXTERNALS):gtest',
281 'condition',
282 '<(AOS)/common/util/util.gyp:thread',
283 'time',
284 'mutex',
285 '<(AOS)/build/aos.gyp:logging',
286 'queue_testutils',
287 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:core_lib',
288 ],
289 },
290 {
brians343bc112013-02-10 01:53:46 +0000291 'target_name': 'die_test',
292 'type': 'executable',
293 'sources': [
294 'die_test.cc',
295 ],
296 'dependencies': [
297 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700298 'die',
brians343bc112013-02-10 01:53:46 +0000299 ],
300 },
Brian Silverman66f079a2013-08-26 16:24:30 -0700301 {
302 'target_name': 'util',
303 'type': 'static_library',
304 'sources': [
305 'util.cc',
306 ],
307 },
brians343bc112013-02-10 01:53:46 +0000308 ],
309}