blob: 442e4ac4b6896b3d34f75b71a7fe07a43079641e [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 {
brians343bc112013-02-10 01:53:46 +000044 'target_name': 'queues',
45 'type': 'static_library',
46 'sources': [
47 'queue.cc',
48 ],
49 'conditions': [
50 ['OS=="crio"', {
51 'dependencies': [
52 '<(EXTERNALS):WPILib',
53 ],
54 },
55 {
56 'dependencies': [
57 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
58 ],
59 'export_dependent_settings': [
60 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
61 ],
62 }]
63 ],
64 'dependencies': [
Brian Silverman3204dd82013-03-12 18:42:01 -070065 'time',
brians343bc112013-02-10 01:53:46 +000066 ],
67 'export_dependent_settings': [
Brian Silverman3204dd82013-03-12 18:42:01 -070068 'time',
brians343bc112013-02-10 01:53:46 +000069 ],
70 },
71 {
Brian Silverman598800f2013-05-09 17:08:42 -070072 'target_name': 'scoped_fd',
73 'type': 'static_library',
74 'sources': [
75 # 'scoped_fd.h'
76 ],
77 'dependencies': [
78 '<(AOS)/build/aos.gyp:logging',
79 ],
80 'export_dependent_settings': [
81 '<(AOS)/build/aos.gyp:logging',
82 ],
83 },
84 {
brians343bc112013-02-10 01:53:46 +000085 'target_name': 'control_loop_queues',
86 'type': 'static_library',
87 'sources': [ '<(AOS)/common/control_loop/control_loops.q' ],
88 'variables': {
89 'header_path': 'aos/common/control_loop',
90 },
91 'dependencies': [
92 '<(AOS)/common/common.gyp:queues',
93 ],
94 'includes': ['../build/queues.gypi'],
95 },
96 {
97 'target_name': 'timing_so',
98 'type': 'shared_library',
99 'sources': [
100 'control_loop/Timing.cpp'
101 ],
102 'variables': {'no_rsync': 1},
103 'dependencies': [
brians343bc112013-02-10 01:53:46 +0000104 ],
105 'direct_dependent_settings': {
106 'variables': {
107 'jni_libs': [
108 'timing_so',
109 ],
110 },
111 },
112 'export_dependent_settings': [
brians343bc112013-02-10 01:53:46 +0000113 ],
114 },
115 {
116 'target_name': 'timing',
117 'type': 'static_library',
118 'sources': [
119 'control_loop/Timing.cpp'
120 ],
121 'dependencies': [
brians343bc112013-02-10 01:53:46 +0000122 '<(AOS)/build/aos.gyp:logging',
Brian Silverman598800f2013-05-09 17:08:42 -0700123 'time',
brians343bc112013-02-10 01:53:46 +0000124 ],
125 },
126 {
127 'target_name': 'controls',
128 'type': 'static_library',
Brian Silvermanf665d692013-02-17 22:11:39 -0800129 'sources': [
Brian Silverman15ca9852013-03-17 18:24:15 -0700130 'control_loop/ControlLoop.cc',
Brian Silvermanf665d692013-02-17 22:11:39 -0800131 ],
brians343bc112013-02-10 01:53:46 +0000132 'dependencies': [
133 '<(AOS)/common/messages/messages.gyp:aos_queues',
134 '<(AOS)/build/aos.gyp:logging',
135 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700136 'time',
brians343bc112013-02-10 01:53:46 +0000137 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800138 'export_dependent_settings': [
139 '<(AOS)/common/messages/messages.gyp:aos_queues',
140 '<(AOS)/build/aos.gyp:logging',
141 'timing',
Brian Silverman3204dd82013-03-12 18:42:01 -0700142 'time',
Brian Silvermanf665d692013-02-17 22:11:39 -0800143 ],
brians343bc112013-02-10 01:53:46 +0000144 },
145 {
146 'target_name': 'queue_test',
147 'type': 'executable',
148 'sources': [
Brian Silverman598800f2013-05-09 17:08:42 -0700149 'queue_test.cc',
brians343bc112013-02-10 01:53:46 +0000150 ],
151 'dependencies': [
152 '<(EXTERNALS):gtest',
brians343bc112013-02-10 01:53:46 +0000153 'queue_testutils',
brians343bc112013-02-10 01:53:46 +0000154 'queue_test_queue',
Brian Silverman798c7782013-03-28 16:48:02 -0700155 '<(AOS)/common/util/util.gyp:thread',
brians343bc112013-02-10 01:53:46 +0000156 ],
157 },
158 {
159 'target_name': 'type_traits_test',
160 'type': '<(aos_target)',
161 'sources': [
162 'type_traits_test.cpp',
163 ],
164 'dependencies': [
165 '<(EXTERNALS):gtest',
brians2fdfc072013-02-26 05:35:15 +0000166 ],
167 },
168 {
169 'target_name': 'gtest_prod',
170 'type': 'static_library',
171 'dependencies': [
172 '<(EXTERNALS):gtest_prod',
173 ],
174 'export_dependent_settings': [
175 '<(EXTERNALS):gtest_prod',
176 ],
177 },
178 {
179 'target_name': 'once',
180 'type': 'static_library',
181 'dependencies': [
182 '<(EXTERNALS):gtest_prod',
183 ],
184 'export_dependent_settings': [
185 '<(EXTERNALS):gtest_prod',
186 ],
187 },
188 {
189 'target_name': 'once_test',
190 'type': '<(aos_target)',
191 'sources': [
192 'once_test.cc',
193 ],
194 'dependencies': [
195 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700196 'once',
brians343bc112013-02-10 01:53:46 +0000197 ],
198 },
199 {
200 'target_name': 'time_test',
201 'type': '<(aos_target)',
202 'sources': [
203 'time_test.cc',
204 ],
205 'dependencies': [
206 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700207 'time',
208 '<(AOS)/build/aos.gyp:logging',
brians343bc112013-02-10 01:53:46 +0000209 ],
210 },
211 {
Brian Silvermanf665d692013-02-17 22:11:39 -0800212 'target_name': 'die',
213 'type': 'static_library',
214 'sources': [
215 'die.cc',
216 ],
217 },
218 {
219 'target_name': 'mutex',
220 'type': 'static_library',
221 'conditions': [
222 ['OS=="crio"', {
223 'sources': [
224 '<(AOS)/crio/shared_libs/mutex.cpp',
225 ],
226 }, {
227 'sources': [
228 '<(AOS)/atom_code/ipc_lib/mutex.cpp',
229 ],
230 'dependencies': [
231 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
232 ],
233 'export_dependent_settings': [
234 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
235 ],
236 }],
237 ],
Brian Silverman598800f2013-05-09 17:08:42 -0700238 'dependencies': [
239 # TODO(aschuh): Fix this dependency loop by
240 # providing a logging interface.
241 # '<(AOS)/build/aos.gyp:logging',
242 ],
Brian Silvermanf665d692013-02-17 22:11:39 -0800243 },
244 {
brians343bc112013-02-10 01:53:46 +0000245 'target_name': 'mutex_test',
246 'type': '<(aos_target)',
247 'sources': [
248 'mutex_test.cpp',
249 ],
250 'dependencies': [
251 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700252 'mutex',
253 '<(AOS)/build/aos.gyp:logging',
brians343bc112013-02-10 01:53:46 +0000254 ],
255 },
256 {
257 'target_name': 'die_test',
258 'type': 'executable',
259 'sources': [
260 'die_test.cc',
261 ],
262 'dependencies': [
263 '<(EXTERNALS):gtest',
Brian Silverman598800f2013-05-09 17:08:42 -0700264 'die',
brians343bc112013-02-10 01:53:46 +0000265 ],
266 },
Brian Silverman66f079a2013-08-26 16:24:30 -0700267 {
268 'target_name': 'util',
269 'type': 'static_library',
270 'sources': [
271 'util.cc',
272 ],
273 },
brians343bc112013-02-10 01:53:46 +0000274 ],
275}