blob: 95b7fd6f432a0d612ae6dcc15d68e304f0cb1494 [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',
102 ],
103 'includes': ['../build/queues.gypi'],
104 },
105 {
106 'target_name': 'timing_so',
107 'type': 'shared_library',
108 'sources': [
109 'control_loop/Timing.cpp'
110 ],
111 'variables': {'no_rsync': 1},
112 'dependencies': [
113 '<(AOS)/build/aos.gyp:aos_shared_lib',
114 ],
115 'direct_dependent_settings': {
116 'variables': {
117 'jni_libs': [
118 'timing_so',
119 ],
120 },
121 },
122 'export_dependent_settings': [
123 '<(AOS)/build/aos.gyp:aos_shared_lib',
124 ],
125 },
126 {
127 'target_name': 'timing',
128 'type': 'static_library',
129 'sources': [
130 'control_loop/Timing.cpp'
131 ],
132 'dependencies': [
133 '<(AOS)/build/aos.gyp:libaos',
134 '<(AOS)/build/aos.gyp:logging',
135 ],
136 },
137 {
138 'target_name': 'controls',
139 'type': 'static_library',
Brian Silvermanf665d692013-02-17 22:11:39 -0800140 'sources': [
141 # 'control_loop/ControlLoop-tmpl.h',
142 ],
brians343bc112013-02-10 01:53:46 +0000143 'dependencies': [
144 '<(AOS)/common/messages/messages.gyp:aos_queues',
145 '<(AOS)/build/aos.gyp:logging',
146 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700147 'time',
brians343bc112013-02-10 01:53:46 +0000148 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800149 'export_dependent_settings': [
150 '<(AOS)/common/messages/messages.gyp:aos_queues',
151 '<(AOS)/build/aos.gyp:logging',
152 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700153 'time',
Brian Silvermanf665d692013-02-17 22:11:39 -0800154 ],
brians343bc112013-02-10 01:53:46 +0000155 },
156 {
157 'target_name': 'queue_test',
158 'type': 'executable',
159 'sources': [
160 '<(AOS)/common/queue_test.cc',
161 ],
162 'dependencies': [
163 '<(EXTERNALS):gtest',
164 '<(AOS)/build/aos.gyp:libaos',
165 'queue_testutils',
166 'common',
167 'queue_test_queue',
168 ],
169 },
170 {
171 'target_name': 'type_traits_test',
172 'type': '<(aos_target)',
173 'sources': [
174 'type_traits_test.cpp',
175 ],
176 'dependencies': [
177 '<(EXTERNALS):gtest',
178 '<(AOS)/build/aos.gyp:libaos',
brians2fdfc072013-02-26 05:35:15 +0000179 ':common',
180 ],
181 },
182 {
183 'target_name': 'gtest_prod',
184 'type': 'static_library',
185 'dependencies': [
186 '<(EXTERNALS):gtest_prod',
187 ],
188 'export_dependent_settings': [
189 '<(EXTERNALS):gtest_prod',
190 ],
191 },
192 {
193 'target_name': 'once',
194 'type': 'static_library',
195 'dependencies': [
196 '<(EXTERNALS):gtest_prod',
197 ],
198 'export_dependent_settings': [
199 '<(EXTERNALS):gtest_prod',
200 ],
201 },
202 {
203 'target_name': 'once_test',
204 'type': '<(aos_target)',
205 'sources': [
206 'once_test.cc',
207 ],
208 'dependencies': [
209 '<(EXTERNALS):gtest',
210 '<(AOS)/build/aos.gyp:libaos',
brians343bc112013-02-10 01:53:46 +0000211 ],
212 },
213 {
214 'target_name': 'time_test',
215 'type': '<(aos_target)',
216 'sources': [
217 'time_test.cc',
218 ],
219 'dependencies': [
220 '<(EXTERNALS):gtest',
221 '<(AOS)/build/aos.gyp:libaos',
222 ],
223 },
224 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800225 'target_name': 'die',
226 'type': 'static_library',
227 'sources': [
228 'die.cc',
229 ],
230 },
231 {
232 'target_name': 'mutex',
233 'type': 'static_library',
234 'conditions': [
235 ['OS=="crio"', {
236 'sources': [
237 '<(AOS)/crio/shared_libs/mutex.cpp',
238 ],
239 }, {
240 'sources': [
241 '<(AOS)/atom_code/ipc_lib/mutex.cpp',
242 ],
243 'dependencies': [
244 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
245 ],
246 'export_dependent_settings': [
247 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
248 ],
249 }],
250 ],
251 },
252 {
brians343bc112013-02-10 01:53:46 +0000253 'target_name': 'mutex_test',
254 'type': '<(aos_target)',
255 'sources': [
256 'mutex_test.cpp',
257 ],
258 'dependencies': [
259 '<(EXTERNALS):gtest',
260 '<(AOS)/build/aos.gyp:libaos',
261 ],
262 },
263 {
264 'target_name': 'die_test',
265 'type': 'executable',
266 'sources': [
267 'die_test.cc',
268 ],
269 'dependencies': [
270 '<(EXTERNALS):gtest',
271 '<(AOS)/build/aos.gyp:libaos',
272 ],
273 },
274 ],
275}