blob: 09dc4a5dc5b4737d6a998847f334ba2022dcde60 [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',
Brian Silverman598800f2013-05-09 17:08:42 -070040 'mutex',
brians343bc112013-02-10 01:53:46 +000041 ],
42 },
43 {
44 'target_name': 'common',
45 'type': 'static_library',
46 'sources': [
47 'Configuration.cpp',
48 ],
49 'dependencies': [
brians2fdfc072013-02-26 05:35:15 +000050 'once',
51 ],
52 'export_dependent_settings': [
53 'once',
brians343bc112013-02-10 01:53:46 +000054 ],
55 'conditions': [
56 ['OS=="crio"', {
57 'dependencies': [
58 '<(EXTERNALS):WPILib',
Brian Silvermane8598722013-04-10 17:09:14 -070059 ],
60 }, {
61 'dependencies': [
62 '<(AOS)/build/aos.gyp:logging',
63 ],
64 }],
brians343bc112013-02-10 01:53:46 +000065 ],
66 },
67 {
68 'target_name': 'queues',
69 'type': 'static_library',
70 'sources': [
71 'queue.cc',
72 ],
73 'conditions': [
74 ['OS=="crio"', {
75 'dependencies': [
76 '<(EXTERNALS):WPILib',
77 ],
78 },
79 {
80 'dependencies': [
81 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
82 ],
83 'export_dependent_settings': [
84 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
85 ],
86 }]
87 ],
88 'dependencies': [
89 '<(AOS)/common/common.gyp:common',
Brian Silverman3204dd82013-03-12 18:42:01 -070090 'time',
brians343bc112013-02-10 01:53:46 +000091 ],
92 'export_dependent_settings': [
93 '<(AOS)/common/common.gyp:common',
Brian Silverman3204dd82013-03-12 18:42:01 -070094 'time',
brians343bc112013-02-10 01:53:46 +000095 ],
96 },
97 {
Brian Silverman598800f2013-05-09 17:08:42 -070098 'target_name': 'scoped_fd',
99 'type': 'static_library',
100 'sources': [
101 # 'scoped_fd.h'
102 ],
103 'dependencies': [
104 '<(AOS)/build/aos.gyp:logging',
105 ],
106 'export_dependent_settings': [
107 '<(AOS)/build/aos.gyp:logging',
108 ],
109 },
110 {
brians343bc112013-02-10 01:53:46 +0000111 'target_name': 'control_loop_queues',
112 'type': 'static_library',
113 'sources': [ '<(AOS)/common/control_loop/control_loops.q' ],
114 'variables': {
115 'header_path': 'aos/common/control_loop',
116 },
117 'dependencies': [
118 '<(AOS)/common/common.gyp:queues',
119 ],
120 'includes': ['../build/queues.gypi'],
121 },
122 {
123 'target_name': 'timing_so',
124 'type': 'shared_library',
125 'sources': [
126 'control_loop/Timing.cpp'
127 ],
128 'variables': {'no_rsync': 1},
129 'dependencies': [
brians343bc112013-02-10 01:53:46 +0000130 ],
131 'direct_dependent_settings': {
132 'variables': {
133 'jni_libs': [
134 'timing_so',
135 ],
136 },
137 },
138 'export_dependent_settings': [
brians343bc112013-02-10 01:53:46 +0000139 ],
140 },
141 {
142 'target_name': 'timing',
143 'type': 'static_library',
144 'sources': [
145 'control_loop/Timing.cpp'
146 ],
147 'dependencies': [
brians343bc112013-02-10 01:53:46 +0000148 '<(AOS)/build/aos.gyp:logging',
Brian Silverman598800f2013-05-09 17:08:42 -0700149 'time',
brians343bc112013-02-10 01:53:46 +0000150 ],
151 },
152 {
153 'target_name': 'controls',
154 'type': 'static_library',
Brian Silvermanf665d692013-02-17 22:11:39 -0800155 'sources': [
Brian Silverman15ca9852013-03-17 18:24:15 -0700156 'control_loop/ControlLoop.cc',
Brian Silvermanf665d692013-02-17 22:11:39 -0800157 ],
brians343bc112013-02-10 01:53:46 +0000158 'dependencies': [
159 '<(AOS)/common/messages/messages.gyp:aos_queues',
160 '<(AOS)/build/aos.gyp:logging',
161 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700162 'time',
brians343bc112013-02-10 01:53:46 +0000163 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800164 'export_dependent_settings': [
165 '<(AOS)/common/messages/messages.gyp:aos_queues',
166 '<(AOS)/build/aos.gyp:logging',
167 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700168 'time',
Brian Silvermanf665d692013-02-17 22:11:39 -0800169 ],
brians343bc112013-02-10 01:53:46 +0000170 },
171 {
172 'target_name': 'queue_test',
173 'type': 'executable',
174 'sources': [
Brian Silverman598800f2013-05-09 17:08:42 -0700175 'queue_test.cc',
brians343bc112013-02-10 01:53:46 +0000176 ],
177 'dependencies': [
178 '<(EXTERNALS):gtest',
brians343bc112013-02-10 01:53:46 +0000179 'queue_testutils',
brians343bc112013-02-10 01:53:46 +0000180 'queue_test_queue',
Brian Silverman798c7782013-03-28 16:48:02 -0700181 '<(AOS)/common/util/util.gyp:thread',
brians343bc112013-02-10 01:53:46 +0000182 ],
183 },
184 {
185 'target_name': 'type_traits_test',
186 'type': '<(aos_target)',
187 'sources': [
188 'type_traits_test.cpp',
189 ],
190 'dependencies': [
191 '<(EXTERNALS):gtest',
brians2fdfc072013-02-26 05:35:15 +0000192 ],
193 },
194 {
195 'target_name': 'gtest_prod',
196 'type': 'static_library',
197 'dependencies': [
198 '<(EXTERNALS):gtest_prod',
199 ],
200 'export_dependent_settings': [
201 '<(EXTERNALS):gtest_prod',
202 ],
203 },
204 {
205 'target_name': 'once',
206 'type': 'static_library',
207 'dependencies': [
208 '<(EXTERNALS):gtest_prod',
209 ],
210 'export_dependent_settings': [
211 '<(EXTERNALS):gtest_prod',
212 ],
213 },
214 {
215 'target_name': 'once_test',
216 'type': '<(aos_target)',
217 'sources': [
218 'once_test.cc',
219 ],
220 'dependencies': [
221 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700222 'once',
brians343bc112013-02-10 01:53:46 +0000223 ],
224 },
225 {
226 'target_name': 'time_test',
227 'type': '<(aos_target)',
228 'sources': [
229 'time_test.cc',
230 ],
231 'dependencies': [
232 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700233 'time',
234 '<(AOS)/build/aos.gyp:logging',
brians343bc112013-02-10 01:53:46 +0000235 ],
236 },
237 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800238 'target_name': 'die',
239 'type': 'static_library',
240 'sources': [
241 'die.cc',
242 ],
243 },
244 {
245 'target_name': 'mutex',
246 'type': 'static_library',
247 'conditions': [
248 ['OS=="crio"', {
249 'sources': [
250 '<(AOS)/crio/shared_libs/mutex.cpp',
251 ],
252 }, {
253 'sources': [
254 '<(AOS)/atom_code/ipc_lib/mutex.cpp',
255 ],
256 'dependencies': [
257 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
258 ],
259 'export_dependent_settings': [
260 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
261 ],
262 }],
263 ],
Brian Silverman598800f2013-05-09 17:08:42 -0700264 'dependencies': [
265 # TODO(aschuh): Fix this dependency loop by
266 # providing a logging interface.
267 # '<(AOS)/build/aos.gyp:logging',
268 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800269 },
270 {
brians343bc112013-02-10 01:53:46 +0000271 'target_name': 'mutex_test',
272 'type': '<(aos_target)',
273 'sources': [
274 'mutex_test.cpp',
275 ],
276 'dependencies': [
277 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700278 'mutex',
279 '<(AOS)/build/aos.gyp:logging',
brians343bc112013-02-10 01:53:46 +0000280 ],
281 },
282 {
283 'target_name': 'die_test',
284 'type': 'executable',
285 'sources': [
286 'die_test.cc',
287 ],
288 'dependencies': [
289 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700290 'die',
brians343bc112013-02-10 01:53:46 +0000291 ],
292 },
293 ],
294}