blob: 7ae3f61eaaba750a394c6a9c2681baae3b58f7cd [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': [
50 '<(AOS)/build/aos.gyp:logging',
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',
60 ]}],
61 ],
62 },
63 {
64 'target_name': 'queues',
65 'type': 'static_library',
66 'sources': [
67 'queue.cc',
68 ],
69 'conditions': [
70 ['OS=="crio"', {
71 'dependencies': [
72 '<(EXTERNALS):WPILib',
73 ],
74 },
75 {
76 'dependencies': [
77 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
78 ],
79 'export_dependent_settings': [
80 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
81 ],
82 }]
83 ],
84 'dependencies': [
85 '<(AOS)/common/common.gyp:common',
Brian Silverman3204dd82013-03-12 18:42:01 -070086 'time',
brians343bc112013-02-10 01:53:46 +000087 ],
88 'export_dependent_settings': [
89 '<(AOS)/common/common.gyp:common',
Brian Silverman3204dd82013-03-12 18:42:01 -070090 'time',
brians343bc112013-02-10 01:53:46 +000091 ],
92 },
93 {
94 'target_name': 'control_loop_queues',
95 'type': 'static_library',
96 'sources': [ '<(AOS)/common/control_loop/control_loops.q' ],
97 'variables': {
98 'header_path': 'aos/common/control_loop',
99 },
100 'dependencies': [
101 '<(AOS)/common/common.gyp:queues',
Brian Silvermana4520912013-03-16 14:39:51 -0700102 '<(AOS)/common/common.gyp:queues',
brians343bc112013-02-10 01:53:46 +0000103 ],
104 'includes': ['../build/queues.gypi'],
105 },
106 {
107 'target_name': 'timing_so',
108 'type': 'shared_library',
109 'sources': [
110 'control_loop/Timing.cpp'
111 ],
112 'variables': {'no_rsync': 1},
113 'dependencies': [
114 '<(AOS)/build/aos.gyp:aos_shared_lib',
115 ],
116 'direct_dependent_settings': {
117 'variables': {
118 'jni_libs': [
119 'timing_so',
120 ],
121 },
122 },
123 'export_dependent_settings': [
124 '<(AOS)/build/aos.gyp:aos_shared_lib',
125 ],
126 },
127 {
128 'target_name': 'timing',
129 'type': 'static_library',
130 'sources': [
131 'control_loop/Timing.cpp'
132 ],
133 'dependencies': [
134 '<(AOS)/build/aos.gyp:libaos',
135 '<(AOS)/build/aos.gyp:logging',
136 ],
137 },
138 {
139 'target_name': 'controls',
140 'type': 'static_library',
Brian Silvermanf665d692013-02-17 22:11:39 -0800141 'sources': [
Brian Silverman15ca9852013-03-17 18:24:15 -0700142 'control_loop/ControlLoop.cc',
Brian Silvermanf665d692013-02-17 22:11:39 -0800143 ],
brians343bc112013-02-10 01:53:46 +0000144 'dependencies': [
145 '<(AOS)/common/messages/messages.gyp:aos_queues',
146 '<(AOS)/build/aos.gyp:logging',
147 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700148 'time',
brians343bc112013-02-10 01:53:46 +0000149 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800150 'export_dependent_settings': [
151 '<(AOS)/common/messages/messages.gyp:aos_queues',
152 '<(AOS)/build/aos.gyp:logging',
153 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700154 'time',
Brian Silvermanf665d692013-02-17 22:11:39 -0800155 ],
brians343bc112013-02-10 01:53:46 +0000156 },
157 {
158 'target_name': 'queue_test',
159 'type': 'executable',
160 'sources': [
161 '<(AOS)/common/queue_test.cc',
162 ],
163 'dependencies': [
164 '<(EXTERNALS):gtest',
165 '<(AOS)/build/aos.gyp:libaos',
166 'queue_testutils',
167 'common',
168 'queue_test_queue',
Brian Silverman798c7782013-03-28 16:48:02 -0700169 '<(AOS)/common/util/util.gyp:thread',
brians343bc112013-02-10 01:53:46 +0000170 ],
171 },
172 {
173 'target_name': 'type_traits_test',
174 'type': '<(aos_target)',
175 'sources': [
176 'type_traits_test.cpp',
177 ],
178 'dependencies': [
179 '<(EXTERNALS):gtest',
180 '<(AOS)/build/aos.gyp:libaos',
brians2fdfc072013-02-26 05:35:15 +0000181 ':common',
182 ],
183 },
184 {
185 'target_name': 'gtest_prod',
186 'type': 'static_library',
187 'dependencies': [
188 '<(EXTERNALS):gtest_prod',
189 ],
190 'export_dependent_settings': [
191 '<(EXTERNALS):gtest_prod',
192 ],
193 },
194 {
195 'target_name': 'once',
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_test',
206 'type': '<(aos_target)',
207 'sources': [
208 'once_test.cc',
209 ],
210 'dependencies': [
211 '<(EXTERNALS):gtest',
212 '<(AOS)/build/aos.gyp:libaos',
brians343bc112013-02-10 01:53:46 +0000213 ],
214 },
215 {
216 'target_name': 'time_test',
217 'type': '<(aos_target)',
218 'sources': [
219 'time_test.cc',
220 ],
221 'dependencies': [
222 '<(EXTERNALS):gtest',
223 '<(AOS)/build/aos.gyp:libaos',
224 ],
225 },
226 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800227 'target_name': 'die',
228 'type': 'static_library',
229 'sources': [
230 'die.cc',
231 ],
232 },
233 {
234 'target_name': 'mutex',
235 'type': 'static_library',
236 'conditions': [
237 ['OS=="crio"', {
238 'sources': [
239 '<(AOS)/crio/shared_libs/mutex.cpp',
240 ],
241 }, {
242 'sources': [
243 '<(AOS)/atom_code/ipc_lib/mutex.cpp',
244 ],
245 'dependencies': [
246 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
247 ],
248 'export_dependent_settings': [
249 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
250 ],
251 }],
252 ],
253 },
254 {
brians343bc112013-02-10 01:53:46 +0000255 'target_name': 'mutex_test',
256 'type': '<(aos_target)',
257 'sources': [
258 'mutex_test.cpp',
259 ],
260 'dependencies': [
261 '<(EXTERNALS):gtest',
262 '<(AOS)/build/aos.gyp:libaos',
263 ],
264 },
265 {
266 'target_name': 'die_test',
267 'type': 'executable',
268 'sources': [
269 'die_test.cc',
270 ],
271 'dependencies': [
272 '<(EXTERNALS):gtest',
273 '<(AOS)/build/aos.gyp:libaos',
274 ],
275 },
276 ],
277}