blob: 5e76e69c0e9a7f387022919a824aec48549f8d55 [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',
86 ],
87 'export_dependent_settings': [
88 '<(AOS)/common/common.gyp:common',
89 ],
90 },
91 {
92 'target_name': 'control_loop_queues',
93 'type': 'static_library',
94 'sources': [ '<(AOS)/common/control_loop/control_loops.q' ],
95 'variables': {
96 'header_path': 'aos/common/control_loop',
97 },
98 'dependencies': [
99 '<(AOS)/common/common.gyp:queues',
Brian Silvermana4520912013-03-16 14:39:51 -0700100 '<(AOS)/common/common.gyp:queues',
brians343bc112013-02-10 01:53:46 +0000101 ],
102 'includes': ['../build/queues.gypi'],
103 },
104 {
105 'target_name': 'timing_so',
106 'type': 'shared_library',
107 'sources': [
108 'control_loop/Timing.cpp'
109 ],
110 'variables': {'no_rsync': 1},
111 'dependencies': [
112 '<(AOS)/build/aos.gyp:aos_shared_lib',
113 ],
114 'direct_dependent_settings': {
115 'variables': {
116 'jni_libs': [
117 'timing_so',
118 ],
119 },
120 },
121 'export_dependent_settings': [
122 '<(AOS)/build/aos.gyp:aos_shared_lib',
123 ],
124 },
125 {
126 'target_name': 'timing',
127 'type': 'static_library',
128 'sources': [
129 'control_loop/Timing.cpp'
130 ],
131 'dependencies': [
132 '<(AOS)/build/aos.gyp:libaos',
133 '<(AOS)/build/aos.gyp:logging',
134 ],
135 },
136 {
137 'target_name': 'controls',
138 'type': 'static_library',
Brian Silvermanf665d692013-02-17 22:11:39 -0800139 'sources': [
140 # 'control_loop/ControlLoop-tmpl.h',
141 ],
brians343bc112013-02-10 01:53:46 +0000142 'dependencies': [
143 '<(AOS)/common/messages/messages.gyp:aos_queues',
144 '<(AOS)/build/aos.gyp:logging',
145 'timing',
146 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800147 'export_dependent_settings': [
148 '<(AOS)/common/messages/messages.gyp:aos_queues',
149 '<(AOS)/build/aos.gyp:logging',
150 'timing',
151 ],
brians343bc112013-02-10 01:53:46 +0000152 },
153 {
154 'target_name': 'queue_test',
155 'type': 'executable',
156 'sources': [
157 '<(AOS)/common/queue_test.cc',
158 ],
159 'dependencies': [
160 '<(EXTERNALS):gtest',
161 '<(AOS)/build/aos.gyp:libaos',
162 'queue_testutils',
163 'common',
164 'queue_test_queue',
165 ],
166 },
167 {
168 'target_name': 'type_traits_test',
169 'type': '<(aos_target)',
170 'sources': [
171 'type_traits_test.cpp',
172 ],
173 'dependencies': [
174 '<(EXTERNALS):gtest',
175 '<(AOS)/build/aos.gyp:libaos',
brians2fdfc072013-02-26 05:35:15 +0000176 ':common',
177 ],
178 },
179 {
180 'target_name': 'gtest_prod',
181 'type': 'static_library',
182 'dependencies': [
183 '<(EXTERNALS):gtest_prod',
184 ],
185 'export_dependent_settings': [
186 '<(EXTERNALS):gtest_prod',
187 ],
188 },
189 {
190 'target_name': 'once',
191 'type': 'static_library',
192 'dependencies': [
193 '<(EXTERNALS):gtest_prod',
194 ],
195 'export_dependent_settings': [
196 '<(EXTERNALS):gtest_prod',
197 ],
198 },
199 {
200 'target_name': 'once_test',
201 'type': '<(aos_target)',
202 'sources': [
203 'once_test.cc',
204 ],
205 'dependencies': [
206 '<(EXTERNALS):gtest',
207 '<(AOS)/build/aos.gyp:libaos',
brians343bc112013-02-10 01:53:46 +0000208 ],
209 },
210 {
211 'target_name': 'time_test',
212 'type': '<(aos_target)',
213 'sources': [
214 'time_test.cc',
215 ],
216 'dependencies': [
217 '<(EXTERNALS):gtest',
218 '<(AOS)/build/aos.gyp:libaos',
219 ],
220 },
221 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800222 'target_name': 'die',
223 'type': 'static_library',
224 'sources': [
225 'die.cc',
226 ],
227 },
228 {
229 'target_name': 'mutex',
230 'type': 'static_library',
231 'conditions': [
232 ['OS=="crio"', {
233 'sources': [
234 '<(AOS)/crio/shared_libs/mutex.cpp',
235 ],
236 }, {
237 'sources': [
238 '<(AOS)/atom_code/ipc_lib/mutex.cpp',
239 ],
240 'dependencies': [
241 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
242 ],
243 'export_dependent_settings': [
244 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
245 ],
246 }],
247 ],
248 },
249 {
brians343bc112013-02-10 01:53:46 +0000250 'target_name': 'mutex_test',
251 'type': '<(aos_target)',
252 'sources': [
253 'mutex_test.cpp',
254 ],
255 'dependencies': [
256 '<(EXTERNALS):gtest',
257 '<(AOS)/build/aos.gyp:libaos',
258 ],
259 },
260 {
261 'target_name': 'die_test',
262 'type': 'executable',
263 'sources': [
264 'die_test.cc',
265 ],
266 'dependencies': [
267 '<(EXTERNALS):gtest',
268 '<(AOS)/build/aos.gyp:libaos',
269 ],
270 },
271 ],
272}