blob: 215106496c9c20fd3a8760ad8c9f14a4d9bfe6fb [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',
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 {
98 'target_name': 'control_loop_queues',
99 'type': 'static_library',
100 'sources': [ '<(AOS)/common/control_loop/control_loops.q' ],
101 'variables': {
102 'header_path': 'aos/common/control_loop',
103 },
104 'dependencies': [
105 '<(AOS)/common/common.gyp:queues',
Brian Silvermana4520912013-03-16 14:39:51 -0700106 '<(AOS)/common/common.gyp:queues',
brians343bc112013-02-10 01:53:46 +0000107 ],
108 'includes': ['../build/queues.gypi'],
109 },
110 {
111 'target_name': 'timing_so',
112 'type': 'shared_library',
113 'sources': [
114 'control_loop/Timing.cpp'
115 ],
116 'variables': {'no_rsync': 1},
117 'dependencies': [
118 '<(AOS)/build/aos.gyp:aos_shared_lib',
119 ],
120 'direct_dependent_settings': {
121 'variables': {
122 'jni_libs': [
123 'timing_so',
124 ],
125 },
126 },
127 'export_dependent_settings': [
128 '<(AOS)/build/aos.gyp:aos_shared_lib',
129 ],
130 },
131 {
132 'target_name': 'timing',
133 'type': 'static_library',
134 'sources': [
135 'control_loop/Timing.cpp'
136 ],
137 'dependencies': [
138 '<(AOS)/build/aos.gyp:libaos',
139 '<(AOS)/build/aos.gyp:logging',
140 ],
141 },
142 {
143 'target_name': 'controls',
144 'type': 'static_library',
Brian Silvermanf665d692013-02-17 22:11:39 -0800145 'sources': [
Brian Silverman15ca9852013-03-17 18:24:15 -0700146 'control_loop/ControlLoop.cc',
Brian Silvermanf665d692013-02-17 22:11:39 -0800147 ],
brians343bc112013-02-10 01:53:46 +0000148 'dependencies': [
149 '<(AOS)/common/messages/messages.gyp:aos_queues',
150 '<(AOS)/build/aos.gyp:logging',
151 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700152 'time',
brians343bc112013-02-10 01:53:46 +0000153 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800154 'export_dependent_settings': [
155 '<(AOS)/common/messages/messages.gyp:aos_queues',
156 '<(AOS)/build/aos.gyp:logging',
157 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700158 'time',
Brian Silvermanf665d692013-02-17 22:11:39 -0800159 ],
brians343bc112013-02-10 01:53:46 +0000160 },
161 {
162 'target_name': 'queue_test',
163 'type': 'executable',
164 'sources': [
165 '<(AOS)/common/queue_test.cc',
166 ],
167 'dependencies': [
168 '<(EXTERNALS):gtest',
169 '<(AOS)/build/aos.gyp:libaos',
170 'queue_testutils',
171 'common',
172 'queue_test_queue',
Brian Silverman798c7782013-03-28 16:48:02 -0700173 '<(AOS)/common/util/util.gyp:thread',
brians343bc112013-02-10 01:53:46 +0000174 ],
175 },
176 {
177 'target_name': 'type_traits_test',
178 'type': '<(aos_target)',
179 'sources': [
180 'type_traits_test.cpp',
181 ],
182 'dependencies': [
183 '<(EXTERNALS):gtest',
184 '<(AOS)/build/aos.gyp:libaos',
brians2fdfc072013-02-26 05:35:15 +0000185 ':common',
186 ],
187 },
188 {
189 'target_name': 'gtest_prod',
190 'type': 'static_library',
191 'dependencies': [
192 '<(EXTERNALS):gtest_prod',
193 ],
194 'export_dependent_settings': [
195 '<(EXTERNALS):gtest_prod',
196 ],
197 },
198 {
199 'target_name': 'once',
200 'type': 'static_library',
201 'dependencies': [
202 '<(EXTERNALS):gtest_prod',
203 ],
204 'export_dependent_settings': [
205 '<(EXTERNALS):gtest_prod',
206 ],
207 },
208 {
209 'target_name': 'once_test',
210 'type': '<(aos_target)',
211 'sources': [
212 'once_test.cc',
213 ],
214 'dependencies': [
215 '<(EXTERNALS):gtest',
216 '<(AOS)/build/aos.gyp:libaos',
brians343bc112013-02-10 01:53:46 +0000217 ],
218 },
219 {
220 'target_name': 'time_test',
221 'type': '<(aos_target)',
222 'sources': [
223 'time_test.cc',
224 ],
225 'dependencies': [
226 '<(EXTERNALS):gtest',
227 '<(AOS)/build/aos.gyp:libaos',
228 ],
229 },
230 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800231 'target_name': 'die',
232 'type': 'static_library',
233 'sources': [
234 'die.cc',
235 ],
236 },
237 {
238 'target_name': 'mutex',
239 'type': 'static_library',
240 'conditions': [
241 ['OS=="crio"', {
242 'sources': [
243 '<(AOS)/crio/shared_libs/mutex.cpp',
244 ],
245 }, {
246 'sources': [
247 '<(AOS)/atom_code/ipc_lib/mutex.cpp',
248 ],
249 'dependencies': [
250 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
251 ],
252 'export_dependent_settings': [
253 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
254 ],
255 }],
256 ],
257 },
258 {
brians343bc112013-02-10 01:53:46 +0000259 'target_name': 'mutex_test',
260 'type': '<(aos_target)',
261 'sources': [
262 'mutex_test.cpp',
263 ],
264 'dependencies': [
265 '<(EXTERNALS):gtest',
266 '<(AOS)/build/aos.gyp:libaos',
267 ],
268 },
269 {
270 'target_name': 'die_test',
271 'type': 'executable',
272 'sources': [
273 'die_test.cc',
274 ],
275 'dependencies': [
276 '<(EXTERNALS):gtest',
277 '<(AOS)/build/aos.gyp:libaos',
278 ],
279 },
280 ],
281}