blob: 78488b613b953c65ac960980f63ce442b4fc1eee [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)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
25 '<(AOS)/build/aos.gyp:logging',
26 'once',
27 '<(EXTERNALS):gtest',
brians343bc112013-02-10 01:53:46 +000028 ],
29 },
30 {
31 'target_name': 'time',
32 'type': 'static_library',
33 'sources': [
34 'time.cc'
35 ],
36 'dependencies': [
Brian Silverman458b6e62013-03-01 18:09:21 -080037 # TODO(aschuh): Fix this dependency loop by
38 # providing a logging interface.
39 # '<(AOS)/build/aos.gyp:logging',
40 '<(AOS)/build/aos.gyp:aos/ResourceList.h',
Brian Silverman598800f2013-05-09 17:08:42 -070041 'mutex',
brians343bc112013-02-10 01:53:46 +000042 ],
43 },
44 {
45 'target_name': 'common',
46 'type': 'static_library',
47 'sources': [
48 'Configuration.cpp',
49 ],
50 'dependencies': [
brians2fdfc072013-02-26 05:35:15 +000051 'once',
52 ],
53 'export_dependent_settings': [
54 'once',
brians343bc112013-02-10 01:53:46 +000055 ],
56 'conditions': [
57 ['OS=="crio"', {
58 'dependencies': [
59 '<(EXTERNALS):WPILib',
Brian Silvermane8598722013-04-10 17:09:14 -070060 ],
61 }, {
62 'dependencies': [
63 '<(AOS)/build/aos.gyp:logging',
64 ],
65 }],
brians343bc112013-02-10 01:53:46 +000066 ],
67 },
68 {
69 'target_name': 'queues',
70 'type': 'static_library',
71 'sources': [
72 'queue.cc',
73 ],
74 'conditions': [
75 ['OS=="crio"', {
76 'dependencies': [
77 '<(EXTERNALS):WPILib',
78 ],
79 },
80 {
81 'dependencies': [
82 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
83 ],
84 'export_dependent_settings': [
85 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
86 ],
87 }]
88 ],
89 'dependencies': [
90 '<(AOS)/common/common.gyp:common',
Brian Silverman3204dd82013-03-12 18:42:01 -070091 'time',
brians343bc112013-02-10 01:53:46 +000092 ],
93 'export_dependent_settings': [
94 '<(AOS)/common/common.gyp:common',
Brian Silverman3204dd82013-03-12 18:42:01 -070095 'time',
brians343bc112013-02-10 01:53:46 +000096 ],
97 },
98 {
Brian Silverman598800f2013-05-09 17:08:42 -070099 'target_name': 'scoped_fd',
100 'type': 'static_library',
101 'sources': [
102 # 'scoped_fd.h'
103 ],
104 'dependencies': [
105 '<(AOS)/build/aos.gyp:logging',
106 ],
107 'export_dependent_settings': [
108 '<(AOS)/build/aos.gyp:logging',
109 ],
110 },
111 {
brians343bc112013-02-10 01:53:46 +0000112 'target_name': 'control_loop_queues',
113 'type': 'static_library',
114 'sources': [ '<(AOS)/common/control_loop/control_loops.q' ],
115 'variables': {
116 'header_path': 'aos/common/control_loop',
117 },
118 'dependencies': [
119 '<(AOS)/common/common.gyp:queues',
120 ],
121 'includes': ['../build/queues.gypi'],
122 },
123 {
124 'target_name': 'timing_so',
125 'type': 'shared_library',
126 'sources': [
127 'control_loop/Timing.cpp'
128 ],
129 'variables': {'no_rsync': 1},
130 'dependencies': [
brians343bc112013-02-10 01:53:46 +0000131 ],
132 'direct_dependent_settings': {
133 'variables': {
134 'jni_libs': [
135 'timing_so',
136 ],
137 },
138 },
139 'export_dependent_settings': [
brians343bc112013-02-10 01:53:46 +0000140 ],
141 },
142 {
143 'target_name': 'timing',
144 'type': 'static_library',
145 'sources': [
146 'control_loop/Timing.cpp'
147 ],
148 'dependencies': [
brians343bc112013-02-10 01:53:46 +0000149 '<(AOS)/build/aos.gyp:logging',
Brian Silverman598800f2013-05-09 17:08:42 -0700150 'time',
brians343bc112013-02-10 01:53:46 +0000151 ],
152 },
153 {
154 'target_name': 'controls',
155 'type': 'static_library',
Brian Silvermanf665d692013-02-17 22:11:39 -0800156 'sources': [
Brian Silverman15ca9852013-03-17 18:24:15 -0700157 'control_loop/ControlLoop.cc',
Brian Silvermanf665d692013-02-17 22:11:39 -0800158 ],
brians343bc112013-02-10 01:53:46 +0000159 'dependencies': [
160 '<(AOS)/common/messages/messages.gyp:aos_queues',
161 '<(AOS)/build/aos.gyp:logging',
162 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700163 'time',
brians343bc112013-02-10 01:53:46 +0000164 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800165 'export_dependent_settings': [
166 '<(AOS)/common/messages/messages.gyp:aos_queues',
167 '<(AOS)/build/aos.gyp:logging',
168 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700169 'time',
Brian Silvermanf665d692013-02-17 22:11:39 -0800170 ],
brians343bc112013-02-10 01:53:46 +0000171 },
172 {
173 'target_name': 'queue_test',
174 'type': 'executable',
175 'sources': [
Brian Silverman598800f2013-05-09 17:08:42 -0700176 'queue_test.cc',
brians343bc112013-02-10 01:53:46 +0000177 ],
178 'dependencies': [
179 '<(EXTERNALS):gtest',
brians343bc112013-02-10 01:53:46 +0000180 'queue_testutils',
brians343bc112013-02-10 01:53:46 +0000181 'queue_test_queue',
Brian Silverman798c7782013-03-28 16:48:02 -0700182 '<(AOS)/common/util/util.gyp:thread',
brians343bc112013-02-10 01:53:46 +0000183 ],
184 },
185 {
186 'target_name': 'type_traits_test',
187 'type': '<(aos_target)',
188 'sources': [
189 'type_traits_test.cpp',
190 ],
191 'dependencies': [
192 '<(EXTERNALS):gtest',
brians2fdfc072013-02-26 05:35:15 +0000193 ],
194 },
195 {
196 'target_name': 'gtest_prod',
197 'type': 'static_library',
198 'dependencies': [
199 '<(EXTERNALS):gtest_prod',
200 ],
201 'export_dependent_settings': [
202 '<(EXTERNALS):gtest_prod',
203 ],
204 },
205 {
206 'target_name': 'once',
207 'type': 'static_library',
208 'dependencies': [
209 '<(EXTERNALS):gtest_prod',
210 ],
211 'export_dependent_settings': [
212 '<(EXTERNALS):gtest_prod',
213 ],
214 },
215 {
216 'target_name': 'once_test',
217 'type': '<(aos_target)',
218 'sources': [
219 'once_test.cc',
220 ],
221 'dependencies': [
222 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700223 'once',
brians343bc112013-02-10 01:53:46 +0000224 ],
225 },
226 {
227 'target_name': 'time_test',
228 'type': '<(aos_target)',
229 'sources': [
230 'time_test.cc',
231 ],
232 'dependencies': [
233 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700234 'time',
235 '<(AOS)/build/aos.gyp:logging',
brians343bc112013-02-10 01:53:46 +0000236 ],
237 },
238 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800239 'target_name': 'die',
240 'type': 'static_library',
241 'sources': [
242 'die.cc',
243 ],
244 },
245 {
246 'target_name': 'mutex',
247 'type': 'static_library',
248 'conditions': [
249 ['OS=="crio"', {
250 'sources': [
251 '<(AOS)/crio/shared_libs/mutex.cpp',
252 ],
253 }, {
254 'sources': [
255 '<(AOS)/atom_code/ipc_lib/mutex.cpp',
256 ],
257 'dependencies': [
258 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
259 ],
260 'export_dependent_settings': [
261 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
262 ],
263 }],
264 ],
Brian Silverman598800f2013-05-09 17:08:42 -0700265 'dependencies': [
266 # TODO(aschuh): Fix this dependency loop by
267 # providing a logging interface.
268 # '<(AOS)/build/aos.gyp:logging',
269 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800270 },
271 {
brians343bc112013-02-10 01:53:46 +0000272 'target_name': 'mutex_test',
273 'type': '<(aos_target)',
274 'sources': [
275 'mutex_test.cpp',
276 ],
277 'dependencies': [
278 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700279 'mutex',
280 '<(AOS)/build/aos.gyp:logging',
brians343bc112013-02-10 01:53:46 +0000281 ],
282 },
283 {
284 'target_name': 'die_test',
285 'type': 'executable',
286 'sources': [
287 'die_test.cc',
288 ],
289 'dependencies': [
290 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700291 'die',
brians343bc112013-02-10 01:53:46 +0000292 ],
293 },
294 ],
295}